diff --git a/examples/06-plotting/00-basic_plotting.py b/examples/06-plotting/00-basic_plotting.py index c130e3aa597..714d5e6659a 100644 --- a/examples/06-plotting/00-basic_plotting.py +++ b/examples/06-plotting/00-basic_plotting.py @@ -36,6 +36,7 @@ # Plot the bare mesh of a model model = dpf.Model(examples.find_multishells_rst()) +print(model) model.plot(color="w", show_edges=True, title="Model", text="Model plot") # # Additional PyVista kwargs are supported, such as: model.plot( @@ -55,6 +56,9 @@ # Plot a field on its supporting mesh stress = model.results.stress() +# We request the stress as nodal to bypass a bug for DPF 2025 R1 and below +# which prevents from plotting ElementalNodal data on shells +stress.inputs.requested_location.connect(dpf.locations.nodal) fc = stress.outputs.fields_container() field = fc[0] field.plot(notebook=False, shell_layers=None, show_axes=True, title="Field", text="Field plot")