5.4. Plot Internal Forces
- planesections.postprocess.plot.plotInternalForce(beam: Beam, index: int, scale: float, xunit='m', yunit='N', showAxis=True, showGrid=False, labelPlot=True, labelPOI=False, POIOptions=None, fig=None, ax=None)[source]
Plots the internal forces within a beam. Two values are given for each point, one at the left side, one at the right side. The analysis must be run on the beam prior to plotting. Note that internal force is only known exactly at nodes, and linear interpolation is used for all other values.
- Parameters:
beam (Beam) – The beam to plot internal forces with. The analysis must be run.
index (int) –
The type of response to plot, can have value
- In 2D has values:
[0:Fx, 1: Fy, 2: M]
- In 3D has values:
[0:Fx, 1: Fy, 2: Fz, 3: Mx, 4: Mx, 5: Mz]
scale (float, optional) – The scale to apply to y values of the plot. The default is 1.
xunit (str, optional) – The xunit for the plot labels. The default is m.
yunit (str, optional) – The yunit for the plot labels. The default is N.
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 POI label on points with user labels.
showDiscontinutiy: this flag turns on POI labels on points of discontinuity.
showMax: this turns on or off POI at maximum points.
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.