Re: [Chaco-users] nans with img_plot...
by Fred other posts by this author
Aug 7 2007 9:58AM messages near this date
Re: [Chaco-users] nans with img_plot...
|
Re: [Chaco-users] nans with img_plot...
Bryan Van de Ven a écrit :
> Hi Fred,
>
> Yes I cannot reproduce this (when I add some nans to the image_plot.py example
> it plots as I would expect it to), so can you send the error message you are seeing?
>
Traceback (most recent call last):
File
"/usr/local/lib/python2.4/site-packages/enthought.enable2-2.0b2.dev_r13302-py2.4.egg/enthoug
ht/enable2/abstract_window.py",
line 283, in _paint
self.component.draw(gc, view_bounds=(0, 0, size[0], size[1]))
File
"/usr/local/lib/python2.4/site-packages/enthought.chaco2-2.0b2.dev_r13355-py2.4-linux-i686.e
gg/enthought/chaco2/plot_component.py",
line 89, in draw
self._draw(gc, view_bounds, mode)
File
"/usr/local/lib/python2.4/site-packages/enthought.enable2-2.0b2.dev_r13302-py2.4.egg/enthoug
ht/enable2/component.py",
line 648, in _draw
self._dispatch_draw(layer, gc, view_bounds, mode)
File
"/usr/local/lib/python2.4/site-packages/enthought.enable2-2.0b2.dev_r13302-py2.4.egg/enthoug
ht/enable2/container.py",
line 457, in _dispatch_draw
component._dispatch_draw(layer, gc, new_bounds, mode)
File
"/usr/local/lib/python2.4/site-packages/enthought.enable2-2.0b2.dev_r13302-py2.4.egg/enthoug
ht/enable2/container.py",
line 457, in _dispatch_draw
component._dispatch_draw(layer, gc, new_bounds, mode)
File
"/usr/local/lib/python2.4/site-packages/enthought.enable2-2.0b2.dev_r13302-py2.4.egg/enthoug
ht/enable2/container.py",
line 457, in _dispatch_draw
component._dispatch_draw(layer, gc, new_bounds, mode)
File
"/usr/local/lib/python2.4/site-packages/enthought.enable2-2.0b2.dev_r13302-py2.4.egg/enthoug
ht/enable2/component.py",
line 667, in _dispatch_draw
handler(gc, view_bounds, mode)
File
"/usr/local/lib/python2.4/site-packages/enthought.chaco2-2.0b2.dev_r13355-py2.4-linux-i686.e
gg/enthought/chaco2/base_2d_plot.py",
line 200, in _draw_image
self._render(gc)
File
"/usr/local/lib/python2.4/site-packages/enthought.chaco2-2.0b2.dev_r13355-py2.4-linux-i686.e
gg/enthought/chaco2/image_plot.py",
line 54, in _render
self._compute_cached_image()
File
"/usr/local/lib/python2.4/site-packages/enthought.chaco2-2.0b2.dev_r13355-py2.4-linux-i686.e
gg/enthought/chaco2/cmap_image_plot.py",
line 106, in _compute_cached_image
cached_mapped_image = File
"/usr/local/lib/python2.4/site-packages/enthought.chaco2-2.0b2.dev_r13355-py2.4-linux-i686.e
gg/enthought/chaco2/color_mapper.py",
line 216, in map_screen
return self._map(norm_data)
File
"/usr/local/lib/python2.4/site-packages/enthought.chaco2-2.0b2.dev_r13355-py2.4-linux-i686.e
gg/enthought/chaco2/color_mapper.py",
line 363, in _map
rgba[...,0] = take(self._red_lut, xa)
File "/usr/lib/python2.4/site-packages/numpy/core/fromnumeric.py",
line 77, in take
return take(indices, axis, out, mode)
IndexError: index out of range for array
Here's the snapshot from my mpl/traits app:
http://fredantispam.free.fr/snapshot.png
I'm looking for a CME...
Cheers,
--
http://scipy.org/FredericPetit
_______________________________________________
Chaco-users mailing list
Chaco-users@[...].com
https://mail.enthought.com/mailman/listinfo/chaco-users
Thread:
Fred
Bryan Van de Ven
Fred
Fred
Bryan Van de Ven
Fred
Bryan Van de Ven
Fred
Fred
|