Skip to main content
Ctrl+K
Logo image Logo image

Site Navigation

  • Getting Started
  • User Guide
  • Examples
  • API Reference
  • Extras

Site Navigation

  • Getting Started
  • User Guide
  • Examples
  • API Reference
  • Extras

Section Navigation

API Reference

  • Core API
  • Plotting
  • Utilities
  • Readers
  • Examples
    • pyvista.examples.examples
    • pyvista.examples.downloads
    • pyvista.examples.planets
    • pyvista.demos.demos
      • glyphs
      • orientation_cube
      • orientation_plotter
      • plot_ants_plane
      • plot_beam
      • plot_datasets
      • plot_glyphs
      • plot_wave
    • plot_cell
    • Empty
    • Vertex
    • PolyVertex
    • Line
    • PolyLine
    • Triangle
    • TriangleStrip
    • Polygon
    • Quadrilateral
    • Tetrahedron
    • Voxel
    • Hexahedron
    • Wedge
    • Pyramid
    • PentagonalPrism
    • HexagonalPrism

plot_datasets#

plot_datasets(dataset_type=None)[source]#

Plot the pyvista dataset types.

This demo plots the following PyVista dataset types:

  • pyvista.PolyData

  • pyvista.UnstructuredGrid

  • pyvista.UniformGrid

  • pyvista.RectilinearGrid

  • pyvista.StructuredGrid

Parameters:
dataset_typestr, optional

If set, plot just that dataset. Must be one of the following:

  • 'PolyData'

  • 'UnstructuredGrid'

  • 'UniformGrid'

  • 'RectilinearGrid'

  • 'StructuredGrid'

Examples

>>> from pyvista import demos
>>> demos.plot_datasets()
../../../_images/pyvista-demos-demos-plot_datasets-1_00_00.png
On this page
  • plot_datasets()
Edit this page

© Copyright 2017-2023, The PyVista Developers.

Built with the PyData Sphinx Theme 0.12.0.