Data inputs in plot must be lists or arrays. So
instead of :
plot( x[i] , y[i] )
you must write
plot( [x[i]] , [y[i]] )
--- andrea_gavana@...517... wrote:
I am trying to plot a series of point (in a
wxPython window). Everything
works if I plot all the points together, as:
myreference = plot(x, y, 'ko')
But I would like to plot 1 point at a time, and to
keep a "plot reference"
of every point, because I will have to be able to
interact with every single
point (and not with all of them) separately, using
the mpl_connect functions.
If I try to plot a single point, matplotlib/pylab
returns me an error like:
File "D:\MyProjects\globall\SummaryPanel.py", line
169, in CreateWellMap
mp = axdata.plot(xc[cc], yc[cc], "ko")
line 2324, in
for line in self._get_lines(*args, **kwargs):
line 276, in
yield self._plot_3_args(remaining, **kwargs)
line 238, in
Does anyone have a suggestion? Thank you very much.
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT
Products from real users.
Discover which products truly live up to the hype.
Start reading now.
Matplotlib-users mailing list
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web