visualdynamics.plot.truncation¶
truncation
¶
The cut, drawn on the record it will be made from.
Two numbers do not tell you whether the kept stretch sits on the part of the record you meant. Drawn, it does: the discarded ends are greyed over — grey because cut-away data is reference, not subject — and the span between them is the control, the averaging region's own grammar: take it by an edge to move that instant, by the middle to slide the whole window along the record.
The drag settles before it is said (the filter corner's lesson,
2026-08-28): the shading follows the hand move by move — cheap, four
rectangle corners — and changed is emitted once, at release, because
whoever listens stores the span, re-reads staleness and re-settles the
report.
Classes:
| Name | Description |
|---|---|
TruncationOverlay |
The truncation as marks on a time history plot. |
Classes¶
TruncationOverlay
¶
TruncationOverlay(
plot: Any,
truncation: Truncation,
first: float,
last: float,
colors: Mapping[str, str],
parent: Any = None,
)
Bases: QObject
The truncation 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 shade behind. It reports a settled drag
and does not act on it: what a new span means — storing it,
restating the table — belongs to whoever put the overlay up.
Methods:
| Name | Description |
|---|---|
set_truncation |
Restate the marks for a span set elsewhere, silently. |
Source code in src/visualdynamics/plot/truncation.py
Methods:¶
set_truncation
¶
set_truncation(truncation: Truncation) -> None
Restate the marks for a span set elsewhere, silently.