From: <and...@ti...> - 2005-03-06 14:53:43
|
Hello NG, I am trying to plot a series of point (in a wxPython window). Everyth= ing works if I plot all the points together, as: myreference =3D 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 sin= gle point (and not with all of them) separately, using the mpl_connect functi= ons. If I try to plot a single point, matplotlib/pylab returns me an error lik= e: File "D:\MyProjects\globall\SummaryPanel.py", line 169, in CreateWellMa= p mp =3D 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. |