John Hunter wrote:
> BTW, numpy gurus, is there a better way to find the index in an array
> that is minimal than
>
> indmin = int(numpy.nonzero(distances.min()==distances)[0])
yes -- see below. Also a few tweaks:
>distances = numpy.array(numpy.sqrt((x-xs[event.ind])**2. +
> (y-ys[event.in
On 6/10/07, rolandreichel <[EMAIL PROTECTED]> wrote:
> I want to plot some timeseries (eg. stockcharts). I use now
> DateLocator/Formatter, it works fine for me with the exeption, that
> dataless periods on X-Axis (eg. weekends) are also plotted. Is there an
> easy way to suppress them?
Plot nump
On 6/11/07, Trevis Crane <[EMAIL PROTECTED]> wrote:
I've coded (with help from John) a plot of mine to allow a user to select a
data point, and when they click on it a new plot pops up. It works great.
However, some of the points are very close together and if I'm not extremely
careful in selec
>
> Hi Trevis,
>
>
>
> On 12/06/07, Trevis Crane <[EMAIL PROTECTED]> wrote:
> > So, I figured maybe if I zoomed in then it'd be easier to select the
desired
> > point. The problem is that after zooming/panning, the mouse cursor
changes
> > and my click events are no longer recognized as such.
try using plot_date() function instead of plot()
On Sun, 2007-06-10 at 09:49 +0200, rolandreichel wrote:
> Hi,
>
> I want to plot some timeseries (eg. stockcharts). I use now
> DateLocator/Formatter, it works fine for me with the exeption, that
> dataless periods on X-Axis (eg. weekends) are
Hi Trevis,
On 12/06/07, Trevis Crane <[EMAIL PROTECTED]> wrote:
> So, I figured maybe if I zoomed in then it'd be easier to select the desired
> point. The problem is that after zooming/panning, the mouse cursor changes
> and my click events are no longer recognized as such. Furthermore, I can
Hi,
I've coded (with help from John) a plot of mine to allow a user to
select a data point, and when they click on it a new plot pops up. It
works great. However, some of the points are very close together and if
I'm not extremely careful in selecting the point, then multiple graphs
pop up or
* John Hunter <[EMAIL PROTECTED]> [070611 16:20]:
> So the answer of which is better is a question of skill level and
> context, but my simple advice is to use the pylab syntax from the
> interactive python shell (and "ipython -pylab" is ideal for this) and
> the API everywhere else. Most of my sc
Hello everyone! I'm seeking help with real-time plotting using Python and
MatPlotLib. I've encoutered several problems so far:
1. There is no function to just add a point to the existing curve, so each time
the data is updated all the curve has to be redrawn. This is not a clean
solution for the
Hello everyone! I'm seeking help with real-time plotting using Python and
MatPlotLib. I've encoutered several problems so far:
1. There is no function to just add a point to the existing curve, so each time
the data is updated all the curve has to be redrawn. This is not a clean
solution for the
Sorry for the repost, but I'm still struggling with this.
I'm trying to replicate a plot like this:
http://tinyurl.com/2uwjn8
In this case, the y-axis on the left (the black dots) is linear
and the y-axis on the right (red data) is log base 2.
I can't figure out how to do the following:
1. How
> -Original Message-
> From: John Hunter [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 11, 2007 9:08 AM
> To: Trevis Crane
> Cc: matplotlib-users@lists.sourceforge.net
> Subject: Re: [Matplotlib-users] out of curiosity...
>
> On 6/11/07, Trevis Crane <[EMAIL PROTECTED]> wrote:
>
> > Co
On 6/11/07, Trevis Crane <[EMAIL PROTECTED]> wrote:
> Coming from MATLAB, I started using matplotlib in the same fashion (and was
> very appreciative of the similariry). That is, I would import pylab and
> call the plotting functions as necessary. However, after seeing some of how
> others are u
Coming from MATLAB, I started using matplotlib in the same fashion (and
was very appreciative of the similariry). That is, I would import pylab
and call the plotting functions as necessary. However, after seeing
some of how others are using matplotlib, it seems most people use axes
object methods
Excellent. Thank you very much!
On 6/10/07, Jake Emerson <[EMAIL PROTECTED]> wrote:
The python imaging library is pretty good for this kind of thing.
http://www.pythonware.com/library/pil/handbook/
Here's an (untested) example. Hope it helps.
Jake
#!/usr/bin/env python
from pylab import
On 6/10/07, __ <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm trying to plot a simple list of x/y coords over an image (.png). I can
> show the image, or plot the data, but cannot find a way to layer one over
> the other. I would greatly appreciate someone pointing me in the right
Just call imshow an
Hi,
Please look at the short example attached showing the issue.
I want to display only one contour line, with value 0.8.
Obviously, the color associated with this contour line is bad
(blue instead of red color).
I think the reason is that the contour has its own colormap,
so for only one valu
nappie74 wrote:
>
>
> nappie74 wrote:
>> Hi,
>> I'm new in matplolib code,
>> I have matrix of winds vectors
>
> Hi, thanks, yes infact wind barbs it's difficult to plot with quiver I have
> to coding something appropiate.
> So ,just I HAVE FOR THE MOMENT TO PLOT ONLY A LEGEND with one wind vec
Hello darkside,
the below example seems to do the job.
The problem with x, y = event.xdata, event.ydata could be due to a
local-global-variable issue (solution: define x, y with keyword global,
i.e. "global x, y" in your function 'click' [ -> they become global
variables] to change their value
nappie74 wrote:
> Hi,
> I'm new in matplolib code,
> I have matrix of winds vectors
Hi, thanks, yes infact wind barbs it's difficult to plot with quiver I have
to coding something appropiate.
So ,just I HAVE FOR THE MOMENT TO PLOT ONLY A LEGEND with one wind vector
that have a lenght autoscale
Works for me.
Thanks, Mark
On 6/11/07, Eric Firing <[EMAIL PROTECTED]> wrote:
Mark,
Presumably the mailing list method worked at one time, but it would be
obscure and unintuitive even if it worked now. There are no other
explicit dash styles given as a pair of numbers in the rc file, so the
c
21 matches
Mail list logo