visualdynamics.plot.filtering¶
filtering
¶
The filtered time history, previewed over the unfiltered one.
A corner frequency alone does not show what a filter will remove. The preview draws each curve on the plot again through the filter being set, so the noise removed and the content kept can be judged on the data itself before Apply Filter creates anything.
The preview filters the y-data already on the plot. That is the whole
record in the units on screen, and a filter is linear, so the result is
the same as what core.filters.filtered will produce: both use the
same core.filters.design and scipy's sosfiltfilt. Each preview is
drawn in its channel's curve color, and the unfiltered curve under it
is drawn gray, the color a specification is drawn in behind its
response.
Classes:
| Name | Description |
|---|---|
FilterOverlay |
Filtered copies of a plot's curves, drawn over the originals. |
Classes¶
FilterOverlay
¶
Filtered copies of a plot's curves, drawn over the originals.
The overlay owns every item it adds and removes all of them in
remove, which also gives each original curve its pen back, so a
redraw cannot leave a preview behind.
Methods:
| Name | Description |
|---|---|
set_filtering |
Redraw the previews for new filter settings (a corner or an order). |
remove |
Remove the previews and give the original curves their pens back. |
Source code in src/visualdynamics/plot/filtering.py
Methods:¶
set_filtering
¶
Redraw the previews for new filter settings (a corner or an order).
Settings that cannot be designed at this sample rate, as happens while a number is being typed, draw no preview.
Source code in src/visualdynamics/plot/filtering.py
remove
¶
Remove the previews and give the original curves their pens back.