sgio.plot_model_2d#
- sgio.plot_model_2d(model, ax=None, origin=(0, 0), legend_kwards={}, **kwargs)#
Plot the constitutive-model overlays of a 2D beam section.
Draws the principal bending axes and the feature centers (mass / tension / shear) derived from the analysis result. Intended to be combined with
plot_sg_2d(), which draws the underlying section mesh, but can also be used on its own.- Parameters:
model (object) – The constitutive model providing the principal axes (via
get_axis_angle) and feature centers (viaget_center).ax (matplotlib.axes.Axes) – The axes object to plot on.
origin (tuple of float, optional) – The section origin through which the principal axes pass. Default is
(0, 0).legend_kwards (dict, optional) – Keyword arguments forwarded to
ax.legend. If empty, a default legend placement is used.**kwargs (dict, optional) – Additional keyword arguments to pass to matplotlib plotting functions.