# Examples from pyvista.examples.downloads.download_yinyang
# =========================================================

# 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 https://docs.pyvista.org/api/examples/dataset_gallery.html#yinyang-dataset
#     See this dataset in the Dataset Gallery for more info.

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code

