If you’re running the code in an interactive Python window, this can very well be the case. The solution to this is usually to assign the returned figure to a variable, e.g.,
fig = mne.viz.plot_topomap(...)
ar = saveasarray()
sklearn: 0.24.2
numba: Not found
nibabel: Not found
nilearn: Not found
dipy: Not found
cupy: Not found
pandas: 1.3.2
mayavi: Not found
pyvista: Not found
vtk: Not found
How do you run your code? If you do it line-by-line in an interactive Jupyter or IPython window, even the fig = ... assignment won’t suffice. Probably what would help is appending a del fig to that very line:
Hi, I have also the same problem. I solved saving the topoplot and load in the following lines. I suggest, to use interp2d function of scipy library but the problem is that in this way you interpolate function on plane and not on sphere, so the result is similar but not the same