SourceForge logo
SourceForge logo
Menu

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

From: Pierre R. <co...@py...> - 2010年01月03日 14:11:28
Attachments: mpl_qt4_options.zip
2009年12月1日 Darren Dale <dsd...@gm...>:
> 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*
>
> Would you please submit an actual patch? I don't know exactly where
> you intend these changes to be placed.
>
>> In FigureManagerQT.__init__, added:
>> self.canvas.axes = self.canvas.figure.add_subplot(111)
>
> What is the purpose of this change? What if I didn't want such an axes
> on my canvas? What if I want to layout my own axes([.2,.2,.75,.75]) or
> add_subplot(311)? I don't think these changes can be accepted in the
> current form, they don't appear to integrate well with the standard
> behavior of the library.
>
> Darren
Ok, I admit that it was very difficult to fix this -- it took me a lot
of seconds without knowing very well matplotlib... ;-)
Anyway, now, you can't say no any longer :-)
Here is a zip file containing all you need (patch for backend_qt4.py,
two scripts to be copied in backends/, and one .svg image to be copied
to mpl-data/images/) -- I can't make it clearer than this...
Cheers,
Pierre

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