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

Function plot_alignment

mne/viz/_3d.py:531–1015  ·  view source on GitHub ↗

Plot head, sensor, and source space alignment in 3D. Parameters ---------- %(info)s If None (default), no sensor information will be shown. %(trans)s "auto" will load trans from the FreeSurfer directory specified by ``subject`` and ``subjects_dir`` parameters. .. ve

(
    info=None,
    trans=None,
    subject=None,
    subjects_dir=None,
    surfaces="auto",
    coord_frame="auto",
    meg=None,
    eeg="original",
    fwd=None,
    dig=False,
    ecog=True,
    src=None,
    mri_fiducials=False,
    bem=None,
    seeg=True,
    fnirs=True,
    show_axes=False,
    dbs=True,
    fig=None,
    interaction="terrain",
    sensor_colors=None,
    *,
    sensor_scales=None,
    show_channel_names=False,
    verbose=None,
)

Source from the content-addressed store, hash-verified

529
530@verbose
531def plot_alignment(
532 info=None,
533 trans=None,
534 subject=None,
535 subjects_dir=None,
536 surfaces="auto",
537 coord_frame="auto",
538 meg=None,
539 eeg="original",
540 fwd=None,
541 dig=False,
542 ecog=True,
543 src=None,
544 mri_fiducials=False,
545 bem=None,
546 seeg=True,
547 fnirs=True,
548 show_axes=False,
549 dbs=True,
550 fig=None,
551 interaction="terrain",
552 sensor_colors=None,
553 *,
554 sensor_scales=None,
555 show_channel_names=False,
556 verbose=None,
557):
558 """Plot head, sensor, and source space alignment in 3D.
559
560 Parameters
561 ----------
562 %(info)s If None (default), no sensor information will be shown.
563 %(trans)s "auto" will load trans from the FreeSurfer directory
564 specified by ``subject`` and ``subjects_dir`` parameters.
565
566 .. versionchanged:: 0.19
567 Support for 'fsaverage' argument.
568 %(subject)s Can be omitted if ``src`` is provided.
569 %(subjects_dir)s
570 surfaces : str | list | dict
571 Surfaces to plot. Supported values:
572
573 * scalp: one of 'head', 'outer_skin' (alias for 'head'),
574 'head-dense', or 'seghead' (alias for 'head-dense')
575 * skull: 'outer_skull', 'inner_skull', 'brain' (alias for
576 'inner_skull')
577 * brain: one of 'pial', 'white', 'inflated', or 'brain'
578 (alias for 'pial').
579
580 Can be dict to specify alpha values for each surface. Use None
581 to specify default value. Specified values must be between 0 and 1.
582 for example::
583
584 surfaces=dict(brain=0.4, outer_skull=0.6, head=None)
585
586 Defaults to 'auto', which will look for a head surface and plot
587 it if found.
588

Callers 13

meg_sensors.pyFile · 0.90
3d_to_2d.pyFile · 0.90
eeg_on_scalp.pyFile · 0.90
test_render_add_sectionsFunction · 0.90
test_plot_alignment_ieegFunction · 0.90
test_plot_alignment_megFunction · 0.90
test_plot_alignment_surfFunction · 0.90
30_ecog.pyFile · 0.90

Calls 15

_handle_sensor_typesFunction · 0.85
_check_optionFunction · 0.85
create_infoFunction · 0.85
_validate_typeFunction · 0.85
_ensure_bem_surfacesFunction · 0.85
_ensure_srcFunction · 0.85
_find_transFunction · 0.85
pick_typesFunction · 0.85
TransformClass · 0.85
_get_transFunction · 0.85
setFunction · 0.85

Tested by 7

test_render_add_sectionsFunction · 0.72
test_plot_alignment_ieegFunction · 0.72
test_plot_alignment_megFunction · 0.72
test_plot_alignment_surfFunction · 0.72