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%28%29-do-not-match-the-actual-axis-in-the-plot-window-tp27397234p27397234.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to