plot_prf#

pypillometry.signal.plot_prf(npar=10.1, tmax=930, max_duration='estimate', fs=500, title=None, ax=None, **kwargs)[source]#

Plot profile of the pupil-response function (PRF) with parameters npar and tmax.

Parameters:
Return type:

matplotlib.axes.Axes

Returns:

the axes of the plot

Examples

The default response function and one that peaks earlier:

>>> import pypillometry as pp
>>> import matplotlib.pyplot as plt
>>> fig, ax = plt.subplots()
>>> ax = pp.signal.plot_prf(ax=ax)
>>> ax = pp.signal.plot_prf(npar=5, tmax=500, ax=ax)
../../_images/pypillometry-signal-plot_prf-1.png