2
votes

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?

2

2 Answers

1
votes

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.

0
votes

You can get visible range of X-Axis using code like this: space.graph.axisSet.xAxis.visibleAxisRange