plot_variogram#
- pypillometry.signal.plot_variogram(vg, ax=None, scale='loglog', normalize=False, min_pairs=100, show_sill=True, units='ms', **kwargs)[source]#
Plot one or several variograms.
- Parameters:
vg (Variogram or dict of Variogram) – result(s) of
semivariogram(); the keys of a dict are the labels (e.g.,{"left_pupil": ..., "right_pupil": ...})ax (matplotlib Axes, optional) – axes to draw on; default: a new figure
scale ({"loglog", "logx", "linear"}, optional) – axis scaling; default “loglog” (power laws are straight lines)
normalize (bool, optional) – divide by the variance of the signal, so that the sill of a stationary signal is at 1; default False
min_pairs (int, optional) – lags with fewer pairs of valid samples are drawn faded; default 100
show_sill (bool, optional) – draw the variance of each signal as a dashed line; default True
units (str, optional) – unit of the lag axis (“ms”, “sec”, “min”); default “ms”
**kwargs – passed to
ax.plot
- Return type: