Commit a0d8d86
Benjamin Moody
Merge pull request #390 into main
In plot_wfdb, add an argument sharex which controls whether X axes are
shared between subplots.
(This means that multiple channels will always appear time-aligned
with each other, even if one channel starts or ends with a block of
NaNs. It also means that if you use the pan/zoom buttons to navigate,
the channels will stay aligned with each other.)
sharex=True is generally desirable behavior; however, if the time
units are sample numbers and the record is multi-frequency, then it's
not possible (AFAICT) with matplotlib to have the axes synchronized
while displaying different units on different subplots. So we disable
sharex by default in that case.
Finally, plot_wfdb will use time_units="seconds" by default, which I
think is useful because it's consistent (across databases) and
familiar.1 file changed
+24
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
856 | 856 | | |
857 | 857 | | |
858 | 858 | | |
859 | | - | |
| 859 | + | |
860 | 860 | | |
861 | 861 | | |
862 | 862 | | |
863 | 863 | | |
864 | 864 | | |
865 | 865 | | |
| 866 | + | |
866 | 867 | | |
867 | 868 | | |
868 | 869 | | |
| |||
917 | 918 | | |
918 | 919 | | |
919 | 920 | | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
920 | 927 | | |
921 | 928 | | |
922 | 929 | | |
| |||
954 | 961 | | |
955 | 962 | | |
956 | 963 | | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
957 | 979 | | |
958 | 980 | | |
959 | 981 | | |
| |||
977 | 999 | | |
978 | 1000 | | |
979 | 1001 | | |
| 1002 | + | |
980 | 1003 | | |
981 | 1004 | | |
982 | 1005 | | |
| |||
0 commit comments