SourceForge logo
SourceForge logo
Menu

Re: [matplotlib-devel] Enhancement to matplotlib's PyQt4 backend

From: John H. <jd...@gm...> - 2009年04月28日 14:17:21
On Tue, Apr 28, 2009 at 8:18 AM, Pierre Raybaut <co...@py...>wrote:
> 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/)
Hi Pierre -- this looks very nice (the last link is broken though , I get a
404 error). We would be happy to include this in matplotlib or as a
toolkit. To contribute it to to mpl, the license needs to be matplotlib
compatible (
http://matplotlib.sourceforge.net/devel/coding_guide.html#licenses) but we
have more licensing flexibility in a toolkit, though we prefer to keep
everything BSD compatible where possible. And of course you would need to
agree to maintain it :-) but I think many users would appreciate a GUI plot
configuration dialog.
JDH

View entire thread

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 によって変換されたページ (->オリジナル) /