From: Philippe C. <phi...@gm...> - 2010-03-21 07:16:29
|
without the svn version, you can save both files. edit figureoptions.py to modify the import: #import matplotlib.backends.qt4_editor.formlayout as formlayout import 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 import figureoptions t = np.arange(0, 1+0.01, 0.01) y = np.sin(2*np.pi*t) fig = plt.figure() ax = fig.add_subplot(111) ax.plot(t, y, 'r-o') def onclick(event): figureoptions.figure_edit(ax) cid = fig.canvas.mpl_connect('button_press_event', onclick) plt.show() click on the figure, you will get the dialog box. less cool than the button, but not too bad. 2010/3/21 Peter Butterworth <bu...@gm...> > 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 <gok...@gm...> > wrote: > > > > > > On Sat, Mar 20, 2010 at 7:43 PM, <bu...@gm...> 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 > > (http://code.google.com/p/spyderlib/) > > > > > >> > >> Should the new toolbar just appear when you open a plot or is specific > >> code needed to call it ? > >> > >> > >> Le , Gökhan Sever <gok...@gm...> a écrit : > >> > > >> > > >> > On Sat, Mar 20, 2010 at 6:06 PM, butterw bu...@gm...> wrote: > >> > > >> > > >> > > >> > Is there an minimal example file available showing how to activate > this > >> > new > >> > > >> > plot toolbar ? > >> > > >> > > >> > > >> > changing the backend to Qt4Agg apparently is not sufficient. > >> > > >> > > >> > > >> > > >> > > >> > You need to install matplotlib from the svn trunk. > >> > > >> > http://matplotlib.sourceforge.net/faq/installing_faq.html#install-svn > >> > > >> > > >> > -- > >> > Gökhan > > > > > > -- > > Gökhan > > > > > ------------------------------------------------------------------------------ > 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. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |