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

# Load the dataset.
import pyvista as pv
from pyvista import examples
dataset = examples.download_pump_bracket()
dataset

# Plot the displacement of the 4th mode shape as scalars.
cpos = pv.CameraPosition(
    position=(0.744, -0.502, -0.830),
    focal_point=(0.0520, -0.160, 0.0743),
    viewup=(-0.180, -0.958, 0.224),
)
dataset.plot(
    scalars='disp_3',
    cpos=cpos,
    show_scalar_bar=False,
    ambient=0.2,
    anti_aliasing='fxaa',
)

# SEE ALSO:
#     Pump Bracket Dataset https://docs.pyvista.org/api/examples/dataset_gallery.html#pump-bracket-dataset
#     See this dataset in the Dataset Gallery for more info.
#     Visualize Modal Analysis of a Pump Bracket https://docs.pyvista.org/examples/99-advanced/pump_bracket.html#pump-bracket-example
#     Full example using this dataset.

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

