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:
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:
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)
Is there a way to get more accurate positions or am I doing something wrong?
Any help is appreciated!