Galde example and Log scales

try: import pygtk pygtk.require('2.0') except: pass

    > I'm running redhat 8.0 and have these versions of pygtk
    > installed.

    > [root@...24... root]# rpm -qa | grep pygtk pygtk2-1.99.12-7
    > pygtk2-libglade-1.99.12-7

Thanks for the info. matplotlib officially requires pygtk-1.99.16
which is where the require('2.0') thing comes from, but this has
caused a number of redhat users a lot of grief so I need to make the
changes you suggest to backport to earlier versions. I'm curious to
know if with these changes all of the demos run on the default RHL8
install. If you get a chance to run a number of them, let me know and
I'll update the web page.

John Hunter

Hi,
  the following seem to work,

arctest.py
axes_demo.py
stock_demo.py

but all generate similar errors along the lines of

michaelt@...24... examples>python stock_demo.py
Xlib: extension "RENDER" missing on display ":0.0".
Warning: text label "0" is outside window extent
Warning: text label "0.6" is outside window extent
Warning: text label "1.2" is outside window extent
Warning: text label "1.8" is outside window extent
Warning: text label "2.4" is outside window extent
Warning: text label "3" is outside window extent
Warning: text label "Days" is outside window extent
Warning: text label "0.79" is outside window extent
Warning: text label "0.86" is outside window extent
Warning: text label "0.93" is outside window extent
Warning: text label "1" is outside window extent
Warning: text label "1.07" is outside window extent
Warning: text label "1.14" is outside window extent

The color_demo.py fails to run at all with the end of the error message
being.

michaelt@...24... examples>python color_demo.py
"/usr/lib/python2.2/site-packages/matplotlib/backends/backend_gtk.py",
line 41, in get_color
    color =
self._cmap.alloc_color(int(r*65025),int(g*65025),int(b*65025))
TypeError: GdkColormap.alloc_color() argument 1 must be string, not int

···

On Wed, 2003-10-01 at 14:54, John Hunter wrote:

    > try: import pygtk pygtk.require('2.0') except: pass

    > I'm running redhat 8.0 and have these versions of pygtk
    > installed.

    > [root@...24... root]# rpm -qa | grep pygtk pygtk2-1.99.12-7
    > pygtk2-libglade-1.99.12-7

Thanks for the info. matplotlib officially requires pygtk-1.99.16
which is where the require('2.0') thing comes from, but this has
caused a number of redhat users a lot of grief so I need to make the
changes you suggest to backport to earlier versions. I'm curious to
know if with these changes all of the demos run on the default RHL8
install. If you get a chance to run a number of them, let me know and
I'll update the web page.

John Hunter

--
Michael Thompson
RF IC Design Engineer
Silicon & Software systems
+353 1 291 1710

The information contained in this e-mail and in any attachments is confidential and is designated solely for the attention of the intended recipient(s). If you are not an intended recipient, you must not use, disclose, copy, distribute or retain this e-mail or any part thereof. If you have received this e-mail in error, please notify the sender by return e-mail and delete all copies of this e-mail from your computer system(s).
Please direct any additional queries to: communications@...22...
Thank You.