Debian Codegraph @

examples/02-plot/floors.py

raw
1 """
2 .. _floors_example:
3
4 Plot with Floors
5 ~~~~~~~~~~~~~~~~
6
7 Add a floor/wall at the boundary of the rendering scene
8 using :func:`~pyvista.Plotter.add_floor`.
9 """
10
11 import pyvista as pv
12 from pyvista import examples
13
14 mesh = examples.download_dragon()
15
16 pl = pv.Plotter()
17 pl.add_mesh(mesh)
18 pl.add_floor('-y')
19 pl.add_floor('-z')
20 pl.show()
21 # %%
22 # .. tags:: plot