Commit 5764124
Benjamin Moody
plot_wfdb: plot non-smooth records.
If a record is loaded in "non-smooth" ("expanded") mode, it can
contain signals of different lengths sampled at different frequencies.
In such a case, we want to plot each signal at its original
frequency in order to see the effect of the sampling and the temporal
relationships between the signals.
plot_items now allows the signal argument to be either a numpy array
(as in p_signal or d_signal, loaded when 'smooth_frames=True') or a
list of arrays (as in e_p_signal or e_d_signal, loaded when
'smooth_frames=False'); in the latter case, plot_wfdb has to calculate
and provide the correct per-channel sampling frequencies.
(The annotation file, if any, may have its own sampling frequency,
which may differ from the signal sampling frequencies. The *default*,
if the annotation file doesn't specify a frequency, is always the
record frame frequency (fs), not the sampling frequency of any
particular signal.)1 parent 0de1a9d commit 5764124
1 file changed
+19
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
768 | 768 | | |
769 | 769 | | |
770 | 770 | | |
771 | | - | |
772 | | - | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
773 | 774 | | |
774 | 775 | | |
775 | 776 | | |
| |||
836 | 837 | | |
837 | 838 | | |
838 | 839 | | |
839 | | - | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
840 | 844 | | |
841 | 845 | | |
842 | 846 | | |
| |||
913 | 917 | | |
914 | 918 | | |
915 | 919 | | |
916 | | - | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
917 | 929 | | |
| 930 | + | |
918 | 931 | | |
919 | 932 | | |
920 | 933 | | |
| 934 | + | |
921 | 935 | | |
922 | 936 | | |
923 | 937 | | |
| |||
972 | 986 | | |
973 | 987 | | |
974 | 988 | | |
975 | | - | |
| 989 | + | |
976 | 990 | | |
977 | 991 | | |
978 | 992 | | |
| |||
0 commit comments