[Matplotlib-users] UnboundLocalError from multiple traces with plot_date in 0.90

2007-02-14 Thread Delbert Franz
I'm back to developing with matplotlib after a bit of a hiatus. I am refactoring an app I wrote about two years ago. I suspect I have uncovered a bug in 0.90 which was not present in 0.87.7. The small test script, which I created to reproduce the problem, fails with the follow traceback in 0.90

Re: [Matplotlib-users] bug in axis('scaled') in version 0.90 and proposed fix

2007-02-14 Thread Eric Firing
Mark, It sounds like what you want axis('scaled') to do is nothing other than gca().set_aspect(1, adjustable='box') draw_if_interactive() I think this is a bit out of character with things like axis('equal'). Part of this character is that automatic things are turned on, so that going back and

Re: [Matplotlib-users] testing of matplotlib 0.90 - on Win XP and Python 2.5

2007-02-14 Thread Christopher Barker
Thanks for doing this, the wx back-ends are a bit neglected at the moment. Which version of wxPython did you test this all on? We really need some work/testing with 2.8.*, I now there are some issues on OS-X, but I haven't tried it anywhere else yet. -Chris -- Christopher Barker, Ph.D. Ocean

Re: [Matplotlib-users] plotting problem

2007-02-14 Thread John Hunter
On 2/14/07, Darren Dale <[EMAIL PROTECTED]> wrote: > What Ewald is trying to do used to work. The idea is not to work > interactively, but to run a script and have the plots render in stages, the > next stage begins when the current windows are closed. I know we have users > who take advantage of

Re: [Matplotlib-users] Toggle plot trace

2007-02-14 Thread John Hunter
On 2/14/07, David Clark (Lists) <[EMAIL PROTECTED]> wrote: > I'm working on a GUI with wxPython to display several traces of data. > Using a checkbox, I would like to be able to turn traces on the plot on > and off. I have managed to find the right methods to turn the whole > axes on and off, but

Re: [Matplotlib-users] matplotlib and boa

2007-02-14 Thread Nicolas Grilly
On 2/14/07, Sture Lygren <[EMAIL PROTECTED]> wrote: > Thank's a lot for your informative answer. I've solved the issue now using > WXAgg as backend. WX was way too slow (plotting two graphs with 8000 > datapoints each) Happy to know it have solved your issue :-) NG --

Re: [Matplotlib-users] matplotlib and boa

2007-02-14 Thread Sture Lygren
Hi, Thank's a lot for your informative answer. I've solved the issue now using WXAgg as backend. WX was way too slow (plotting two graphs with 8000 datapoints each) regards, Sture >> I've been trying to use matplotlib from boa constructor (on windows, >> running enthon-python2.4-1.0.0 and boa-co

[Matplotlib-users] test message

2007-02-14 Thread David D Clark
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - -- David D. Clark Electrical Engineer P-23, Neutron Science and Technology e-mail mailto:[EMAIL PROTECTED] GPG Public key 0x018D6523 available at http://www.us.pgp.net http://www.gnupg.org has information about public key cryptography -BEGIN PG

[Matplotlib-users] get_xgridlines (was get_gridlines)

2007-02-14 Thread kc106_2005-matplotlib
Okay, I'll answer my own question. After looking through the code, it appears I have to do a xgridlines - not gridlines, like: glines = getp(gca(), 'xgridlines') > > Hi list, > > The tutorial indicated that I can use gca to get at the grid > by doing a: > > glines = getp(gca(), 'gridlines')

[Matplotlib-users] get_gridlines

2007-02-14 Thread kc106_2005-matplotlib
Hi list, The tutorial indicated that I can use gca to get at the grid by doing a: glines = getp(gca(), 'gridlines') but when I do that, I get a "Subplot instance has no attribute "get_gridlines". How do I get to the grid object? Thanks, -- John Henry ---

[Matplotlib-users] testing of matplotlib 0.90 - on Win XP and Python 2.5

2007-02-14 Thread Werner F. Bruhin
I just downloaded the 0.9 binary and did some testing and also updated all the wx examples to use the new wx namespace (i.e. change from "from wxPython.wx import *" to "import wx". dynamic_demo_wx.py - changed name space using Boa's conversion tool - moved the timer stuff to __init__, saved a r

[Matplotlib-users] Toggle plot trace

2007-02-14 Thread David Clark (Lists)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I'm working on a GUI with wxPython to display several traces of data. Using a checkbox, I would like to be able to turn traces on the plot on and off. I have managed to find the right methods to turn the whole axes on and off, but not individu

Re: [Matplotlib-users] matplotlib and boa

2007-02-14 Thread Nicolas Grilly
> I've been trying to use matplotlib from boa constructor (on windows, > running enthon-python2.4-1.0.0 and boa-constructor 0.4.4). For test > purpose I have a single button-event call this function: > > def testPlot(): > plot([1,2,3]) > show() > > Everything is fine for the first e

[Matplotlib-users] Mlib and GUI not refreshing

2007-02-14 Thread Tomi Hautakoski
Hello, I have been working with Mlib and networkX to create a server which listens for connections and based on the message it receives, it updates and shows a graph. These are great tools but one thing has come up: when the graph has been updated and the control goes back so listening socket.

Re: [Matplotlib-users] bug in axis('scaled') in version 0.90 and proposed fix

2007-02-14 Thread Mark Bakker
I have a follow-up on my previous emai. I don't think we should do an autoscale_view() for axis('equal') either. For axis('equal') only the limits of either the x or y axis are adjusted (enlarged really) until the aspect ratio is equal. Not sure about the others. Do we ever need to do it? Mark --

[Matplotlib-users] bug in axis('scaled') in version 0.90 and proposed fix

2007-02-14 Thread Mark Bakker
Eric - I just installed version 0.90 on my windows machine and it seems that axis('scaled') doesn't work properly yet. I thought axis('scaled') will change the axes such that the aspect ratio is equal WITHOUT changing the limits on the axes. A simple example shows that this goes wrong (I thought

Re: [Matplotlib-users] plotting problem

2007-02-14 Thread Darren Dale
On Wednesday 14 February 2007 6:59:18 am George Nurser wrote: > On 14/02/07, Ewald Zietsman <[EMAIL PROTECTED]> wrote: > > Hi All, > > > > I have a slight problem using matplotlib 0.87.7. I'm using Ubuntu 6.10 > > and installed mpl from source. I'm running numpy 1.01, also installed > > from sourc

Re: [Matplotlib-users] plotting problem

2007-02-14 Thread George Nurser
On 14/02/07, Ewald Zietsman <[EMAIL PROTECTED]> wrote: > Hi All, > > I have a slight problem using matplotlib 0.87.7. I'm using Ubuntu 6.10 and > installed mpl from source. I'm running numpy 1.01, also installed from > source. > > If I run the script below, the first plot shows fine. When I close

[Matplotlib-users] plotting problem

2007-02-14 Thread Ewald Zietsman
Hi All, I have a slight problem using matplotlib 0.87.7. I'm using Ubuntu 6.10 and installed mpl from source. I'm running numpy 1.01, also installed from source. If I run the script below, the first plot shows fine. When I close it the second plot should display but it doesn't. I can only get t