Re: Problem with imshow in version 3.2.0

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Problem with imshow in version 3.2.0

vikas_dhiman
Hi,

I am facing a similar problem. Find and replace of module.actor.actor with module.actor fixes the problem for me.

https://github.com/wecacuee/mayavi.git

Thanks,
Vikas

 
Hi,
I'm having some trouble with the adjustment of the extent of imshow. I would like to scale the image, but this doesn't work:

imshow(s,extent=[0,255,0,255,80,80])

this leads to following error:
  File "/usr/lib/python2.6/dist-packages/enthought/mayavi/tools/helper_functions.py", line 32, in the_function
    return pipeline(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/enthought/mayavi/tools/helper_functions.py", line 69, in __call__
    return self.build_pipeline()
  File "/usr/lib/python2.6/dist-packages/enthought/mayavi/tools/helper_functions.py", line 97, in build_pipeline
    object = pipe(object, **this_kwargs)._target
  File "/usr/lib/python2.6/dist-packages/enthought/mayavi/tools/modules.py", line 149, in __init__
    super(DataModuleFactory, self).__init__(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/enthought/mayavi/tools/pipe_base.py", line 150, in __init__
    self.set(**traits)
  File "/usr/lib/python2.6/dist-packages/enthought/mayavi/tools/pipe_base.py", line 166, in set
    callback()
  File "/usr/lib/python2.6/dist-packages/enthought/mayavi/tools/modules.py", line 91, in _extent_changed
    tools.set_extent(self._target, self.extent)
  File "/usr/lib/python2.6/dist-packages/enthought/mayavi/tools/tools.py", line 270, in set_extent
    xmin, xmax, ymin, ymax, zmin, zmax = module.actor.actor.bounds
AttributeError: 'ImageActor' object has no attribute 'actor'

if anybody has a clue where the problem is, i would be grateful to let me know.

--
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser

_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev