Types of Shading

Use a custom built colormap when plotting scalar values.

import pyvista


PyVista supports two types of shading, flat and smooth shading that uses VTK’s Phong shading algorithm.

This is a plot with the default flat shading:

sphere = pyvista.Sphere()

Here’s the same sphere with smooth shading:

sphere.plot(color="w", smooth_shading=True)

Total running time of the script: ( 0 minutes 2.872 seconds)

Gallery generated by Sphinx-Gallery