You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both PlotBars and PlotHeatmap could benefit from the ability to add custom tick labels at specific locations (actually, this is a useful feature in general). The API function(s) for this would likely have to precedeBeginPlot due to the order in which plot-bounding boxes are calculated. Something like this might work:
SetNextPlotTickLabelsX(constchar** labels, float* values, int n);
SetNextPlotTickLabelsY(constchar** labels, float* values, int n, int y_axis = 0);
We would have to consider whether this should add to or override the default tick labels. Thoughts?
// Set the X axis ticks and optionally the labels for the next plot.voidSetNextPlotTicksX(constdouble* values, int n_ticks, constchar** labels = NULL, bool show_default = false);
voidSetNextPlotTicksX(double x_min, double x_max, int n_ticks, constchar** labels = NULL, bool show_default = false);
// Set the Y axis ticks and optionally the labels for the next plot.voidSetNextPlotTicksY(constdouble* values, int n_ticks, constchar** labels = NULL, bool show_default = false, int y_axis = 0);
voidSetNextPlotTicksY(double y_min, double y_max, int n_ticks, constchar** labels = NULL, bool show_default = false, int y_axis = 0);
Feel free to share feedback. Closing the issue for now.
Both
PlotBars
andPlotHeatmap
could benefit from the ability to add custom tick labels at specific locations (actually, this is a useful feature in general). The API function(s) for this would likely have to precedeBeginPlot
due to the order in which plot-bounding boxes are calculated. Something like this might work:We would have to consider whether this should add to or override the default tick labels. Thoughts?
Looping in folks...
@ozlb @sergeyn @jpieper
The text was updated successfully, but these errors were encountered: