[Matplotlib-users] surface plot...

2007-03-28 Thread jens haemmerling
hello I have problems to plot surfaces like f(x,y)=x*y... for example plot_surface([1,2,3], [4,5,6], [7,8,9]) doesn't work either... I imported the following: from numpy import * import pylab as p import matplotlib.axes3d as p3 does anybody have an advice? -- Feel free - 5 GB Mailbox, 50

[Matplotlib-users] what is the old default font?

2007-03-28 Thread Mark Bakker
Hello List - A while back, the default font changed in the matplotlibrc file. Does anybody recall what the old default font was? I kinda liked it better than the current font, but I don't recall what it was. Thanks, Mark -

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

2007-03-28 Thread Nadia Dencheva
Numarray does not work with Python 2.5 on 64 bit Linux. If this is a 64 bit Linux machine try using numpy instead. Nadia Dencheva 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

Re: [Matplotlib-users] surface plot...

2007-03-28 Thread John Hunter
On 3/28/07, jens haemmerling [EMAIL PROTECTED] wrote: I have problems to plot surfaces like f(x,y)=x*y... for example plot_surface([1,2,3], [4,5,6], [7,8,9]) doesn't work either... I imported the following: from numpy import * import pylab as p import matplotlib.axes3d as p3 does

[Matplotlib-users] matlab, idle, interactivity and teaching

2007-03-28 Thread Giorgio Luciano
Hello to all, I've thread that apperead some time ago on this list about matlab and teaching. I've discovered python recently and translated part of the routine I use in python (www.chemometrics.it). Some of my collegue asked me if I could show them how to use python. For matlab user I guess

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

2007-03-28 Thread Ken McIvor
On Mar 27, 2007, at 12:35 PM, Antonino Ingargiola wrote: 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. You shouldn't have any problems making this happen, although it

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

2007-03-28 Thread Fernando Perez
On 3/28/07, Ken McIvor [EMAIL PROTECTED] wrote: You'd almost certainly be happier doing things the other way around. Most GUI toolkits are extremely fussy about what thread the GUI event loop runs in. For example, wxPython requires App.MainLoop() be called from the thread that first imported

[Matplotlib-users] Migration from Matlab: translator and EEGlab

2007-03-28 Thread Giorgio F. Gilestro
Hi, I have to question that will help some colleagues/friends of mine to switch to python from matlab. 1 - is there an automatic translator of code from matlab to python/numpy/matplotlib? I believe it would be very easy to implement due the similar syntax between the two. I could do something

Re: [Matplotlib-users] Migration from Matlab: translator and EEGlab

2007-03-28 Thread John Hunter
On 3/28/07, Giorgio F. Gilestro [EMAIL PROTECTED] wrote: Hi, I have to question that will help some colleagues/friends of mine to switch to python from matlab. 1 - is there an automatic translator of code from matlab to python/numpy/matplotlib? I believe it would be very easy to implement

Re: [Matplotlib-users] tick locations in new matshow()

2007-03-28 Thread Eric Firing
Suresh Pillai wrote: The new matshow() seems to like ticks every 4 units (or multiples of 4 for larger scales) rather than the normal, more desirable every 5 units. Compare: import pylab matrix = pylab.rand(30,30) pylab.matshow(matrix) pylab.show() with import pylab matrix =

[Matplotlib-users] specgram: Warning: divide by zero encountered in log10

2007-03-28 Thread Niklas Saers
Hi guys, I'm trying to make a specgram() for some wave samples that I have read into 'data' using pyaudiolab's read_frames() (put into wavread()) When I do from wavread import * from pylab import * from statistics import * data, datasize, samplerate, channels = wavread(myfile.wav)

[Matplotlib-users] surface plot...

2007-03-28 Thread Matthew Koichi Grimes
jens haemmerling wrote: -- Message: 1 Date: Wed, 28 Mar 2007 12:39:05 +0200 From: jens haemmerling [EMAIL PROTECTED] Subject: [Matplotlib-users] surface plot... To: matplotlib-users@lists.sourceforge.net Message-ID: [EMAIL

[Matplotlib-users] [wxmpl] How to get coordinates from selected rectangle

2007-03-28 Thread David . L . Goldsmith
Hi! I have a wxmpl.PlotPanel object with a cross-hair style cursor (without the full screen crosshairs). When I select a rectangle w/ this cursor it zooms in to that rectangle - great! Now, how do I get the rectangle coordinates (preferably in data coords.) from the rectangle selection event?

[Matplotlib-users] [Fwd: Re: colorbar, setting limits]

2007-03-28 Thread Eric Firing
I forgot reply to all. ---BeginMessage--- Evan, The solution you are proposing below sounds wrong to me--I am concerned that your color bar is not corresponding to the actual levels you are plotting on both plots. I think that what you actually need is closer to the attached script. Eric

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

2007-03-28 Thread Ken McIvor
On Mar 28, 2007, at 6:03 PM, Antonino Ingargiola wrote: On 3/28/07, Ken McIvor [EMAIL PROTECTED] wrote: You should probably do the acquisition asynchronously by running it in a separate thread. snip That's exactly what I'd like to do. The problem is that if I run gtk.main() (the gtk main

Re: [Matplotlib-users] specgram: Warning: divide by zero encountered in log10

2007-03-28 Thread John Hunter
On 3/28/07, Niklas Saers [EMAIL PROTECTED] wrote: Hi guys, I'm trying to make a specgram() for some wave samples that I have read into 'data' using pyaudiolab's read_frames() (put into wavread()) When I do from wavread import * from pylab import * from statistics import * data,