Plotter.view_xy#
- Plotter.view_xy(negative=False, render=True, bounds=None) None[source]#
View the XY plane.
- Parameters:
- negativebool, default:
False View from the opposite direction.
- renderbool, default:
True If the render window is being shown, trigger a render after setting the camera position.
- boundsiterable(
int),optional Automatically set up the camera based on a specified bounding box
(x_min, x_max, y_min, y_max, z_min, z_max).
- negativebool, default:
Examples#
Download Python source code | Download Jupyter notebook
View the XY plane of a built-in mesh example.
>>> from pyvista import examples
>>> import pyvista as pv
>>> airplane = examples.load_airplane()
>>> pl = pv.Plotter()
>>> _ = pl.add_mesh(airplane)
>>> pl.view_xy()
>>> pl.show()
Used In#
Docstring Examples
AxesAssembly(1 use)CircularArc(1 use)CircularArcFromNormal(1 use)DataObjectFilters.convex_hull(1 use)DataSet.bounding_sphere(1 use)15 more
DataSet.cell_neighbors(1 use)DataSet.cell_neighbors_levels(1 use)DataSet.point_neighbors_levels(1 use)DataSetFilters.streamlines_evenly_spaced_2D(1 use)ImageDataFilters.pad_image(1 use)ImageDataFilters.resample(1 use)Light.cone_angle(1 use)Light.exponent(1 use)Plotter.add_ruler(1 use)Plotter.add_silhouette(1 use)PolyDataFilters.decimate_polyline(1 use)PolyDataFilters.triangulate_contours(1 use)Renderer.add_ruler(1 use)Renderer.view_xy(1 use)download_doorman(1 use)
Gallery Examples