问题
I have a y-axis boundary from 0 to 100 and an x axis boundary from 0 to 10. When I plot data points (0,85) and (1,86), only the portion of the plot with data points is shown. I understand how this is useful, but in my case I need the entire axis shown, unscaled. Is there a way to show the complete axes, without zooming to the data points? Thanks for your help.
回答1:
Is more a hint than an answer.. but, as I already said in comments:
- you can try to remove "scaleToFitPlots" and set xRange and yRange directly;
or..
- call -scaleToFitPlots: and then set the xRange afterwards
来源:https://stackoverflow.com/questions/16953396/core-plot-prevent-zooming-scaling-of-plot-to-show-full-axes-range