download_yinyang#
- download_yinyang(*, load: bool = True) ImageData | str[source]#
Download yinyang dataset.
Added in version 0.46.0.
- Parameters:
- Returns:
- output
pyvista.ImageData|str DataSet or filename depending on
load.
- output
Examples#
Download Python source code | Download Jupyter notebook
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.