Galde example and Log scales

Hi, does anyone have an example of how to use matplotlib

    > with glade2?

See the attached example. I've used matplotlib with glade in my own
work, but never distilled it down to a simple example, as I just did.
I'll add them to the examples in the distribution. Note, you must be
using matplotlib 0.29 for this example to work. You can certainly use
matplotlib in any version with glade, but this example uses the new
API, in which GTK is only one of several renderers. If you need to
use an earlier version of matplotlib, the only change is at the top,
in the way you import Figure, Subplot, etc...

    > Any idea when log scaling will be supported?

This is near the top of my todo list. I have been holding off on
releasing 0.3 until I get this done. So I'll try to get it done by
next week, time permitting!

John Hunter

Glade example:

mpl_with_glade.py (1.96 KB)

mpl_with_glade.glade (8.6 KB)

Hi,
  thanks for that example, I've been using the article from the Linux
journal "A begnners guide to using pyGTK and Glade",
http://www.linuxjournal.com/article.php?sid=6586, although I have been
using python for a while, and I ahd to make a small change to

/usr/lib/python2.2/site-packages/matplotlib/backends/backend_gtk.py

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, Michael

PS log scales by next week sounds great, take me at least that long to
sort out the rest of the stuff I need.

···

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

    > Hi, does anyone have an example of how to use matplotlib
    > with glade2?

See the attached example. I've used matplotlib with glade in my own
work, but never distilled it down to a simple example, as I just did.
I'll add them to the examples in the distribution. Note, you must be
using matplotlib 0.29 for this example to work. You can certainly use
matplotlib in any version with glade, but this example uses the new
API, in which GTK is only one of several renderers. If you need to
use an earlier version of matplotlib, the only change is at the top,
in the way you import Figure, Subplot, etc...

    > Any idea when log scaling will be supported?

This is near the top of my todo list. I have been holding off on
releasing 0.3 until I get this done. So I'll try to get it done by
next week, time permitting!

John Hunter

Glade example:

--
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.