Question is however, are you using the GTK backend?
ie
from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg as FigureCanvas
from matplotlib.backends.backend_gtkagg import NavigationToolbar2GTKAgg as NavigationToolbar
backend_gtkagg then imports matplotlib.backends._gtkagg
For matplotlib-0.98.5.2.win32-py2.5.exe
C:\Python25\Lib\site-packages\matplotlib\backends_gtkagg.pyd exists
For matplotlib-0.98.5.3.win32-py2.6.exe
C:\Python26\Lib\site-packages\matplotlib\backends_gtkagg.pyd doesn’t
ie gtk backend doesn’t seem to be compiled.
matplotlib is the only thing holding me back in moving to python26 (on windows). Hopefully the svn build is updated soon or a new release is due soon (I can wait )
···
Hi Christoph,
Sorry for my delay to get back to you.
The svn version seems to work fine with GTK support, at least my
application had no problems running
The versions I tested with are as follows:
python version: 2.6.0 final 0
numpy version: 1.3.0
matplotlib version: 0.98.6svn
gtk+ version: 2.16.2
pyGTK version: 2.12.1
Thank you
you have been a big help
Steve
Hi Jon,
To clarify, I think you need to read Christoph Gohlke original message (7/7/2009) to me to put my response into context:
Hi Steve,
matplotlib-0.98.5.3.win32-py2.6.exe was compiled without support for GTK.
If you don't mind trying, I have a build of the matplotlib trunk available on my homepage that has GTK support enabled:
Christoph Gohlke
It should work with the PyGTK 2.12 Windows binaries from http://www.pygtk.org/downloads.html.
SVG support seems broken: the window.set_icon_from_file() function in backend_gtk.py will raise an exception, not recognizing SVG files. The PNG icon works.
Christoph
From that web page I downloaded http://www.lfd.uci.edu/~gohlke/download/matplotlib-0.98.6svn.win32-py2.6.exe
NOTICE the version number 0.98.6svn
Then in my code I have the following lines:
from matplotlib.backends.backend_gtk import FigureCanvasGTK as FigureCanvas
from matplotlib.backends.backend_gtk import NavigationToolbar2GTK as NavigationToolbar
For your benefit I changed to the same backend as yours ( GTKAgg backend ) and run again
My application ran successfully with both the GTKAgg and GTKCario backends.
Why don't you take the svn version for a spin, you might also have success.
Hope this has been of some help
Steve
Jon Roadley-Battin wrote:
···
Question is however, are you using the GTK backend?
ie
from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg as FigureCanvas
from matplotlib.backends.backend_gtkagg import NavigationToolbar2GTKAgg as NavigationToolbar
backend_gtkagg then imports matplotlib.backends._gtkagg
For matplotlib-0.98.5.2.win32-py2.5.exe
C:\Python25\Lib\site-packages\matplotlib\backends\_gtkagg.pyd exists
For matplotlib-0.98.5.3.win32-py2.6.exe
C:\Python26\Lib\site-packages\matplotlib\backends\_gtkagg.pyd doesn't
ie gtk backend doesn't seem to be compiled.
matplotlib is the only thing holding me back in moving to python26 (on windows). Hopefully the svn build is updated soon or a new release is due soon (I can wait )
>Hi Christoph,
>
>Sorry for my delay to get back to you.
>
>The svn version seems to work fine with GTK support, at least my
>application had no problems running
>
>The versions I tested with are as follows:
> python version: 2.6.0 final 0
> numpy version: 1.3.0
> matplotlib version: 0.98.6svn
> gtk+ version: 2.16.2
> pyGTK version: 2.12.1
>
>Thank you
>you have been a big help
>Steve
------------------------------------------------------------------------
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge
------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options