Re: [Matplotlib-users] [SciPy-user] plotting with scipy

2007-03-27 Thread Ryan Krauss
I am not running Debian and am not on a linux box right now. I can be in a few minutes. I think we should move this to the matplotlib users list. Someone there can help you install on Debian. Ryan On 3/27/07, javi markez bigara <[EMAIL PROTECTED]> wrote: > this is where the folder is > /home2/d

Re: [Matplotlib-users] Displaying several points with different colors

2007-03-27 Thread Matthieu Brucher
Hi, I tried to dig into the 3D code, and in fact, it is RegularPolyCollection that seems to be incompatible with Axes3D. Axes3D uses _verts to create z values, and it crashes when trying to figure out how to display it (art3d.pylines 208-221). I don't know enough to correct it. But I have another

[Matplotlib-users] creating live plot (update while data is arriving)

2007-03-27 Thread Antonino Ingargiola
Hi to the list, I'm searching to display in realtime some data read serial port. The data is a 2D matrix and is read element wise from the serial, one pixel each one (or more) seconds. I'm running the script from "ipython -pylab" using the command "run scriptname". After "loading" the script I i

[Matplotlib-users] Possible to use SciPy instead of NumPy?

2007-03-27 Thread Tyler Hayes
Hello All: I have a qucik question. I like to use SciPy for many of the extra functions it provides on top of NumPy. I also like to use matplotlib to visualize my data. Currently, I use the following in the majority of my Python codes: from pylab import * import scipy I know that in the matplot

[Matplotlib-users] segfault with TkAgg and any GUI in 2.5

2007-03-27 Thread Matt Beal
Having upgraded to 2.5, I get a segfault when running a very simple plot script (test.py) at the show() function. Prior to show() I can save to file and the result looks good. The GUI is crashing on show(). Any suggestions to fix welcome (I'm guessing many of you know the solution to this probl

[Matplotlib-users] date demo1 not working for me

2007-03-27 Thread C M
Hi, I'm new to mpl and want to learn date plotting. Would like to start with the demo, but date_demo1 won't run for me. (My specs: winXP, Python 2.5, matplotlib 0.9.0, numpy 1.0, and yes was connected to the internet when I ran it). I just copied into IDLE and saved it and got this error: Trac

[Matplotlib-users] colorbar, setting limits

2007-03-27 Thread Evan Mason
Hi I want to set the limits of my colorbar to something different from that of my plot. For example I have a contourf plot where I set the colour limits to be, say: clim([15, 25]) But I want the limits of the colorbar to be 10 and 30. I suspect this is something to do with mappable and vmin a

Re: [Matplotlib-users] Possible to use SciPy instead of NumPy?

2007-03-27 Thread Robert Kern
Tyler Hayes wrote: > Ideally I'd like to just make the one call: > > from pylab import * > > Which would load SciPy (& NumPy) automatically I recommend simply making your own file with all of the imports you need. Implicitly relying on scipy being the chosen 'numerix' will make your code difficu

Re: [Matplotlib-users] colorbar, setting limits

2007-03-27 Thread Evan Mason
Sorry, I realise that my example in my original post doesn't quite make sense. My data range is 17 to 23. I set clim to be clim([15, 25]). I then want the colorbar limits to be the same as clim, 15 to 25. The questions remains the same, which is how to set the range for colorbar. Thanks, Evan

Re: [Matplotlib-users] date demo1 not working for me

2007-03-27 Thread Pierre GM
On Tuesday 27 March 2007 16:27:35 C M wrote: > ValueError: time data did not match format: data=2003-12-01 fmt=%d-%b-%y > > Any idea what I'm doing wrong? Well, if data='2003-12-01', the format should be "%y-%m-%d" or "%y-%d-%m" depending on the local convention. Here, 2003 is interpreted as a

Re: [Matplotlib-users] colorbar, setting limits

2007-03-27 Thread Eric Firing
Evan, It is still not quite clear to me what you want versus what you are getting. With recent versions of mpl, the colorbar automatically uses the same color boundaries as contourf, if that is what the colorbar is tracking. What version of mpl are you using? (With the most recent mpl I see

Re: [Matplotlib-users] date demo1 not working for me

2007-03-27 Thread Eric Firing
C M wrote: > Hi, I'm new to mpl and want to learn date plotting. Would like to start > with the demo, but date_demo1 won't run for me. (My specs: winXP, > Python 2.5, matplotlib 0.9.0, numpy 1.0, and yes was connected to the > internet when I ran it). I just copied into IDLE and saved it and

Re: [Matplotlib-users] segfault with TkAgg and any GUI in 2.5

2007-03-27 Thread Eric Firing
Matt Beal wrote: > Having upgraded to 2.5, I get a segfault when running a very simple plot > script (test.py) at the show() function. Prior to show() I can save to > file and the result looks good. The GUI is crashing on show(). > > Any suggestions to fix welcome (I'm guessing many of you kn

Re: [Matplotlib-users] colorbar, setting limits

2007-03-27 Thread Evan Mason
Hi Eric I am using matplotlib-0.90.0. I am making 2 contourf subplots of temperature values which have similar but not equal ranges. In subplot1 the range is 15-25; in subplot2 it is 16 to 24. I use clim, giving it the max and min values obtained from a comparison of subplot1 and 2; i.e., I us

Re: [Matplotlib-users] colorbar, setting limits

2007-03-27 Thread Eric Firing
Evan, That is getting clearer, but it still seems to me that no override should be needed in this case; it should "just work", so if it doesn't, either there is a bug in mpl or a bug in the code. It would be most helpful if you would write a stripped-down simplest-possible script that illustr

Re: [Matplotlib-users] colorbar, setting limits

2007-03-27 Thread Evan Mason
Hi Eric, the following lines below will show this. Interestingly, the correct (or, at least, what I want) behaviour results from using pcolor, but not with contourf. a = arange(12, 27, .5) b = arange(17, 23, .5) x, y = meshgrid(a, b) # get max and min for clim cmin = min(x.min(), y.min()) # cm

Re: [Matplotlib-users] colorbar, setting limits

2007-03-27 Thread Eric Firing
Evan, OK, I see what the problem is: you need to tell the second contour command to use the same contour levels as the first one is using. Something like this: figure(1) CS1 = contourf(x) clim(cmin, cmax) colorbar() figure(2) CS2 = contourf(y, levels=CS1.levels) clim(cmin, cmax) colorbar() Doe

Re: [Matplotlib-users] colorbar, setting limits

2007-03-27 Thread Evan Mason
Thanks, Eric, Yes, that works for the stripped down version, but not for what I am trying to do. The examples I have given have the range of one of the plots nicely fitting inside that of the other (ie, plot 1 range 15 to 26, plot 2 range 17 to 23), but sometimes with what I am doing I have, for