visualdynamics.plot.transmissibility¶
transmissibility
¶
The two transmissibilities of one record drawn together, and the band H1's coherence and averages put about it.
A TransmissibilityReading (core.transmissibility) holds H1 and the
ASD ratio at every line. This module draws them on one magnitude axis so
the reader sees where they agree and where the ratio lifts away, with
the band H1's random error gives, and tells each apart by line style and
words, never by hue alone:
- H1 solid, named 'H1 = Gxy/Gxx' in words;
- the ASD ratio dashed, named 'ASD ratio √(Gyy/Gxx), magnitude only':
it has no phase, and it reads over H1 by one over the root of the
coherence, which says the two disagree and not which is nearer the
truth (
core.transmissibility); - the band dotted at both edges with a faint fill between, named with how many errors it reaches and the averages it was read at. Where the band reaches zero it has no lower edge, and the lower dotted line stops there.
TransmissibilityOverlay puts the ratio and the band on a plot that
already draws the FRF (the window's FRF view), with H1 drawn as well
only when the FRF on the plot is another estimator, and a key in the
view's corner that says which line is which. Its items go on the view
box and are kept out of its bounds, as the other readings' overlays
are: they are a reading of the data, so the plot's legend, its copy and
its zoom never take them in. build_transmissibility draws a reading
as a figure of its own: the magnitudes above, the coherence below.
Classes:
| Name | Description |
|---|---|
TransmissibilityOverlay |
The items that draw a transmissibility reading over an FRF's |
Functions:
| Name | Description |
|---|---|
band_name |
The band's name in words: how many random errors of H1 it reaches |
display_scale |
(scale, unit): the factor that converts the reading's SI |
build_transmissibility |
Draw a transmissibility reading into a graphics layout and return |
Classes¶
TransmissibilityOverlay
¶
The items that draw a transmissibility reading over an FRF's magnitude on a pyqtgraph plot.
Made once per plot with plot, the PlotItem drawing the FRF, and
color, a pyqtgraph color (the plot's foreground by default); then
show(reading, ...) places the ratio, the band and the key, mark
puts the cursor's markers on one line, and remove takes it all
off.
Methods:
| Name | Description |
|---|---|
items |
Every item drawn on the view box, the key aside. |
show |
Draw |
mark |
Put the cursor's markers on the line nearest |
remove |
Take the items and the key off the plot for good. |
Source code in src/visualdynamics/plot/transmissibility.py
Methods:¶
items
¶
Every item drawn on the view box, the key aside.
show
¶
Draw reading, a TransmissibilityReading: the ratio dashed,
the band reaching spread errors, and with draw_h1 H1 solid
(for a plot whose FRF is another estimator). scale converts the
reading's SI magnitudes into the plot's units.
Source code in src/visualdynamics/plot/transmissibility.py
mark
¶
Put the cursor's markers on the line nearest frequency: a
circle on H1, a square on the ratio. None takes them off.
Source code in src/visualdynamics/plot/transmissibility.py
remove
¶
Take the items and the key off the plot for good.
Source code in src/visualdynamics/plot/transmissibility.py
Functions:¶
band_name
¶
The band's name in words: how many random errors of H1 it reaches either side, and the averages the error was read at.
Source code in src/visualdynamics/plot/transmissibility.py
display_scale
¶
(scale, unit): the factor that converts the reading's SI
magnitudes into unit_system's units for its dimension, and that
unit's name; one and an empty name where the units are undefined.
Source code in src/visualdynamics/plot/transmissibility.py
build_transmissibility
¶
build_transmissibility(layout: Any, reading: Any, *, spread: float = 1.0, band: tuple[float, float] | None = None, unit_system: Any = None, theme: Any = None) -> tuple[Any, Any]
Draw a transmissibility reading into a graphics layout and return its two plots, (magnitude, coherence).
Above, on log axes, H1 solid, the ASD ratio dashed and the band
dotted with a faint fill, each named in the legend below the plot.
Beneath, the coherence the band was read from, on the same
frequencies, named with the frames. band is the (low, high)
frequencies the view shows, in Hz, the magnitude axis fitted to what
is drawn inside it; the whole reading when omitted. The notes the
reading carries go under the title.
Source code in src/visualdynamics/plot/transmissibility.py
213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 | |