Reputation: 1882
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?
Upvotes: 2
Views: 890
Reputation: 260
You can get visible range of X-Axis using code like this:
space.graph.axisSet.xAxis.visibleAxisRange
Upvotes: 0
Reputation: 27381
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.
Upvotes: 1