enthought / mayavi

3D visualization of scientific data in Python
http://docs.enthought.com/mayavi/mayavi/
Other
1.32k stars 286 forks source link

mlab.show() has icons with question marks #1007

Open yurivict opened 3 years ago

yurivict commented 3 years ago

This testcase:

from numpy import pi, sin, cos, mgrid
dphi, dtheta = pi/250.0, pi/250.0
[phi,theta] = mgrid[0:pi+dphi*1.5:dphi,0:2*pi+dtheta*1.5:dtheta]
m0 = 4; m1 = 3; m2 = 2; m3 = 3; m4 = 6; m5 = 2; m6 = 6; m7 = 4;
r = sin(m0*phi)**m1 + cos(m2*phi)**m3 + sin(m4*theta)**m5 + cos(m6*theta)**m7
x = r*sin(phi)*cos(theta)
y = r*cos(phi)
z = r*sin(phi)*sin(theta)

from mayavi import mlab
s = mlab.mesh(x, y, z)
mlab.show()

shows the window like this, with a lot of question marks:

image

Version 4.7.2

rahulporuri commented 3 years ago

@yurivict thanks for reporting this. I assume that you're still working on FreeBSD? See below how the icons are supposed to look -

mayvi-icons

The ? icon is the default behavior of pyface when the icon requested isn't found. The images that mayavi is trying to find here are in tvtk.pyface.images.. Can you look into the installed tvtk package and see if the images exist there? If the images do exist, can you tell us if the egg-info directories exist for mayavi, tvtk and other ets packages (e.g. pyface). The egg-info directories are central to the way by which pyface/mayavi discovers the image files.