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 tur
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
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
--
>>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 t
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')
p.gca().xaxis
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.
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 f
Xavier Gnata wrote:
> 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 mu
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.
--
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,
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 p
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
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
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 inste
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.
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 wxMP
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
-
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([
18 matches
Mail list logo