I plotted source activation using the stc.plot() function as described here in: https://mne.tools/stable/auto_examples/visualization/plot_publication_figure.html
I want to save the plots in a certain directory as a file, with a certain name. The website used the 'screenshot()' function for the Brain object.
But I couldn't find any documentation on the screenshot() function describing its attributes. How do I specify the directory, or the figure size, or resolution?
Note that screenshot() does not save an image file, it "saves" the pixels as a NumPy array of RGB values, and assigns them to a variable. It does not create any files on disk. If you want to save it to disk, passing the variable to [matplotlib's plt.imsave()](https://matplotlib.org/3.1.0/api/_as_gen/matplotlib.pyplot.imsave.html) is probably easiest.
-- dan
Daniel McCloy https://dan.mccloy.info
Research Scientist
Institute for Learning and Brain Sciences
University of Washington