without the svn version, you can save both files.
edit figureoptions.py to modify the import:
#import matplotlib.backends.qt4_editor.formlayout as formlayout
then, you can attach the nice dialog box to a Event, something like that works:
import matplotlib.pyplot as plt
import numpy as np
t = np.arange(0, 1+0.01, 0.01)
y = np.sin(2np.pit)
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot(t, y, ‘r-o’)
cid = fig.canvas.mpl_connect(‘button_press_event’, onclick)
click on the figure, you will get the dialog box. less cool than the button, but not too bad.
2010/3/21 Peter Butterworth <butterw@…287…>
Correction: ‘0.99.3rc1’ does not include the qt4_editor code, so you
do need to get the source files from svn.
The feature is a nice addition to matplotlib…
On Sun, Mar 21, 2010 at 1:53 AM, Gökhan Sever <gokhansever@…287…> wrote:
On Sat, Mar 20, 2010 at 7:43 PM, <butterw@…287…> wrote:
I’m using the recent ‘0.99.3rc1’ which does include the qt4_editor code.
If you have the qt4_editor code within your installation you are good to go
then. Just create a new plot while the Qt4Agg backend is pre-selected you
should have an additional icon on the existing navigation toolbar. From
there on you should see a window when you fire that icon.
It is migrated from Pierre Raybout’s spyderlib
Should the new toolbar just appear when you open a plot or is specific
code needed to call it ?
Le , Gökhan Sever <gokhansever@…287…> a écrit :
On Sat, Mar 20, 2010 at 6:06 PM, butterw butterw@…287…> wrote:
Is there an minimal example file available showing how to activate this
plot toolbar ?
changing the backend to Qt4Agg apparently is not sufficient.
You need to install matplotlib from the svn trunk.
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
Matplotlib-users mailing list