/* Set grid/axis parameters. 
Refer to <gfx/wtk.h> for available configuration options. */
void wtk_plot_set_grid(struct wtk_plot *plot, uint8_t axis_option, uint8_t axis_spacing_x, uint8_t axis_offset_x, uint8_t axis_spacing_y, uint8_t axis_offset_y, gfx_color_t axis_color, gfx_color_t axis_zero_color)
/* Set grid/axis parameters. 
Refer to <gfx/wtk.h> for available configuration options. */
void wtk_plot_set_grid(struct wtk_plot *plot, uint8_t axis_option, uint8_t axis_spacing_x, uint8_t axis_offset_x, uint8_t axis_spacing_y, uint8_t axis_offset_y, gfx_color_t axis_color, gfx_color_t axis_zero_color)
{
	Assert(plot);
	uint8_t height;
	struct win_area const *area;
	area = win_get_area(plot->container);
	height = area->size.y - 2;
	plot->axis_option = axis_option;
	plot->axis_spacing_x = axis_spacing_x;
	plot->axis_offset_x = axis_offset_x;
	plot->axis_spacing_y = wtk_rescale_value(axis_spacing_y,
			plot->maximum, height);
	plot->axis_offset_y = height - wtk_rescale_value(axis_offset_y,
			plot->maximum, height);
	plot->axis_color = axis_color;
	plot->axis_zero_color = axis_zero_color;
}