Click here to download the full example code or to run this example in your browser via Binder
Take a look at the different display options offered by the
import pyvista as pv from pyvista import examples mesh = examples.load_random_hills() p = pv.Plotter() p.add_mesh(mesh) p.show()
Let’s take a look at some different options for the
add_mesh method to
alter how the above data are displayed.
Plot that mesh with the edges of cells displayed
Plot that mesh with the colored edges and as a show the surface as a solid color (use a named color!)
Display with a points representation style
And adjust the points display size
Change the color map and the color limits
Add some opacity
There you go! Those are a few of the most commonly used display options!
Total running time of the script: ( 0 minutes 0.000 seconds)