Skip to content

Commit

Permalink
Update the 00-basic_plotting.py example to showcase as_linear=False
Browse files Browse the repository at this point in the history
  • Loading branch information
PProfizi committed Apr 21, 2023
1 parent af60642 commit dc29a27
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions examples/06-plotting/00-basic_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,19 @@
title="Mesh fc None",
text="Mesh plot",
)

# The plotter transforms quadratic elements into their linear equivalents by default
# for improved performance. This can be changed using the "as_linear=False" argument.
# Note: semi-parabolic elements are always changed to their linear equivalents.
mesh.plot(
as_linear=False,
field_or_fields_container=None,
shell_layers=None,
show_axes=True,
title="Mesh fc None",
text="Mesh plot as_linear=False",
)

# Additional PyVista kwargs are supported, such as:
mesh.plot(
off_screen=True,
Expand Down

0 comments on commit dc29a27

Please sign in to comment.