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

normalizeData(data)[source]
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.

plotBeam()[source]

Plots the base beam element.

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.

plotLabels()[source]

Adds all labels to the plot. Labels are offset from the point in the x and y.

plotPointForceLables(fplot, labelForce, plotForceValue)[source]

Adds all labels to the plot. Labels are offset from the point in the x and y.

plotPointForces()[source]

Plots all point forces.

Forces have a static portion to their length and dynamic portion. This means that arrows can’t have length less than a certain value. This prevents small from being plotted that look silly.

plotSupports()[source]

Finds the type of and plots each supports