visualdynamics.plot.sine_tracking¶
sine_tracking
¶
Levels of one sine tone read several ways, overlaid on one plot.
Each reading is the level against frequency through one tracking band and detector, drawn over the specification. The plot shows how much the level depends on how it was measured, so every reading is drawn on the same axes, and the specification is drawn wide and gray behind them as the reference, the same as a specification behind its response in the other plots.
Each reading has a marker shape as well as a color. This is the only plot where several curves of one quantity on one channel are meant to be compared line by line, and a reader who cannot tell two of the palette's colors apart could not read it by color alone. The markers are placed at a dozen points along each curve (a marker at every point would hide the curve) and are shown beside each name in the legend. Shapes are used instead of dashes because dashes already mean a synthesis drawn over a measurement.
The level axis is linear. Sine levels are drawn in decades elsewhere, which suits a sweep through a resonance. Here the readings are within tens of percent of each other, and on a log axis the 30 % a harmonic adds to a peak reading would be a very small difference.
Functions:
| Name | Description |
|---|---|
build_sine_tracking |
Draw one channel's readings of a tone and return how many were drawn. |
Functions:¶
build_sine_tracking
¶
build_sine_tracking(layout: Any, levels: Sequence[Any], settings: Sequence[Any], *, channel: int = 0, specification: Any = None, unit_system: Any = None, theme: Any = None) -> int
Draw one channel's readings of a tone and return how many were drawn.
settings is the list of tracking settings given to
core.sine_tracking.track_sine and levels is the list it
returned, in the same order; each reading is named in the legend by
its setting. channel is the row of the levels that is drawn. With
specification, the tone's target at that channel is drawn behind
the readings in the specification's gray.
Raises ValueError when levels is empty or when levels and
settings differ in length.