Hi all,

I would like to contribute to matplotlib with this enhancement for the
PyQt4 backend: the idea is to add a toolbar button to configure figure
options (axes, curves, ...).

It's based on a tiny module called formlayout to generate PyQt4 form
dialog automatically.

Some screenshots:
http://code.google.com/p/formlayout/

So, if you're interested (all the following is GPL2):

*matplotlib patch*

In FigureManagerQT.__init__, added:
self.canvas.axes = self.canvas.figure.add_subplot(111)

In NavigationToolbar2QT._init_toolbar, added:
a = self.addAction(self._icon("customize.png"), 'Customize',
self.edit_parameters)
a.setToolTip('Edit curves line and axes parameters')

Added the following method in NavigationToolbar2QT:
def edit_parameters(self):
    from figureoptions import figure_edit
    figure_edit(self.canvas, self)

*additionnal modules and data*

formlayout.py (http://code.google.com/p/formlayout/)
figureoptions.py (http://code.google.com/p/PyQtShell/)
customize.png (http://code.google.com/p/PyQtShell/)


cheers,
Pierre

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to