visualdynamics.plot.replication_segments¶
replication_segments
¶
A replicated record judged segment by segment: the two traces overlaid with the segments shaded, their difference beneath, and the verdict by segment in a table under both.
The question the view answers is the one the whole-record figure cannot: which stretch of the record was reproduced and which was not. So the record is drawn whole, the reference standing back in gray and the control over it, each marked segment shaded across both plots, and the table under them gives, for the record and then for each segment, its share of the record's mean square, its own rms error, and each of its checks against its tolerance. The whole-record rms error is the table's first row, so the number that hides a segment's miss is read beside the one that shows it.
A verdict is never carried by hue alone. Each segment's shading is labeled in words with its name, its kind and its verdict, and its edges are drawn in a line style of its kind (solid for stationary, dashed for transient, dotted for shock); a failing segment's fill is the exceedance red where a passing one is the analysis blue, which adds to the words and replaces none of them. In the table a failing verdict is set in bold.
Functions:
| Name | Description |
|---|---|
verdict_rows |
The table's rows, one per check, the whole record first, each a |
table_html |
The verdict table as rich text, for a |
describe_record |
The plot's title: the channel, how many segments fail, and the |
build_replication_segments |
Draw one channel of a run against its reference, segments shaded, |
Functions:¶
verdict_rows
¶
The table's rows, one per check, the whole record first, each a
tuple of COLUMNS strings. A segment's name, kind, span, share and
error are given on its first row only.
Source code in src/visualdynamics/plot/replication_segments.py
table_html
¶
The verdict table as rich text, for a LabelItem: a header row,
then verdict_rows, with each failing verdict and each failing
segment's name in bold.
Source code in src/visualdynamics/plot/replication_segments.py
describe_record
¶
The plot's title: the channel, how many segments fail, and the whole-record figure beside them.
Source code in src/visualdynamics/plot/replication_segments.py
build_replication_segments
¶
build_replication_segments(layout: Any, measured: Any, specification: Any, segments: Sequence[Any], *, channel: str | None = None, lag: int | None = None, playing: int = 0, unit_system: Any = None, theme: Any = None, **settings: Any) -> Any
Draw one channel of a run against its reference, segments shaded,
with the verdict table, and return the judgment
(core.replication_segments.replication_segments).
Three rows of layout: the two traces overlaid (the reference in
gray, the control in the first curve color) with their legend, the
difference, control minus reference, on the same time axis, and the
table (verdict_rows). The settings are the judgment's.
Source code in src/visualdynamics/plot/replication_segments.py
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 | |