phys2cvr.viz.plot_two_timeseries

phys2cvr.viz.plot_two_timeseries(ts1, ts2, outname, ts1_name=None, ts2_name=None, freq=None, zscore=False)[source]

Plot two timeseries.

Parameters:
ts1np.ndarray-like

First timeseries to be plotted.

ts2np.ndarray-like

Second tiemseries to be plotted.

outnamestr or path

Filename (and path to) to save the image.

ts1_namestr or None, optional

Name of the first timeseries, for legend and title.

ts2_namestr or None, optional

Name of the second timeseries, for legend and title.

freqNone, optional

Frequency of Xcorr samples. If specified, it’s used to plot against time.

zscorebool, optional

If True, zscore timeseries before plot. Default is False.