Re: [Matplotlib-users] imshow : text.py broken?

2007-09-04 Thread Michael Droettboom
Thanks for fixing that. I forgot to mention when I added baseline alignment -- I really have no idea how to get a good baseline out of the usetex machinery, or if that's even possible. Now that you've fixed that bug, the baseline-misalignment problem should only affect those who explicitly

Re: [Matplotlib-users] imshow : text.py broken?

2007-09-04 Thread Jouni K . Seppänen
Michael Droettboom [EMAIL PROTECTED] writes: I forgot to mention when I added baseline alignment -- I really have no idea how to get a good baseline out of the usetex machinery, or if that's even possible. In principle it should be possible: TeX aligns its boxes on a baseline unless you

[Matplotlib-users] How to set the colorbar ticks fontsize.

2007-09-04 Thread Xavier Gnata
Hi all, I looking for a way to modify the colorbar ticks font size. a=rand(100,100) imshow(a) colorbar() and then?? For instance, xticks(fontsize=20) works well to modify the ticks fontsize along the X-axis but colorbar(fontsize=20) does not exists. I must be missing something. Xavier --

Re: [Matplotlib-users] basic understanding of plotting dates

2007-09-04 Thread Bill Dandreta
C M wrote: 1. What exactly must I import (which modules) and how do I import them (in the sense of import x vs. from x import y)? 2. What arguments does the plot_date() command take and what is format of the arguments? 3. Do I have to make the conversion from the date format above to the

Re: [Matplotlib-users] basic understanding of plotting dates

2007-09-04 Thread Mark Bakker
Maybe this will get you going: import pylab as p import datetime as d from matplotlib.dates import DateFormatter t = [ d.datetime (2007,9,1,12), d.datetime(2007,9,2,12), d.datetime(2007,9,3,12) ] t = p.date2num(t) p.plot_date( t, [10,20,30] ) p.xticks(t) y = DateFormatter('%Y-%m-%d')

Re: [Matplotlib-users] basic understanding of plotting dates

2007-09-04 Thread John Hunter
On 9/4/07, Brendan Barnwell [EMAIL PROTECTED] wrote: Incidentally, is there a reason why matplotlib can't just handle datetime objects itself? The requirement of having to manually convert them to an ad-hoc matplotlib format (which is just an integer) seems rather obtuse. It can

Re: [Matplotlib-users] basic understanding of plotting dates

2007-09-04 Thread Brendan Barnwell
Bill Dandreta wrote: C M wrote: 1. What exactly must I import (which modules) and how do I import them (in the sense of import x vs. from x import y)? 2. What arguments does the plot_date() command take and what is format of the arguments? 3. Do I have to make the conversion from the date

[Matplotlib-users] [Newbie question] Is 0:3:100 possible?

2007-09-04 Thread Robert Dailey
Hi, I come from using Matlab and I was just curious if it was possible to create an arange from a quick for loop of numbers? For example: 0:3:100 would generate: 0, 3, 6, 9, 12, , 96, 99 And I would want this range to be in an arange() object. Is there a similar way of doing this? Thanks.

Re: [Matplotlib-users] [Newbie question] Is 0:3:100 possible?

2007-09-04 Thread Matthieu Brucher
Hi, numpy.arange(0, 100, 3) perhaps ? Matthieu 2007/9/4, Robert Dailey [EMAIL PROTECTED]: Hi, I come from using Matlab and I was just curious if it was possible to create an arange from a quick for loop of numbers? For example: 0:3:100 would generate: 0, 3, 6, 9, 12, , 96, 99 And

Re: [Matplotlib-users] [Newbie question] Is 0:3:100 possible?

2007-09-04 Thread Robert Dailey
Ah; Thanks guys. I thought 'arange' was a class, however it is a function. I get it now. Sorry for the confusion! On 9/4/07, Steve Lianoglou [EMAIL PROTECTED] wrote: On Sep 4, 2007, at 3:09 PM, Robert Dailey wrote: Hi, I come from using Matlab and I was just curious if it was possible

Re: [Matplotlib-users] basic understanding of plotting dates

2007-09-04 Thread C M
Mark, Mark, Brendan, John, thanks for the input. I have a related question that may help to continue to clear things up for me. My goal is to use matplotlib with wxPython, and I've been able to embed graphs in wxPython apps fine so far (in this case, directly, not using wxMPL). What I wanted to

Re: [Matplotlib-users] inverted x-axis

2007-09-04 Thread Johann Cohen-Tanugi
Jouni, thanks for your reply. I could test that plot([1,2,3],[1,2,3]) setp(gca(), 'xlim', (3.0,1.0)) works, but setp(gca(), 'xlim', reversed(getp(gca(), 'xlim'))) gives me an error : --- TypeError

Re: [Matplotlib-users] inverted x-axis

2007-09-04 Thread Pierre GM
On Tuesday 04 September 2007 17:53:56 Johann Cohen-Tanugi wrote: Jouni, thanks for your reply. I could test that plot([1,2,3],[1,2,3]) setp(gca(), 'xlim', (3.0,1.0)) works, but setp(gca(), 'xlim', reversed(getp(gca(), 'xlim'))) Johann, You may find it easier to use methods instead of

Re: [Matplotlib-users] basic understanding of plotting dates

2007-09-04 Thread C M
I realize that the clearer question (and one which ties into my original thread) is: do I need pylab to do plot_date()? On 9/4/07, C M [EMAIL PROTECTED] wrote: Mark, Mark, Brendan, John, thanks for the input. I have a related question that may help to continue to clear things up for me. My

Re: [Matplotlib-users] basic understanding of plotting dates

2007-09-04 Thread Eric Firing
C M wrote: Mark, Mark, Brendan, John, thanks for the input. I have a related question that may help to continue to clear things up for me. My goal is to use matplotlib with wxPython, and I've been able to embed graphs in wxPython apps fine so far (in this case, directly, not using wxMPL).

Re: [Matplotlib-users] basic understanding of plotting dates

2007-09-04 Thread Eric Firing
C M wrote: I realize that the clearer question (and one which ties into my original thread) is: do I need pylab to do plot_date()? No, plot_date is available as an axes method. Most pylab plotting commands are thin wrappers for axes methods. Eric

Re: [Matplotlib-users] [Newbie question] Is 0:3:100 possible?

2007-09-04 Thread Christopher Barker
Robert Dailey wrote: Ah; Thanks guys. I thought 'arange' was a class, however it is a function. I get it now. Sorry for the confusion! Just a note: most often (at least if you are working with floating point values) you want linspace, rather than arange: N.linspace(3, 99, 33) array([ 3.,