Hello NG,
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")
File "C:\Python23\Lib\site-packages\matplotlib\axes.py", line 2324, in
plot
for line in self._get_lines(*args, **kwargs):
File "C:\Python23\Lib\site-packages\matplotlib\axes.py", line 276, in
_grab_ne
xt_args
yield self._plot_3_args(remaining, **kwargs)
File "C:\Python23\Lib\site-packages\matplotlib\axes.py", line 238, in
_plot_3_
args
assert(iterable(x))
AssertionError
Does anyone have a suggestion? Thank you very much.
Andrea.