From dc29a27dcbecd3e27e911233d5f6810f7f4b689d Mon Sep 17 00:00:00 2001 From: "paul.profizi" Date: Fri, 21 Apr 2023 17:11:21 +0200 Subject: [PATCH] Update the 00-basic_plotting.py example to showcase as_linear=False --- examples/06-plotting/00-basic_plotting.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/examples/06-plotting/00-basic_plotting.py b/examples/06-plotting/00-basic_plotting.py index 6841b4b72c..60b231d9a4 100644 --- a/examples/06-plotting/00-basic_plotting.py +++ b/examples/06-plotting/00-basic_plotting.py @@ -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,