3.2. Beam Plotter
The class used to plot beam diagrams.
It’s highly recommened that plotBeamDiagram is used instead of BeamPlotter2D. While the beam can analyze all support types, currently not all support types can be plotted. Only free, roller, pin, and fixed supports can be plotted.
- class planesections.diagram.diagram.BeamPlotter2D(beam, figsize=8, units='environment')[source]
Bases:
object- plot(plotLabel=False, labelForce=True, plotForceValue=True, **kwargs)[source]
Plots the beam, supports, point forces, element forces, and labels.
Note that forces have a “static” and “adaptive” portion of their length . This means that arrows can’t have values length less than a certain length, preventing very small arrows from being plotted that look silly. However, this also means that the ratio between different arrows won’t be exactly the ratio between their force magnitude.
Only the vertical components of distributed forces are plotted.
- plotDistForceLables(fplot, xcoords, labelForce, plotForceValue)[source]
Adds all labels to the plot. Labels are offset from the point in the x and y.
- plotEleForces()[source]
Plots all distributed forces. Only vertical forces can be plotted. If a horizontal component is supplied to the force, it is not included in the plot.
- plotPointForceLables(fplot, labelForce, plotForceValue)[source]
Adds all labels to the plot. Labels are offset from the point in the x and y.