CorePlot - Set y-Axis range to include all data points

本秂侑毒 提交于 2019-12-04 04:57:30

It looks like you're using -scaleToFitPlots: correctly. This method will update the plot data if needed. Make sure the proper data is available to the datasource before you call it.

Edit based on the new code:

-scaleToFitPlots: is being called before you add the plot to the graph. Therefore the -allPlots array is empty and there is nothing to scale. Move the scaling operation after the plot is built and added to the graph.

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