visualdynamics.viz.time_correlation¶
time_correlation
¶
Draw time-correlation scores at measured nodes on a geometry scene.
Functions:
| Name | Description |
|---|---|
draw_time_correlation |
Draw each station's score at its node, and optionally a surface |
station_at |
The score-table rows of the station drawn nearest the window |
station_pixel |
The window pixel, from the bottom left, of the station that |
Functions:¶
draw_time_correlation
¶
draw_time_correlation(plotter: Any, geometries: list, rows: list, *, metric: str, contour: bool, unit_system: Any, text_color: str = 'black', smooth: bool = False) -> tuple[int, str]
Draw each station's score at its node, and optionally a surface
colored by the scores, on plotter.
The stations are placed on the first geometry, by the node of each
row's DOF; a geometry with elements is drawn translucent under them,
colored by the nearest station's score with contour, or by an
inverse-distance-squared blend of all of them with smooth as well.
Returns the number of stations drawn and the axis unit text the
scene's bounds are labeled with.
Source code in src/visualdynamics/viz/time_correlation.py
station_at
¶
The score-table rows of the station drawn nearest the window
pixel (x, y), measured from the bottom left as VTK does, or None
when no station is within radius pixels.
Measured on the screen rather than picked from the scene: a marker is a point drawn as a sphere, and a point has no surface for a picker to hit.
Source code in src/visualdynamics/viz/time_correlation.py
station_pixel
¶
The window pixel, from the bottom left, of the station that
scores table row row, or None when no station does.