pyvista.examples.downloads.download_yinyang#
- download_yinyang(*, load=True)[source]#
Download yinyang dataset.
Added in version 0.46.0.
- Parameters:
- Returns:
pyvista.ImageData
|str
DataSet or filename depending on
load
.
Examples
Load the image and plot it as grayscale pixel cells.
>>> from pyvista import examples >>> dataset = examples.download_yinyang() >>> pixel_cells = dataset.points_to_cells() >>> pixel_cells.plot( ... cmap='gray', ... clim=[0, 255], ... cpos='xy', ... zoom='tight', ... lighting=False, ... show_scalar_bar=False, ... show_axes=False, ... )
See also
- Yinyang Dataset
See this dataset in the Dataset Gallery for more info.