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


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

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

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?



View this message in context:
Sent from the matplotlib - users mailing list archive at