Plotting#
Intuitive plotting routines with matplotlib like syntax (see Plotting).
Plotting tools built for interactivity (see Widgets).
Plotting API Reference#
Plotting module API reference. These plotting modules are the basis for all plotting functionality in PyVista.
|
Wrap vtkActor. |
|
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. |
|
Container to hold camera location attributes. |
|
Text annotation in four corners. |
|
Wrap vtkCubeAxesActor. |
|
Wrap vtkDataSetMapper. |
|
Wrap vtkFollower. |
|
2D label actor with a 3D position coordinate. |
|
Scalar to RGBA mapping table. |
|
Assembly of orthogonal planes. |
|
Plotting object to display vtk meshes or numpy arrays. |
|
Prop3D wrapper for vtkProp3D. |
|
Wrap vtkProperty and expose it pythonically. |
|
Renderer class. |
|
|
|
Define text by default theme. |
|
Define text's property. |
|
Timer class. |
|
Base Mapper with methods common to other mappers. |
|
Lighting interpolation types. |
|
Types of representations the models can have. |
|
Types of elemental geometries. |
|
Wrapper class for VTK volume. |
Wrap the VTK class vtkVolumeProperty. |
Composite Plotting Reference#
These classes are used when plotting pyvista.MultiBlock datasets.
|
Composite PolyData mapper. |
|
Block attributes. |
|
Block attributes used to set the attributes of a block. |
Charts API#
Charts API reference. These dedicated classes can be used to embed charts in plotting windows. Note that full charts functionality requires a VTK version of at least 9.3. Most components work fine in older versions though.
Widget API#
The pyvista.Plotter class inherits all of the widget
methods described by the pyvista.plotting.widgets.WidgetHelper
class. For additional details, see the
Widgets examples.
|
An internal class to manage widgets. |
|
3D affine transform widget. |
Picking API#
The pyvista.Plotter class inherits all of the picking
methods described by the pyvista.plotting.picking.PickingHelper
class.
|
Internal container class to contain picking helper methods. |
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 mixin for subclasses of vtkInteractorStyle with capturing ability. |
Image interactor style. |
|
|
Joystick actor interactor style. |
|
Joystick camera interactor style. |
|
Rubber band 2D interactor style. |
|
Rubber band pick interactor style. |
|
Trackball actor interactor style. |
|
Trackball camera interactor style. |
|
Terrain 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. |
Convenience Functions#
These functions provide a simplified interface to the various plotting routines in PyVista.