Plotting#
Intuitive plotting routines with matplotlib like syntax. See Interactive Plotting for using the interactive window.
Plotting tools built for interactivity (see Widgets).
Plotting Functions#
These functions provide a simplified interface to the plotting classes below.
Close all open/active plotters and clean up memory. |
|
|
Plot a PyVista, NumPy, or VTK object. |
|
Plot arrows as vectors. |
|
Plot a grid comparison of any number of data objects. |
|
Plot a 2 by 2 comparison of data objects. |
Plotter#
Cameras and lights are documented on their own pages: Cameras and Lights.
|
Plotting object to display VTK meshes or NumPy arrays. |
|
Container to hold camera location attributes. |
|
Renderer class. |
|
|
|
Timer class. |
See also
- Multi-Window Plot
Lay out several renderers in one window.
- Saving Screenshots
Save screenshots from a plotter.
- Create a MP4 Movie
Write frames to a movie.
Actors and Mappers#
|
Wrap vtkActor. |
|
Wrap vtkDataSetMapper. |
|
Wrap vtkFollower. |
|
Wrap vtkPointGaussianMapper. |
|
Prop3D wrapper for vtkProp3D. |
|
Wrap vtkProperty and expose it pythonically. |
See also
- Setting Backface Properties
Set properties for the back faces of an actor.
- Lighting Properties
Control how an actor’s surface reflects light.
Volume Rendering#
|
Wrapper class for VTK volume. |
|
Wrap vtkSmartVolumeMapper. |
Wrap the VTK class vtkVolumeProperty. |
|
|
Get the opacity transfer function for a mapping. |
See also
- Volume Rendering
Render a volume with the different mappers.
- Plot With Opacity
Build an opacity transfer function.
Text and Labels#
|
Text annotation in four corners. |
|
2D label actor with a 3D position coordinate. |
|
Define text by default theme. |
|
Define text's property. |
See also
- Label Points
Label points in a scene.
Axes and Orientation#
|
PyVista wrapper for the VTK Axes class. |
|
Axes actor wrapper for vtkAxesActor. |
|
Assembly of arrow-style axes parts. |
|
Symmetric assembly of arrow-style axes parts. |
|
Wrap vtkCubeAxesActor. |
|
Assembly of orthogonal planes. |
|
Create an axis actor. |
|
Create a Box axes orientation widget with labels. |
See also
- Axes Objects
Compare the axes objects and add them to a scene.
Lookup Tables#
Colors, colormaps, and the Color class are documented under
Colors.
|
Scalar to RGBA mapping table. |
See also
- Lookup Tables
Build a lookup table from a colormap or a list of colors.
Enumerations#
|
Types of elemental geometries. |
|
Lighting interpolation types. |
|
Point sprite shape options for fragment shader rendering. |
|
Types of representations the models can have. |
|
Shader types for GLSL shader replacements. |
Composite Plotting#
These classes are used when plotting pyvista.MultiBlock datasets.
|
Block attributes used to set the attributes of a block. |
|
Block attributes. |
|
Composite PolyData mapper. |
Charts API#
Charts API reference. These dedicated classes can be used to embed charts in plotting windows.
Widget API#
Every interactive widget on the plotter (box, plane, line, slider,
sphere, spline, button, radio button, measurement, logo, camera,
camera3d) lives on the WidgetComponent
plotter component, accessible as plotter.widgets. The top-level
plotter exposes add_*_widget and clear_*_widgets methods as
forwarding shims; both surfaces produce identical results. For additional
details, see the Widgets examples.
|
3D affine transform widget. |
|
Plotter widget component. |
Picking API#
Picking lives on the PickingComponent
plotter component, accessible as plotter.picking. The top-level
plotter exposes enable_*_picking, disable_picking, and
picked_* properties as forwarding shims.
|
Plotter picking component. |
Interactor Style API#
An interactor style sets mouse and key bindings to interact with
the plot. Most often methods like pyvista.Plotter.enable_trackball_style()
would be used, but this API can be used as a starting point for customizing the
interaction styles.
|
A |
Image interactor style. |
|
|
Joystick actor interactor style. |
|
Joystick camera interactor style. |
|
Rubber band 2D interactor style. |
|
Rubber band pick interactor style. |
|
Terrain interactor style. |
|
Trackball actor interactor style. |
|
Trackball camera interactor style. |
Rubber band zoom interactor style. |
VTK Algorithm Utilities#
These functions create VTK algorithm pipeline nodes for use with PyVista’s pipeline-based rendering. They are useful for advanced users who need fine-grained control over the VTK pipeline.
Add a filter that sets the active scalars. |
|
|
Add a filter that adds point and/or cell IDs. |
Handle vtkAlgorithm where mesh objects are expected. |
|
|
Add a filter that delegates to a user-supplied callable. |
Add a filter that converts cell data to point data. |
|
|
Add a filter that crinkles a clip. |
|
Decimate the input data to the target reduction. |
Add vtkDataSetSurfaceFilter to pipeline. |
|
|
Add vtkOutlineFilter to pipeline. |
Add a filter that converts point data to cell data. |
|
Add a filter that casts PointSet to PolyData. |
|
|
Set the input to a vtkAlgorithm. |
Add a filter that computes point normals for smooth shading. |
|
Create a source algorithm that generates data from a callable. |
|
Triangulate the input data. |
Jupyter Backends#
The backend is selected with set_jupyter_backend(), and
third-party packages can register additional backends. See
Jupyter Notebook Plotting for plotting in a notebook.
|
Describe one registered custom Jupyter backend. |
|
Register a custom Jupyter backend handler. |
Return every custom Jupyter backend currently registered. |
|
|
Set the plotting backend for a jupyter notebook. |