mne.viz.
snapshot_brain_montage
(fig, montage, hide_sensors=True)[source]¶Take a snapshot of a Mayavi Scene and project channels onto 2d coords.
Note that this will take the raw values for 3d coordinates of each channel, without applying any transforms. If brain images are flipped up/dn upon using imshow, check your matplotlib backend as this behavior changes.
Parameters: | fig : instance of Mayavi Scene
montage : instance of DigMontage or Info | dict of ch: xyz mappings.
hide_sensors : bool
|
---|---|
Returns: | xy : array, shape (n_channels, 2)
im : array, shape (m, n, 3)
|
mne.viz.snapshot_brain_montage
¶