Public bug reported:
enthought tvtk (and thus also mayavi2) fails to generate figures properly under
compiz.
This is resolved by running an alternative Window manager (tested with fluxbox
and metacity)
tested on:
Hardy Release: 8.04
2.6.24-19-generic x86_64
python-enthought-traits, python-enthought-traits-ui, python-vtk, python-numpy,
python-wxgtk2.6, and mayavi2 installed from repos
an example script (run under " ipython -wthread ")
________________________________________________________________
import numpy
from numpy import sqrt,abs,r_
#generate data
dx,dy = 1.8,1.05
V = lambda x,y: 0.3**2/200.*sqrt((x-1)**2+y**2)*sqrt((x+1)**2+y**2)/abs(y)
x = r_[-dx:dx:200j]
y = r_[-dy:dy:200j]
#generate surface
from enthought.tvtk.tools import mlab
s = mlab.SurfRegular(x, y, V)
#simpler use:
fig = mlab.figure()
fig.add(s)
______________________________________________________________
** Affects: enthought-traits (Ubuntu)
Importance: Undecided
Status: New
--
enthought tvtk failure under compiz
https://bugs.launchpad.net/bugs/243901
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs