How to move the scalp electrode distribution plot in the Evoked.plot image?

  • Python: 3.9
  • MNE version: 1.4.2
  • operating system: Windows 10
  • IDE: Pycharm community

My result is:
微信图片_20230809134459

The scalp electrode distribution plot is too low and I want to move it. I try to use:

fig = evoked.plot()
# I also try fig.axes[1].get_position(False)
pos = fig.axes[1].get_position()
newPos = [pos.x0, pos.y0+1.0, pos.width, pos.height]
fig.axes[1].set_position(newPos)

But I failed. It never moves.
Note: the above code is my simplified version. The actual code is very complicated, the output is an image with 2 rows and 4 columns, and each sub-image is Evoked.plot image. But I made sure I got the correct axes.

try :

evoked.plot(ylim=dict(eeg=[-50, 50]))

Alex

1 Like