pycba.plotting.diagram_figure#
- diagram_figure(mr, kind, units=None, title=None, defl=None)[source]#
Build an interactive single result diagram (bending moment, shear or deflection) from a
pycba.MemberResults-like object.- Parameters:
mr (object) – Anything exposing
x,M,VandDarrays (e.g.BeamAnalysis.beam_results.results).kind (
str) – Which load effect to draw.units (str or pycba.units.UnitSystem, optional) – Display unit system (see
pycba.set_units()).title (
Optional[str]) – Figure title.defl ((array, array), optional) – The de-padded
(x, D)deflected shape (native units); when given andkind == "D"it is used instead ofmr.Dso the closure padding does not draw spurious verticals at member ends.
- Return type:
plotly.graph_objects.Figure