Commit c650c36
Benjamin Moody
plot_wfdb: add sharex argument.
This argument allows the caller to specify whether the horizontal axes
should be synchronized across all channels (subplots) in a plot.
In general, this behavior is desirable as it lets the viewer see the
temporal relationship between channels. However, in the case where
the record is multi-frequency *and* we are displaying sample numbers
on the horizontal axis, matplotlib unfortunately does not appear to
have a way to synchronize the axes automatically.
Therefore, in the default "auto" case, enable X sharing as long as the
time units for all channels are the same.1 parent 0457e2d commit c650c36
1 file changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
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