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 values
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 vector
that
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
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 and set
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
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.
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
* 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 scripts
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
Hi Trevis,
snip
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
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 also
Hi Trevis,
snip
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.
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
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. +
14 matches
Mail list logo