Values returned by axis() do not match the actual axis in the plot window

Hello,

I have matplotlib widget set up in a PyQt 4 program. The axis is set for
auto scaling. I'm using the following command to determine the upper y
boundary:

self.plotWidget.canvas.ax.axis()[3]

where plotWidget is the name of the widget in my program. I get a number
from this command just fine, but it doesn't always agree with the actual
axis on the plot window. For instance, after plotting a curve with a
maximum y-value of 0.125, the command above gives me an upper y-limit of
0.14. However, the plot window goes up to y=0.16. Sometimes things work
out correctly, but they call above and the plot window do not typically
agree.

I really need the plot window to match what comes from this call to axis().
Can anyone offer any suggestions on what might be going wrong?

Thanks,
Steve

ยทยทยท

--
View this message in context: http://old.nabble.com/Values-returned-by-axis()-do-not-match-the-actual-axis-in-the-plot-window-tp27397234p27397234.html
Sent from the matplotlib - users mailing list archive at Nabble.com.