5.6. Plot Moment
- planesections.postprocess.plot.plotMoment(beam: Beam, scale: float = -1, yunit='Nm', **kwargs)[source]
Plots the internal moment at each node in the beam. Two values are given for each point, one at the left side, one at the right side. Note that internal force is only known exactly at nodes, and linear interpolation is used for all other values.
For 3D beams, returns the strong axis Moment.
- Parameters:
beam (Beam) – The beam to plot internal forces with. The analysis must be run.
scale (float, optional) – The scale to apply to y values of the plot. The default is 1.
yunit (str, optional) – The yunit for the plot labels. The default is Nm.
Parameters (Kwarg)
----------
plotInternalForce2D. (These are possible Kwarg parameters that will be passed to)
xunit (str, optional) – The xunit for the plot labels. The default is m.
showAxis (bool, optional) – Turns on or off the axis.
showGrid (bool, optional) – Turns on or off the grid.
labelPlot (bool, optional) – Turns on or off the plot labels.
labelPOI (bool, optional) – Turns on or off the plot point of interst labels.
POIOptions (dict, optional) –
The options to use for the POI labels. There are several flags that have values true or false which can be used to turn on or off certain points of interst. Notably:
showLabels: this flag turns on or off
showDiscontinutiy: this flag turns on labeling points of discontinuity
showMax: this turns on or off
The default is None, which sets all flags to true
fig (bool, optional) – A existing figure to use in the plot.
ax (bool, optional) – A existing axis to use in the plot.
- Returns:
fig (matplotlib fig)
ax (matplotlib ax)
line (matplotlib line) – the plotted line.