download_bolt_nut#
- download_bolt_nut(load: bool = True) MultiBlock | str[source]#
Download bolt nut dataset.
- Parameters:
- Returns:
- output
pyvista.MultiBlockortuple DataSet or tuple of filenames depending on
load.
- output
Examples#
Download Python source code | Download Jupyter notebook
>>> import pyvista as pv
>>> from pyvista import examples
>>> dataset = examples.download_bolt_nut()
>>> pl = pv.Plotter()
>>> _ = pl.add_volume(
... dataset,
... cmap='coolwarm',
... opacity='sigmoid_5',
... show_scalar_bar=False,
... )
>>> pl.camera_position = pv.CameraPosition(
... position=(194.6, -141.8, 182.0),
... focal_point=(34.5, 61.0, 32.5),
... viewup=(-0.229, 0.45, 0.86),
... )
>>> pl.show()
See also
- Bolt Nut Dataset
See this dataset in the Dataset Gallery for more info.
- Volume Rendering
Example which uses this dataset.