SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Gregorio B. <gre...@gm...> - 2013年05月22日 14:48:09
Hi,
I have problems with constrained rectangular zoom to x-y axis with
PyQt4 / PySide backend. When I use the "Zoom-to-rectangle" button of
the navigation toolbar while holding the x or y key, sometimes nothing
happens when the mouse is released. Constrained panning and
pan-zooming ("Pan/Zoom" button) works well.
I used the following dummy code to set up the environment:
import numpy as np
import matplotlib as mpl
if mpl.get_backend() != 'Qt4Agg':
 mpl.use('Qt4Agg')
 # mpl.rcParams['backend.qt4']='PySide'
 # mpl.rcParams['backend.qt4']='PyQt4'
import matplotlib.pyplot as plt
x = np.linspace(0,1)
y = np.random.rand(x.size)
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot(x,y)
plt.show()
Looking at the mail archives and the issue tracker gave me no relevant
result. Has anyone experienced a similar issue?
python 2.7.4 win32
matplotlib 1.1.1 and 1.2.1
PyQt4 QtCore 4.8.3
PySide QtCore 4.8.3
PySide 1.1.2
Thanks,
Gregorio
From: ratomatrix <rat...@gm...> - 2013年05月28日 11:32:25
Hi, 
Gregorio Bastardo wrote
> When I use the "Zoom-to-rectangle" button of
> the navigation toolbar while holding the x or y key, sometimes nothing
> happens when the mouse is released.
I have also experienced the same behavior, and I still don't know what it
exactly depends on. It works most of the time, but sometimes it is almost
impossible to zoom to the desired area.
Gregorio Bastardo wrote
> python 2.7.4 win32
> matplotlib 1.1.1 and 1.2.1
> PyQt4 QtCore 4.8.3
> PySide QtCore 4.8.3
> PySide 1.1.2
I have python 2.7.3 win32 with matplotlib 1.1.1 and PySide 1.1.2, but it is
the same with the default Tk backend as well.
Any help would be appreciated.
Thanks,
Tom
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/constrained-rectangular-zoom-does-not-always-work-with-Qt4-backend-tp41108p41142.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 によって変換されたページ (->オリジナル) /