简体   繁体   中英

IOS Core-Plot: How to get visible range of X and Y axis

In Core-Plot I want to plot only the visible area of the plot. For this I need the visible range of the plot after Zoom-In and Zoom-Out.

Any Idea how to get visible range of X-Axis?

You can use a plot space delegate to find out when the plot ranges change. Each delegate method receives a reference to the plot space as one of its parameters. You can read the xRange and yRange to find out what the new ranges are.

您可以使用以下代码获取X轴的可见范围: space.graph.axisSet.xAxis.visibleAxisRange

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM