Hi all, Is this a bug ?
>>> scatter(h.real,h.imag) <matplotlib.collections.RegularPolyCollection instance at 0x2aaabc1b6518> >>> show() Traceback (most recent call last): File "/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_gtk.py", line 284, in expose_event self._render_figure(self._pixmap, w, h) File "/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_gtkagg.py", line 73, in _render_figure FigureCanvasAgg.draw(self) File "/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_agg.py", line 391, in draw self.figure.draw(renderer) File "/usr/lib64/python2.4/site-packages/matplotlib/figure.py", line 531, in draw for a in self.axes: a.draw(renderer) File "/usr/lib64/python2.4/site-packages/matplotlib/axes.py", line 1045, in draw a.draw(renderer) File "/usr/lib64/python2.4/site-packages/matplotlib/collections.py", line 350, in draw scales = sqrt(asarray(self._sizes)*self._dpi.get()/72.0) TypeError: unsupported operand type(s) for *: 'numpy.ndarray' and 'float' >>> shape(h.real) (200,) >>> shape(h.imag) (200,) >>> type(h.real) <type 'numpy.ndarray'> >>> type(h.imag) <type 'numpy.ndarray'> >>> scatter(real(h),imag(h)) <matplotlib.collections.RegularPolyCollection instance at 0x2aaabc1e6200> >>> show() >>> scatter(real(h),imag(h)) works fine while scatter(h.real,h.imag) fails. Nils Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users