frites.conn.plot_windows#

frites.conn.plot_windows(times, win_sample, x=None, title='', r_min=- 0.75, r_max=0.75)[source]#

Simple plotting function for representing windows.

Parameters
timesnumpy:array_like

Times vector of shape (n_times,)

win_samplenumpy:array_like

Windows in samples.

xnumpy:array_like | python:None

A signal to use as a background. If None, a pure sine is generated with 100ms period is generated

titlepython:str | ‘’

String title to attach to the figure

r_min, r_maxpython:float | -.75, .75

Window are represented by squares. Those two parameters can be used to control where box start and finish along the y-axis.

Returns
axgca

The matplotlib current axes

See also

define_windows

Examples using frites.conn.plot_windows#

Define temporal windows

Define temporal windows