What steps will reproduce the problem?
>>> import visvis, scipy.misc
>>> l=scipy.misc.lena(); print l.dtype
int64
>>> visvis.imshow(l)
<visvis.wobjects.textures.Texture2D object at 0x27db890>
>>> Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/visvis/backends/qtcommon.py", line 211, in paintEvent
self.figure.OnDraw()
File "/usr/lib/python2.7/dist-packages/visvis/core/baseFigure.py", line 773, in OnDraw
self._Draw(mode)
File "/usr/lib/python2.7/dist-packages/visvis/core/baseFigure.py", line 860, in _Draw
child._DrawTree(mode, pickerHelper)
File "/usr/lib/python2.7/dist-packages/visvis/core/axes.py", line 123, in _DrawTree
base.Wibject._DrawTree(self, mode, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/visvis/core/base.py", line 191, in _DrawTree
item._DrawTree(mode,pickerHelper)
File "/usr/lib/python2.7/dist-packages/visvis/core/base.py", line 184, in _DrawTree
self.OnDraw()
File "/usr/lib/python2.7/dist-packages/visvis/core/axes.py", line 842, in OnDraw
self._OnDrawInMode(DRAW_NORMAL, self.bgcolor)
File "/usr/lib/python2.7/dist-packages/visvis/core/axes.py", line 902, in _OnDrawInMode
self._OnDrawContent(mode, bgcolor, pos, pickerHelper)
File "/usr/lib/python2.7/dist-packages/visvis/core/axes.py", line 1030, in _OnDrawContent
item._DrawTree(mode, pickerHelper)
File "/usr/lib/python2.7/dist-packages/visvis/core/base.py", line 184, in _DrawTree
self.OnDraw()
File "/usr/lib/python2.7/dist-packages/visvis/wobjects/textures.py", line 533, in OnDraw
self._texture1.Enable(-1)
File "/usr/lib/python2.7/dist-packages/visvis/core/baseTexture.py", line 216, in Enable
self._SetDataNow()
File "/usr/lib/python2.7/dist-packages/visvis/core/baseTexture.py", line 322, in _SetDataNow
raise ValueError("Cannot convert datatype %s." % thetype)
ValueError: Cannot convert datatype int64.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/visvis/backends/qtcommon.py", line 211, in paintEvent
self.figure.OnDraw()
File "/usr/lib/python2.7/dist-packages/visvis/core/baseFigure.py", line 773, in OnDraw
self._Draw(mode)
File "/usr/lib/python2.7/dist-packages/visvis/core/baseFigure.py", line 860, in _Draw
child._DrawTree(mode, pickerHelper)
File "/usr/lib/python2.7/dist-packages/visvis/core/axes.py", line 123, in _DrawTree
base.Wibject._DrawTree(self, mode, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/visvis/core/base.py", line 191, in _DrawTree
item._DrawTree(mode,pickerHelper)
File "/usr/lib/python2.7/dist-packages/visvis/core/base.py", line 184, in _DrawTree
self.OnDraw()
File "/usr/lib/python2.7/dist-packages/visvis/core/axes.py", line 842, in OnDraw
self._OnDrawInMode(DRAW_NORMAL, self.bgcolor)
File "/usr/lib/python2.7/dist-packages/visvis/core/axes.py", line 902, in _OnDrawInMode
self._OnDrawContent(mode, bgcolor, pos, pickerHelper)
File "/usr/lib/python2.7/dist-packages/visvis/core/axes.py", line 1030, in _OnDrawContent
item._DrawTree(mode, pickerHelper)
File "/usr/lib/python2.7/dist-packages/visvis/core/base.py", line 184, in _DrawTree
self.OnDraw()
File "/usr/lib/python2.7/dist-packages/visvis/wobjects/textures.py", line 533, in OnDraw
self._texture1.Enable(-1)
File "/usr/lib/python2.7/dist-packages/visvis/core/baseTexture.py", line 216, in Enable
self._SetDataNow()
File "/usr/lib/python2.7/dist-packages/visvis/core/baseTexture.py", line 322, in _SetDataNow
raise ValueError("Cannot convert datatype %s." % thetype)
ValueError: Cannot convert datatype int64.
What is the expected output? What do you see instead?
convert (on the fly) to float or int32
What version of the product are you using? On what operating system?
visvis v 1.8 on debian 7 (wheezy)
Please provide any additional information below.
Original issue reported on code.google.com by goo...@terre-adelie.org on 23 Feb 2013 at 11:14
Original issue reported on code.google.com by
goo...@terre-adelie.org
on 23 Feb 2013 at 11:14