SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: photonicsphan <ema...@ya...> - 2010年01月31日 22:18:42
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.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /