Search code examples
ioscore-plot

Core Plot Automatic Labelling Policy


Using the Axis Labelling Policy Automatic works fine but sometimes the last value is not included in the labels.So if on X-axis labels are from 0 to 3800;using automatic labelling policy the labels do appear at interval of 500 from 0 to 3500. Is there any way by which I can add the last label (here 3800) as well.


Solution

  • Not with the automatic labeling policy. There's no easy way to determine automatically if that last label would fit without overlapping the one next to it. You might want to try a different labeling policy. If you always want the first and last values labeled, use the equal divisions policy. Otherwise, try the fixed interval policy (the default), or use custom labels if you don't care about equal spacing between the labels.