-
Notifications
You must be signed in to change notification settings - Fork 443
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
Volume plot doing something weird #5298
Comments
Of note, there are no issues when I export the plot to html and render in the browser. Appears to be an issue specifically with the plotter.show() method |
Any debugging ideas or driver replacements I can make? |
Sorry, I should have given some direction in my above comment. This can be really tough to debug on Windows. One thing you could try is to save that mesh out to a file and try to render it in ParaView: import pyvista as pv
grid = pv.ImageData(dimensions=(9, 9, 9))
grid['scalars'] = -grid.x
grid.save('myvolume.vtk') Then load that file into ParaView. Once in paraview, see if you have the same issues (as ParaView and PyVista are both using VTK under the hood). Then in paraview, you can experiment with different volume mappers to see what looks best. If you can find a mapper or other rendering parameters in ParaView that look good, then we can mimic this in PyVista. If it continues to look bad in ParaView, then we can perhaps seek help from https://discourse.vtk.org/ on how to get this to work |
Describe the bug, what's wrong, and what you expected.
I was attempting the example posted here:
https://docs.pyvista.org/version/stable/api/plotting/_autosummary/pyvista.Plotter.add_volume.html
and got something that looked like the figure the first time. Now I get something that looks like:
https://pasteboard.co/XENz46LHrFa1.png
What is happening?
Steps to reproduce the bug.
System Information
Screenshots
No response
The text was updated successfully, but these errors were encountered: