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 * > > da

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. > > That's exactly what I'd like to do. The problem is that if I run > gtk.main() (the gtk mai

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

2007-03-28 Thread Eric Firing
I forgot "reply to all". --- Begin Message --- 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. E

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

2007-03-28 Thread Antonino Ingargiola
On 3/28/07, Ken McIvor <[EMAIL PROTECTED]> wrote: > On Mar 27, 2007, at 12:35 PM, Antonino Ingargiola wrote: [cut] > You should probably do the acquisition asynchronously by running it > in a separate thread. That thread would read in the data one point > at a time, perform any pre-processing, and

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

2007-03-28 Thread Ken McIvor
On Mar 28, 2007, at 3:41 PM, [EMAIL PROTECTED] wrote: > > 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

[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] 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

[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") specgram

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 >

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

2007-03-28 Thread Bill Baxter
On 3/29/07, John Hunter <[EMAIL PROTECTED]> wrote: > 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 > >

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

2007-03-28 Thread Suresh Pillai
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 = pylab.rand(30,30) pylab.imshow(matrix)

[Matplotlib-users] colorbar() with new matshow()

2007-03-28 Thread Suresh Pillai
Continuing from a previous thread re the new matshow(), adding a colorbar() causes the matrix to shrink relative to the colorbar. Furthermore this colorbar overlaps with the figure title. For those like me who need a colorbar as a legend and/or who do not want the matrix visualisation in a new

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 imple

[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 sim

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 imp

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

[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 th

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

2007-03-28 Thread John Hunter
On 3/28/07, Nadia Dencheva <[EMAIL PROTECTED]> wrote: > Numarray does not work with Python 2.5 on 64 bit Linux. > If this is a 64 bit Linux machine try using numpy instead. If this doesn't help, here are the generic "segfault" instructions:: # How to diagnose where a segfault is occurring First

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 >

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

2007-03-28 Thread John Hunter
On 3/28/07, Mark Bakker <[EMAIL PROTECTED]> wrote: > 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. The default font listing wa

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

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

[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, 5