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, V and D arrays (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 and kind == "D" it is used instead of mr.D so the closure padding does not draw spurious verticals at member ends.

Return type:

plotly.graph_objects.Figure