Core plot- prevent zooming/scaling of plot to show full axes range

 ̄綄美尐妖づ 提交于 2019-12-13 15:20:57

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!