Plot an ideal filter response.
The ideal response frequencies to plot (must be in ascending order).
None
The ideal response gains to plot.
Axes
| None
The subplot handle. With None (default), axes are created.
str
The title to use, (default: ‘’).
tuple
or None
If not None, the x-axis frequency limits (Hz) to use. If None (default), freq used.
str
Frequency scaling to use, can be “log” (default) or “linear”.
tuple
If not None (default), the y-axis limits (dB) to use.
The color to use (default: ‘r’).
float
The alpha to use (default: 0.5).
str
The line style to use (default: ‘–‘).
Show figure if True (default).
matplotlib.figure.Figure
The figure.
See also
Notes
New in version 0.14.
Examples
Plot a simple ideal band-pass filter:
>>> from mne.viz import plot_ideal_filter
>>> freq = [0, 1, 40, 50]
>>> gain = [0, 1, 1, 0]
>>> plot_ideal_filter(freq, gain, flim=(0.1, 100))
<...Figure...>
mne.viz.plot_ideal_filter
#Background information on filtering