Debian Codegraph @

examples/02-plot/show_edges.py

raw
1 """
2 .. _show_edges_example:
3
4 Show Edges
5 ~~~~~~~~~~
6
7 Show the edges of all geometries within a mesh using the
8 :attr:`~pyvista.Property.show_edges` property.
9
10 """
11
12 # %%
13 # Sometimes it can be useful to show all of the edges of a mesh when rendering
14 # to communicate aspects of the dataset like resolution.
15 #
16 # Showing the edges for any rendered dataset is as simple as specifying the
17 # the ``show_edges`` keyword argument to ``True`` when plotting a dataset.
18
19 # sphinx_gallery_thumbnail_number = 1
20 from pyvista import examples
21
22 bust = examples.download_washington_bust()
23
24 bust.plot(show_edges=True, color=True)
25 # %%
26 # .. tags:: plot