You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to create a multi-window figure with subplots using PyDPF-core? Currently I have the following code which creates a multi-window figure, but I can only plot results in the first window (i.e., subplot (0,0)).
p = dpf.plotter.DpfPlotter(shape=(2,2))
p.add_field(field,mesh,deform_by=field,scale_factor=1000.0)
When I try to access subplot(0,1), I get the following error: "AttributeError: 'DpfPlotter' object has no attribute 'subplot'"
This is the code I use to attempt to plot in the (0,1) subplot window.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is it possible to create a multi-window figure with subplots using PyDPF-core? Currently I have the following code which creates a multi-window figure, but I can only plot results in the first window (i.e., subplot (0,0)).
p = dpf.plotter.DpfPlotter(shape=(2,2))
p.add_field(field,mesh,deform_by=field,scale_factor=1000.0)
When I try to access subplot(0,1), I get the following error: "AttributeError: 'DpfPlotter' object has no attribute 'subplot'"
This is the code I use to attempt to plot in the (0,1) subplot window.
p.subplot(0,1)
p.add_field(field,mesh,deform_by=field,scale_factor=1000.0)
Is there a different attribute name that can be used to achieve this? I am using Ansys 2022 R2 and Python 3.9.2.
Beta Was this translation helpful? Give feedback.
All reactions