Getting plot area frame


#1

How can I determine the bounds of the plot – just the plot, without the legend, axis labels, etc.? Specifically, I want to obtain a CGRect representation of the same area encompassed by the border drawn when setting plotAreaBorderThickness to a value greater than 0.


#2

Hi,

You can access the frame of the canvas as follows:

self.chart.canvas.frame

#3

Not exactly what I was looking for – the canvas frame includes the area used by the axes labels – but self.canvas.glView.frame fits my needs. Thanks for pointing me in the right direction.