Skip to content

Inaccurate iEEG electrode positions on 3d/2d plots #8868

Closed

Description

@Immiora

Originally posted here: https://mne.discourse.group/t/ieeg-electrode-positions-on-3d-2d-plots/2687

The electrode positions I am getting from the mayavi plot look inaccurate.

The issue is well visible in the tutorial as well: Working with ECoG data:
Example1

The electrodes plotted with scatter (colored blobs) are off compared to the ones made with plot_alignment (white spheres underneath). Reducing the radius of the scatter plot reveals how inaccurate it is:

Example2

I understand that these positions depend on the view, but both plots are made using the same viewpoint:

fig = plot_alignment(raw_car.info, subject=subject, subjects_dir=subjects_dir, surfaces=['pial'], coord_frame='mri')
mne.viz.set_3d_view(fig, 200, 70)
xy, im = snapshot_brain_montage(fig, montage)
xy_pts = np.vstack([xy[ch] for ch in raw_car.info['ch_names']])

fig, ax = plt.subplots(figsize=(5, 5))
ax.imshow(im)
ax.set_axis_off()
sc = ax.scatter(*xy_pts.T, c=ts, vmin=10, vmax=100)

Activity

  1. Immiora commented on Mar 2, 2021

    @Immiora
    Author

    Any chance someone is looking at this yet?

  2. larsoner commented on Mar 3, 2021

    @larsoner
    Member

    Can you try #8983?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions