user739711
user739711

Reputation: 1882

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?

Upvotes: 2

Views: 890

Answers (2)

Senry
Senry

Reputation: 260

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

Upvotes: 0

Eric Skroch
Eric Skroch

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

Related Questions