bytebrew / slope

C/Gtk+ data visualization library.
GNU Lesser General Public License v3.0
102 stars 16 forks source link

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

Closed crazyBaboon closed 7 years ago

elvismt commented 7 years ago

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);