visualdynamics.plot.averaging¶
averaging
¶
The frames, drawn on the record they will be cut from.
A list of five numbers does not tell you whether the analysis sits on the part of the record you meant. Drawn, it does.
Above the trace is the rail: one slot per frame carrying that frame's window, shaded under the curve, so the window is read where it is set rather than over the data it is applied to. Frames that overlap cannot share a slot without running through each other, so each takes the lowest slot whose last frame has already ended — one line at no overlap, two at half, four at three quarters.
Under each frame's slot, its band falls to the foot of the plot. The height is what says which slot a frame is in, so where two frames share record you see two heights and the step between them: the overlap has a shape rather than only a shade.
The span is one draggable region. Take it by the middle to slide the analysis along the record; take it by an edge to add or drop frames — and only whole frames, because half a frame is not an average, so the edge snaps back to where the last whole frame ends.
A capture the controller already cut into frames has nothing to drag: the frame is the record, and the region is drawn locked around it.
Classes:
| Name | Description |
|---|---|
AveragingOverlay |
The averaging parameters as marks on a time history plot. |
Classes¶
AveragingOverlay
¶
AveragingOverlay(
plot: Any,
averaging: Averaging,
sample_rate: float,
samples: int,
colors: Mapping[str, str],
locked: bool = False,
parent: Any = None,
)
Bases: QObject
The averaging parameters as marks on a time history plot.
Owns every item it adds and takes them all away again on remove,
so a redraw cannot leave a band behind. It reports a drag and does
not act on it: what a new averaging means — storing it, redrawing
the table — belongs to whoever put the overlay up.
Methods:
| Name | Description |
|---|---|
remove |
Take every mark off the plot. The overlay is finished after. |
set_averaging |
Draw a different averaging — what the table's edits arrive as. |
Source code in src/visualdynamics/plot/averaging.py
Methods:¶
remove
¶
Take every mark off the plot. The overlay is finished after.