Hello,

recently I upgraded to matplotlib 1.0.0 which I mainly use for plotting in my 
(python 2.6 based) application with Qt4 GUI. Overall it works fine, but there 
are a few issues I experienced also with the previous version, especially with 
the toolbar.

When building a standalone version using py2exe, images of the toolbar are 
missing. I had to manually modify the .svg extensions
to .png in the _init_toolbar() function in backend_qt4.py. And for the new 
'qt4_editor_options' option, no png existed yet.

Since I wanted to get rid of some toolbar functions in my standalone app, I 
wanted to create my own backend. But following the instructions in the 
backend_template.py didn't help me much. In the comments at the beginning of 
this file it says:

"...add 'xxx' to the switchyard in matplotlib/backends/__init__.py and 'xxx' to 
the backends list in the validate_backend methon in
matplotlib/__init__.py and you're off."

Unfortunately it doesn't work this way (anymore).

Is it possible to update the instructions on doing your own backend? Updating 
the Qt4 backend would help as well.
I know this is not the right place for feature requests, but anyway: it would 
be nice to have some flexibility in modifying the toolbar (which functions to 
add or not,etc). Now I do it the quick and dirty way: I comment out the toolbar 
items in the _init_toolbar() function in backend_qt4.py. However, depending on 
the app I'm working on, I have to comment/uncomment it...

Kind regards,

Jelmer

--Disclaimer-- 

This email and any files transmitted with it are confidential and may be 
privileged or otherwise protected from disclosure and are intended solely for 
the use of the entity / individual to whom they are addressed. If you have 
received this email in error or If you are not the intended recipient, please 
notify the sender immediately by way of telephone or email and delete this 
message and any files transmitted from your system. Please note that any views 
presented in the email are solely those of the author and do not necessarily 
represent those of the organization. While all care has been taken to avoid 
viruses the recipient is advised to check this email and attachments for 
presence of viruses. The organization accepts no liability on this account.
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to