pyOMA.core.PlotMSH.ModeShapePlotConfig#
- class pyOMA.core.PlotMSH.ModeShapePlotConfig(beamcolor: object = 'dimgrey', beamstyle: object = '-', nodecolor: object = 'dimgrey', nodemarker: object = 'o', nodesize: float = 20, dpi: int = 100, amplitude: float = 1, linewidth: object = 1, callback_fun: object = None, real: bool = False, scale: float = 0.2, save_ani_path: object = None)[source]#
Bases:
objectVisual style configuration for
ModeShapePlot.Group visual-style keyword arguments so that
ModeShapePlotcan be constructed with a single config object instead of many individual keyword parameters.- Parameters:
beamcolor (matplotlib color or sequence, optional) – Color used to draw beam/line elements.
beamstyle (str or sequence, optional) – Linestyle used to draw beam/line elements.
nodecolor (matplotlib color, optional) – Color used to draw nodes.
nodemarker (matplotlib marker, optional) – Marker symbol used to draw nodes.
nodesize (float, optional) – Marker size for nodes.
dpi (int, optional) – Figure resolution in dots per inch.
amplitude (float, optional) – Scaling factor for modal displacement amplitudes.
linewidth (float or sequence, optional) – Line width for beam/line elements.
callback_fun (callable or None, optional) – Called after each mode change; signature
f(plot, mode_index).real (bool, optional) – When True, plot the real part of complex mode shapes.
scale (float, optional) – Fractional scale for axis arrows and channel-DOF arrows.
save_ani_path (pathlib.Path or None, optional) – Directory in which animation frames are saved.
- __init__(beamcolor: object = 'dimgrey', beamstyle: object = '-', nodecolor: object = 'dimgrey', nodemarker: object = 'o', nodesize: float = 20, dpi: int = 100, amplitude: float = 1, linewidth: object = 1, callback_fun: object = None, real: bool = False, scale: float = 0.2, save_ani_path: object = None) None#
Methods
__init__([beamcolor, beamstyle, nodecolor, ...])Attributes
amplitudebeamcolorbeamstylecallback_fundpilinewidthnodecolornodemarkernodesizerealsave_ani_pathscale