MCPcopy
hub / github.com/mne-tools/mne-python / plot

Method plot

mne/time_frequency/tfr.py:1923–2172  ·  view source on GitHub ↗

Plot TFRs as two-dimensional time-frequency images. Parameters ---------- %(picks_good_data)s %(exclude_spectrum_plot)s %(tmin_tmax_psd)s %(fmin_fmax_tfr)s %(baseline_rescale)s How baseline is computed is determined by the ``mode`

(
        self,
        picks=None,
        *,
        exclude=(),
        tmin=None,
        tmax=None,
        fmin=0.0,
        fmax=np.inf,
        baseline=None,
        mode="mean",
        dB=False,
        combine=None,
        layout=None,  # TODO deprecate? not used in orig implementation either
        yscale="auto",
        vlim=(None, None),
        cnorm=None,
        cmap=None,
        colorbar=True,
        title=None,  # don't deprecate this one; has (useful) option title="auto"
        mask=None,
        mask_style=None,
        mask_cmap="Greys",
        mask_alpha=0.1,
        axes=None,
        show=True,
        verbose=None,
    )

Source from the content-addressed store, hash-verified

1921
1922 @verbose
1923 def plot(
1924 self,
1925 picks=None,
1926 *,
1927 exclude=(),
1928 tmin=None,
1929 tmax=None,
1930 fmin=0.0,
1931 fmax=np.inf,
1932 baseline=None,
1933 mode="mean",
1934 dB=False,
1935 combine=None,
1936 layout=None, # TODO deprecate? not used in orig implementation either
1937 yscale="auto",
1938 vlim=(None, None),
1939 cnorm=None,
1940 cmap=None,
1941 colorbar=True,
1942 title=None, # don't deprecate this one; has (useful) option title="auto"
1943 mask=None,
1944 mask_style=None,
1945 mask_cmap="Greys",
1946 mask_alpha=0.1,
1947 axes=None,
1948 show=True,
1949 verbose=None,
1950 ):
1951 """Plot TFRs as two-dimensional time-frequency images.
1952
1953 Parameters
1954 ----------
1955 %(picks_good_data)s
1956 %(exclude_spectrum_plot)s
1957 %(tmin_tmax_psd)s
1958 %(fmin_fmax_tfr)s
1959 %(baseline_rescale)s
1960
1961 How baseline is computed is determined by the ``mode`` parameter.
1962 %(mode_tfr_plot)s
1963 %(dB_tfr_plot)s
1964 %(combine_tfr_plot)s
1965
1966 .. versionchanged:: 1.3
1967 Added support for ``callable``.
1968 %(layout_spectrum_plot_topo)s
1969 %(yscale_tfr_plot)s
1970
1971 .. versionadded:: 0.14.0
1972 %(vlim_tfr_plot)s
1973 %(cnorm)s
1974
1975 .. versionadded:: 0.24
1976 %(cmap_topomap)s
1977 %(colorbar)s
1978 %(title_tfr_plot)s
1979 %(mask_tfr_plot)s
1980

Callers 13

plot_jointMethod · 0.95
test_array_epochsFunction · 0.45
plotMethod · 0.45
test_plot_spectrumFunction · 0.45
test_plot_spectrum_dBFunction · 0.45
test_dB_computationFunction · 0.45
test_plotFunction · 0.45
test_tfr_plot_combineFunction · 0.45
test_tfr_plot_extrasFunction · 0.45

Calls 13

__getstate__Method · 0.95
get_dataMethod · 0.95
_picks_to_idxFunction · 0.85
_prep_data_for_plotFunction · 0.85
_make_combine_callableFunction · 0.85
_setup_vmin_vmaxFunction · 0.85
_setup_cmapFunction · 0.85
AverageTFRClass · 0.85
_imshow_tfrFunction · 0.85
plt_showFunction · 0.85
get_channel_typesMethod · 0.80

Tested by 11

test_array_epochsFunction · 0.36
test_plot_spectrumFunction · 0.36
test_plot_spectrum_dBFunction · 0.36
test_dB_computationFunction · 0.36
test_plotFunction · 0.36
test_tfr_plot_combineFunction · 0.36
test_tfr_plot_extrasFunction · 0.36