matplotlib-0.98.5.3.win32-py2.6.exe

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:

http://www.lfd.uci.edu/~gohlke/#pythonlibs

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

Christoph: could you look into a patch that uses png for the icon for win32/gtk?

Thanks,
JDH

···

On Mon, Jul 6, 2009 at 9:35 PM, Christoph Gohlke<cgohlke@...2143...> wrote:

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:

http://www.lfd.uci.edu/~gohlke/#pythonlibs

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.

Index: lib/matplotlib/backends/backend_gtk.py

···

===================================================================
--- lib/matplotlib/backends/backend_gtk.py (revision 7257)
+++ lib/matplotlib/backends/backend_gtk.py (working copy)
@@ -1148,7 +1148,7 @@
  # versions of pygtk, so we have to use a PNG file instead.
  try:

- if gtk.pygtk_version < (2, 8, 0):
+ if gtk.pygtk_version < (2, 8, 0) or sys.platform == 'win32':
          icon_filename = 'matplotlib.png'
      else:
          icon_filename = 'matplotlib.svg'

--Christoph

On 07/11/2009 06:39, John Hunter wrote:

On Mon, Jul 6, 2009 at 9:35 PM, Christoph Gohlke<cgohlke@...2143...> wrote:

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:

http://www.lfd.uci.edu/~gohlke/#pythonlibs

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: could you look into a patch that uses png for the icon for win32/gtk?

Thanks,
JDH

Thanks, committed. Are there any problems with the toolbar icons on gtk/win32?

JDH

···

On Sat, Jul 11, 2009 at 6:54 PM, Christoph Gohlke<cgohlke@...2143...> wrote:

Index: lib/matplotlib/backends/backend_gtk.py

--- lib/matplotlib/backends/backend_gtk.py (revision 7257)
+++ lib/matplotlib/backends/backend_gtk.py (working copy)
@@ -1148,7 +1148,7 @@
# versions of pygtk, so we have to use a PNG file instead.
try:

- if gtk.pygtk_version < (2, 8, 0):
+ if gtk.pygtk_version < (2, 8, 0) or sys.platform == 'win32':
icon_filename = 'matplotlib.png'
else:
icon_filename = 'matplotlib.svg'

There are no obvious problems with the toolbar icons on my system (Python 2.6.2 32-bit, PyGTK 2.12, PyCairo 1.4.12, GTK 2.12.11, Vista 64-bit).

Christoph

···

On 07/11/2009 20:21, John Hunter wrote:

On Sat, Jul 11, 2009 at 6:54 PM, Christoph Gohlke<cgohlke@...2143...> wrote:

Index: lib/matplotlib/backends/backend_gtk.py

--- lib/matplotlib/backends/backend_gtk.py (revision 7257)
+++ lib/matplotlib/backends/backend_gtk.py (working copy)
@@ -1148,7 +1148,7 @@
  # versions of pygtk, so we have to use a PNG file instead.
  try:

- if gtk.pygtk_version< (2, 8, 0):
+ if gtk.pygtk_version< (2, 8, 0) or sys.platform == 'win32':
         icon_filename = 'matplotlib.png'
     else:
         icon_filename = 'matplotlib.svg'

Thanks, committed. Are there any problems with the toolbar icons on gtk/win32?

JDH

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

Christoph Gohlke wrote:

···

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:

http://www.lfd.uci.edu/~gohlke/#pythonlibs

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

------------------------------------------------------------------------------
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/blackberry
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users