Plotter.subplot#
- Plotter.subplot(index_row: int, index_column: int | None = None) None[source]#
Set the active subplot.
Examples#
Download Python source code | Download Jupyter notebook
Create a 2 wide plot and set the background of right-hand plot to orange. Add a cube to the left plot and a sphere to the right.
>>> import pyvista as pv
>>> pl = pv.Plotter(shape=(1, 2))
>>> actor = pl.add_mesh(pv.Cube())
>>> pl.subplot(0, 1)
>>> actor = pl.add_mesh(pv.Sphere())
>>> pl.set_background('orange', all_renderers=False)
>>> pl.show()
See Also#
Used In#
Guides
- What Is a Mesh? (2 uses)
- Cameras (1 use)
Docstring Examples
AxesGeometrySource.symmetric_bounds(1 use)DataObjectFilters.flip_normal(1 use)DataObjectFilters.flip_x(1 use)DataObjectFilters.flip_y(1 use)DataObjectFilters.flip_z(1 use)22 more
DataObjectFilters.scale(1 use)DataSet.cell_neighbors(1 use)DataSetFilters.align(1 use)DataSetFilters.compute_boundary_mesh_quality(1 use)DataSetFilters.extract_cells_by_type(1 use)DataSetFilters.warp_by_vector(1 use)Icosphere(1 use)ImageDataFilters.resample(1 use)Plotter.add_camera3d_widget(1 use)Plotter.enable_hidden_line_removal(1 use)Plotter.link_views(1 use)Plotter.remove_background_image(1 use)Plotter.remove_bounds_axes(1 use)Plotter.show_axes_all(1 use)Plotter.where_is(1 use)PolyDataFilters.reconstruct_surface(1 use)PolyDataFilters.triangulate_contours(1 use)Renderer.remove_bounds_axes(1 use)Theme.interpolate_before_map(1 use)UnstructuredGridFilters.clean(1 use)UnstructuredGridFilters.reconstruct_surface(1 use)WidgetComponent.add_camera3d_widget(1 use)
Gallery Examples