bytebrew/slope

Is it possible to add a grid to the plot? - Feature request

crazyBaboon opened this issue · 1 comments

Is it possible to add a grid to the plot? - Feature request

Yes it is. Use

SlopeItem *axis = slope_xyscale_get_axis(SLOPE_XYSCALE(scale), SLOPE_XYSCALE_AXIS_BOTTOM);
slope_xyaxis_set_components(SLOPE_XYAXIS(axis), SLOPE_XYAXIS_DEFAULT_DOWN_GRID);

slope_xyscale_get_axis(SLOPE_XYSCALE(scale),, SLOPE_XYSCALE_AXIS_LEFT);
slope_xyaxis_set_components(SLOPE_XYAXIS(axis), SLOPE_XYAXIS_DEFAULT_DOWN_GRID);