Skip to content

Commit 06b6988

Browse files
committed
Show mesh in first two plots
1 parent 1956c1a commit 06b6988

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/source/user_guide/tutorials/plot/plot_mesh_scopings.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ First for a node scoping:
5252
# Create a scoping of the first 100 node IDs of the mesh
5353
node_scoping = dpf.Scoping(location=dpf.locations.nodal, ids=mesh_1.nodes.scoping.ids[0:100])
5454
# Plot the node scoping applied to the mesh, with nodes shown as red dots
55-
node_scoping.plot(mesh=mesh_1, color="red")
55+
node_scoping.plot(mesh=mesh_1, color="red", show_mesh=True)
5656

5757
Then for an element scoping:
5858

@@ -63,7 +63,7 @@ Then for an element scoping:
6363
location=dpf.locations.elemental, ids=mesh_1.elements.scoping.ids[0:100]
6464
)
6565
# Plot the element scoping applied to the mesh, with elements shown in green
66-
element_scoping.plot(mesh=mesh_1, color="green")
66+
element_scoping.plot(mesh=mesh_1, color="green", show_mesh=True)
6767

6868

6969
Plot a collection of mesh scopings

0 commit comments

Comments
 (0)