-
Notifications
You must be signed in to change notification settings - Fork 4
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
Coloration abnormalities #19
Comments
I noticed that and it seems like a regression on the latest version of |
Thanks, problem solved. I set panel==1.3.2,It shows the right thing too.,But panel==1.4.0 may occur error. Thanks for your answer. |
I have seen that occasionally when running Python<=3.9, and it is part of the reason Python >= 3.10 is recommended. What version of Python are you running? |
I use anaconda ,and my python==3.10.13. And I met another problem, after I upgrade my python to 3.11.7 , |
This is a nice example that could go in the Discussion section in this repo. import pyvista as pv
from pyvista import examples
import streamlit as st
from stpyvista import stpyvista
pv.start_xvfb()
mesh = examples.load_channels()
add_mesh_kwargs = dict(cmap="copper", ambient=0.5)
## App layout
st.title("🍕 Slices & stpyvista")
cols = st.columns(2)
with cols[0]:
"## Full 3D model"
pl = pv.Plotter()
pl.window_size = [300, 300]
pl.add_mesh(mesh, **add_mesh_kwargs)
pl.add_axes()
pl.view_isometric()
stpyvista(pl)
with cols[1]:
"## Orthogonal slices"
slices = mesh.slice_orthogonal(x=50, y=50, z=30)
slices_pl = pv.Plotter()
slices_pl.window_size = [300, 300]
for slice in slices:
slices_pl.add_mesh(slice, **add_mesh_kwargs)
slices_pl.add_axes()
slices_pl.view_isometric()
stpyvista(slices_pl) |
thanks anyway,I will try it. |
Updating to |
I want to color my VTK image.If I key "plotter.show()", it did great.But in stpyvista , there is an abnormality in the color.
The text was updated successfully, but these errors were encountered: