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