Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a problem to run demo #23

Open
lindbergh153 opened this issue Mar 22, 2023 · 0 comments
Open

a problem to run demo #23

lindbergh153 opened this issue Mar 22, 2023 · 0 comments

Comments

@lindbergh153
Copy link

Hello, I ran the demo given in the documentation (plz see the enclosed code) but gave me the following error msg
ImportError: cannot import name 'viewer' from 'skimage' (D:\Miniconda3\envs\gnome\lib\site-packages\skimage_init_.py)

###################################################################################
"""3D surface plot example."""
import numpy as np
import matplotlib.cm

from Stoner import Data

x, y, z = np.meshgrid(
np.linspace(-2, 2, 21), np.linspace(-2, 2, 21), np.linspace(-2, 2, 21)
)
x = x.ravel()
y = y.ravel()
z = z.ravel()
u = np.sin(x * y * z)

p = Data(x, y, z, u, setas="xyzu", column_headers=["X", "Y", "Z"])

p.plot_voxels(cmap=matplotlib.cm.jet, visible=lambda x, y, z: x - y + z < 2.0)
p.title = "Voxel plot"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant