Re: [Matplotlib-users] Options for speeding up matplotlib, spectrogram with log scale axis, etc.

2012-10-08 Thread Eric Firing
On 2012/10/08 6:21 PM, Jody Klymak wrote: > Hi Eric, > > Not sure if this is exactly what Jinbao is referring to, but: > > ax=gca() > X = randn(300,300) > pcolor(X) > ax.set_yscale('log') > ylim(1,100) > > Brings my computer to a standstill for over a minute. Removing the > "set_yscale" command s

Re: [Matplotlib-users] Options for speeding up matplotlib, spectrogram with log scale axis, etc.

2012-10-08 Thread Jody Klymak
Hi Eric, Not sure if this is exactly what Jinbao is referring to, but: ax=gca() X = randn(300,300) pcolor(X) ax.set_yscale('log') ylim(1,100) Brings my computer to a standstill for over a minute. Removing the "set_yscale" command speeds things up a lot. Same thing takes about 2 s in Matlab.

Re: [Matplotlib-users] drawing secondary x axis for months: a better way?

2012-10-08 Thread Mike Kaufman
On 10/8/12 11:03 PM, Paul Tremblay wrote: > I often have to make graphs with time series, with each point being the > start of a week. Below is the result I wish: > > However, in order to make the secondary x axis the the month labels, I > need something like 40 lines of code. My strategy consists

[Matplotlib-users] drawing secondary x axis for months: a better way?

2012-10-08 Thread Paul Tremblay
I often have to make graphs with time series, with each point being the start of a week. Below is the result I wish: However, in order to make the secondary x axis the the month labels, I need something like 40 lines of code. My strategy consists in first drawing the

Re: [Matplotlib-users] Options for speeding up matplotlib, spectrogram with log scale axis, etc.

2012-10-08 Thread Andre' Walker-Loud
Hi Jianbao, I used to try and install my python suite from src code on my own. Somewhere between the Mac OS 10.5, 10.6, migrating accounts, my python installation broke, and I never could get it all working again. Something related to 10.6 didn't have full backwards compatibility because of the

Re: [Matplotlib-users] But report: Date axis formatter problem

2012-10-08 Thread Damon McDougall
On Mon, Oct 8, 2012 at 4:37 PM, Jianbao Tao wrote: > Problem: The autodatelocator and autodateformatter don't seem to work > properly. One, the formatter doesn't seem to work immediately after being > applied to an axis. A manual call to the locator seems necessary. Two, the > autodatelocator does

Re: [Matplotlib-users] Options for speeding up matplotlib, spectrogram with log scale axis, etc.

2012-10-08 Thread Jianbao Tao
Hi Andre, Thanks for your message. I like it. :-) I do have a .edu email. I didn't try to install Chaco with EPD because I tend to be skeptical when it comes to a bundled package with a lot of stuff. I like it to be as simple as possible. But it seems that I am probably better off to install EPD

Re: [Matplotlib-users] Options for speeding up matplotlib, spectrogram with log scale axis, etc.

2012-10-08 Thread Eric Firing
On 2012/10/08 7:55 AM, Jianbao Tao wrote: > Hi all, > > A little background: I am from the space physics field where a lot of > people watch/analyze satellite data for a living. This is a field > currently dominated by IDL in terms of visualization/analysis software. > I was a happy IDL user until

Re: [Matplotlib-users] Options for speeding up matplotlib, spectrogram with log scale axis, etc.

2012-10-08 Thread Andre' Walker-Loud
Hi Jianbao, One option for getting Chaco is to install the Enthought python disctribution http://www.enthought.com/ you can see from their package index, they install Chaco (and all needed libraries to make it work) http://www.enthought.com/products/epdlibraries.php If you have an email endin

[Matplotlib-users] Options for speeding up matplotlib, spectrogram with log scale axis, etc.

2012-10-08 Thread Jianbao Tao
Hi all, A little background: I am from the space physics field where a lot of people watch/analyze satellite data for a living. This is a field currently dominated by IDL in terms of visualization/analysis software. I was a happy IDL user until I saw those very, very, I mean, seriously, very, very

Re: [Matplotlib-users] Matplotlib produced plots in academic journal articles

2012-10-08 Thread Andreas Hilboll
> Hello, > > Is there any collection of articles that shows academic articles using > matplotlib produced plots? I have come across a few recent articles in my > field with plots produced by matplotlib. Though, the mpl page shows some > nice examples of publication quality plots, it would be nice t

Re: [Matplotlib-users] But report: Date axis formatter problem

2012-10-08 Thread Jianbao Tao
Bug to the bug report: In the subject, it should be 'Bug report', rather than 'But report'. Oops :-( Jianbao On Mon, Oct 8, 2012 at 9:37 AM, Jianbao Tao wrote: > Problem: The autodatelocator and autodateformatter don't seem to work > properly. One, the formatter doesn't seem to work immediately

[Matplotlib-users] But report: Date axis formatter problem

2012-10-08 Thread Jianbao Tao
Problem: The autodatelocator and autodateformatter don't seem to work properly. One, the formatter doesn't seem to work immediately after being applied to an axis. A manual call to the locator seems necessary. Two, the autodatelocator doesn't seem to be able to handle view intervals less than 1 sec

Re: [Matplotlib-users] Format date tick labels

2012-10-08 Thread Jianbao Tao
Thanks, Ben. Your fix works when the view interval is greater than 1 minute, but not so much when the view interval is less than one minute. BTW, what I am trying to accomplish is to use matplotlib to plot time-series data that can be as long as several days and as short as a few milliseconds. So

Re: [Matplotlib-users] Format date tick labels

2012-10-08 Thread Benjamin Root
On Sun, Oct 7, 2012 at 6:47 PM, Jianbao Tao wrote: > fig = figure() > tsta = num2epoch(date2num(datetime.datetime.now())) > tarr = tsta + arange(0, 60*60*0.5, 0.1)# half hour, dt = > 0.1 sec > x = np.array(num2date(epoch2num(tarr))) > nt = len(tarr) > y = randn(nt) > > ax = fig.ad