On Sun, 2007-04-08 at 19:25 +0200, David Fokkema wrote:
> On Fri, 2007-04-06 at 18:32 +0300, Jouni K. Seppänen wrote:
> > David Fokkema <[EMAIL PROTECTED]> writes:
> >
> > > If I choose center, the result is that my histogram is calculated
> > > for edge values but the bars are placed at center va
John Hunter schrieb:
> On 4/4/07, Simon Kammerer <[EMAIL PROTECTED]> wrote:
>> Hi list,
>>
>> I guess it's not limited to the basemap toolkit, but it fits to explain
>> my problem:
>>
>> I'd like to produce time series with basemap. As drawing coastlines,
>> countrys etc. is expensive, but stays th
I think this is a trivial question..
If there are a set of data points being plotted in a
subplot, say 0 to 1000 points; the subplot displays
the ticks as 0 to 1000 points and it is desired to
"translate" those points to 0 t0 250 points on the
subplot display - with point 0 mapping to point 0,
poi
Not sure if I understand, but I think this is what you want to do:
y = rand(1000) # your 1000 random points
x = linspace(0, 250, y.size)
plot(x,y)
/A
Iyer wrote:
> I think this is a trivial question..
>
> If there are a set of data points being plotted in a
> subplot, say 0 to 1000 points; the
David Fokkema <[EMAIL PROTECTED]> writes:
> I fixed the bug, I think. At least it's working on my system and I think
> it is not invasive. Comments please? I'll send it upstream otherwise...
Does this handle the case where the user has specified bins of
different widths? It looks like you are onl
Thanx for the response..
I'd like to avoid the pylab interface...
linspace is good.
assume you have 1000 points of data and you'd like the
ticks to display from 0 to 4, since the 1000 points of
data were sampled at 250 Hz.
any "non-pylab" ideas ? Indexlocator?
-iyer
--- Antonio Gonzalez <[
Hello List -
I have been using IDLE with the -n option to run matplotlib interactively.
Now today I decided to install Python 2.4.4, using the win32 installer on
the python webpage.
Normally I use the Enthought edition (which I like a lot), but they haven't
released a new version with numpy 1.0
On Tue, 2007-04-10 at 16:13 +0300, Jouni K. Seppänen wrote:
> David Fokkema <[EMAIL PROTECTED]> writes:
>
> > I fixed the bug, I think. At least it's working on my system and I think
> > it is not invasive. Comments please? I'll send it upstream otherwise...
>
> Does this handle the case where th
On 4/10/07, Iyer <[EMAIL PROTECTED]> wrote:
> I'd like to avoid the pylab interface...
> linspace is good.
from matplotlib.mlab import linspace
But linspace may not be what you want. Probably better:
In [1]: Fs = 4. # sampling at 4Hz
In [2]: dt = 1./Fs
In [3]: import numpy
In [4]: ind = num
I apologize if I haven't been sufficiently clear.
While your suggestion picks out the samples from the
sample set, and discards other samples - what I was
looking at --
when I plot a sample set, of say - 1000 points, the
xticks shows up as 0 to 1000 points on the plot.
I was wondering if there c
On 4/10/07, Iyer <[EMAIL PROTECTED]> wrote:
> I apologize if I haven't been sufficiently clear.
>
> While your suggestion picks out the samples from the
> sample set, and discards other samples - what I was
> looking at --
>
> when I plot a sample set, of say - 1000 points, the
> xticks shows up as
Wouldn't it make sense to simply change the xticks to
reflect the time instead of the number of data points
?
Like, if we needed to display 0 t0 1000 points over a
period of time, wouldn't it be nice to translate the
xticks to reflect the period of time ?
Would you suggest using IndexLocator in
Hello Simon-
I have experimented with every conceivable python/numpy/mpl
permutation on mac os and I will second Chris Barker's recommendation.
Use the pythonmac.org packages with the wx backend. Choose whichever
version of wx and python that is best supported my the mpl version.
I use mpl v 0.87
Stephen Uhlhorn wrote:
> I have experimented with every conceivable python/numpy/mpl
> permutation on mac os and I will second Chris Barker's recommendation.
> Use the pythonmac.org packages with the wx backend. Choose whichever
> version of wx and python that is best supported my the mpl version.
On 4/10/07, Iyer <[EMAIL PROTECTED]> wrote:
>
> Wouldn't it make sense to simply change the xticks to
> reflect the time instead of the number of data points
No
> Like, if we needed to display 0 t0 1000 points over a
> period of time, wouldn't it be nice to translate the
> xticks to reflect the p
On 4/10/07, John Hunter <[EMAIL PROTECTED]> wrote:
> On 4/10/07, Iyer <[EMAIL PROTECTED]> wrote:
> > I apologize if I haven't been sufficiently clear.
> >
> > While your suggestion picks out the samples from the
> > sample set, and discards other samples - what I was
> > looking at --
My suggestio
David Fokkema <[EMAIL PROTECTED]> writes:
> I can't think of an application where you have bins of different
> widths and you want to center the values...
Actually, now that I think about it, there is not enough information
in the bin centers to know the widths of the bins if they may vary.
For e
It is not what I need..
http://matplotlib.sourceforge.net/matplotlib.axes.html
The plot method (plot(self, *args, **kwargs)) accepts
only x,y pairs, in ax.plot(ind*dt, y) -- the x
parameter is ind*dt - the sample times, but the data
between the sample points is lost. IMHO, the likely
way to preve
John,
One of the problems we've had is trying to design an auto-scaling
algorithm that works well with any type date format since the date
strings can be so large horizontally. I believe that having the draw
time elements be able to query the renderer for things would help
this out tremendousl
There seems to be a huge misunderstanding here, and I am not sure what
it is, but what you need to do is run examples and experiment with
variations until you have some inkling of what mpl is actually doing.
Start with http://matplotlib.sourceforge.net/tutorial.html.
Please note that the ti
Ted Drain wrote:
> John,
> One of the problems we've had is trying to design an auto-scaling
> algorithm that works well with any type date format since the date
> strings can be so large horizontally. I believe that having the draw
> time elements be able to query the renderer for things would
On 4/10/07, Eric Firing <[EMAIL PROTECTED]> wrote:
> Ideas and strategy sketches tend to get lost in the email stack; would
> it help to have a wiki page for discussion of major design questions
> like this? Or is this overkill?
My preference is for (possibly structured) text documents in the sv
Hi,
a problem that I have since some time now using mpl: everytime I start
plotting, I get something like:
(python:6374): GnomePrintCupsPlugin-WARNING **: iconv does not support
ppd character encoding: ISOLatin1, trying CSISOLatin1
I know this is not really a mpl problem, but if anybody has a cl
With all respect, I have certainly perused the
tutorials before posting the question. I'm still a
newbie and I acknowledge I have miles and miles to go
before I can be someone who can help out in the
Matplotlib group like you guys do.
The problem is simple, it is like the date examples in
the Matp
On 4/10/07, Iyer <[EMAIL PROTECTED]> wrote:
> If only someone could guide me, so that I can
> understand better how to "translate" the ticks from
> the default "number of sample" ticks to that of
> different ticks - say
> new_ticks=original_ticks/(some_constant). Right now
> I'm clueless, your inp
Just started using matplotlib (it's great!) interactively (using ipython,
TkAgg backend) and am moving into saving plots to file.
I edited the matplotlibrc to interactive: False and backend: Agg, and it
works great. (produces .png)
I would normally like to muck around interactively to get the p
Iyer <[EMAIL PROTECTED]> writes:
> With all respect, I have certainly perused the
> tutorials before posting the question.
>From your postings it seems that you are misunderstanding some
fundamental concepts, but it is not clear how. Can you write up a
little piece of code showing what you are d
27 matches
Mail list logo