ibllib.plots¶
-
ibllib.plots.
squares
(tscale, polarity, ax=None, yrange=[-1, 1], **kwargs)¶ Matplotlib display of rising and falling fronts in a square-wave pattern
Parameters: - tscale – time of indices of fronts
- polarity – polarity of front (1: rising, -1:falling)
- ax – matplotlib axes object
Returns: None
-
ibllib.plots.
traces
(w, **kwargs)¶ Matplotlib display of traces
Parameters: - w – 2D array (numpy array dimension nsamples, ntraces)
- fs – sampling frequency
- gain – display gain
- ax – matplotlib axes object
Returns: None
-
ibllib.plots.
vertical_lines
(x, ymin=0, ymax=1, ax=None, **kwargs)¶ From a x vector, draw separate vertical lines at each x location ranging from ymin to ymax
Parameters: - x – numpy array vector of x values where to display lnes
- ymin – lower end of the lines (scalar)
- ymax – higher end of the lines (scalar)
- ax – (optional) matplotlib axis instance
Returns: None
-
ibllib.plots.
wiggle
(w, fs=1, gain=0.71, color='k', ax=None, fill=True, linewidth=0.5, t0=0, **kwargs)¶ Matplotlib display of wiggle traces
Parameters: - w – 2D array (numpy array dimension nsamples, ntraces)
- fs – sampling frequency
- gain – display gain
- color – (‘k’) color of traces
- ax – (None) matplotlib axes object
- fill – (True) fill variable area above 0
- t0 –
- timestamp of the first sample
Returns: None