You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- sig (required): An nxm numpy array containing the signal to be plotted - first output argument of rdsamp
12
12
- fields (required): A dictionary of metadata about the record - second output argument of rdsamp
13
13
- annsamp (optional): A 1d numpy array of annotation locations to be plotted on top of selected channels - first output argument of readannot.rdann().
14
-
- annch (default=[0]): A list of channels on which to plot the annotations.
14
+
- annch (default=[0]): A list of channels on which to plot the annotations.
15
15
- title (optional): A string containing the title of the graph.
16
16
- plottime (default=1) - Flag that specifies whether to plot the x axis as time (1) or samples (0). Defaults to samples if the input fields dictionary does not contain a value for fs.
17
-
17
+
18
18
"""
19
-
19
+
20
20
iflen(fields)==3: # Multi-segment variable layout. Get the layout header fields.
21
21
fields=fields[1]
22
-
eliflen(fields)==2: # Multi-segment fixed layout. Get the header fields of the first segment.
22
+
eliflen(fields)==2: # Multi-segment fixed layout. Get the header fields of the first segment.
23
23
fields=fields[1][0]
24
-
24
+
25
25
if (notfields["fs"])|(plottime==0): # x axis is index
0 commit comments