mne-qt-browser icon indicating copy to clipboard operation
mne-qt-browser copied to clipboard

Screenshot of signals

Open zhengliuer opened this issue 3 years ago • 3 comments

Hi, is there any way that I could take a screenshot of the signals, also could set DPI for it?

zhengliuer avatar Feb 17 '22 20:02 zhengliuer

Hi @BarryLiu97, is this a feature request?

Currently there is no customary screenshot-method implemented. You can use the following methods to save an image of the data-browser with PyQt5:

browser = raw.plot()
pixmap = browser.grab()
pixmap.save("<path_to_destination>")

if you want just the signals you can also use

browser.mne.view.grab()

These are links to the documentation of grab() and pixmap.save().

marsipu avatar Feb 17 '22 21:02 marsipu

Thank you so much, sir. Firstly, I am looking for a way to take a screenshot now. Secondly, I suppose this could be a useful feature, like a QAction next to Shortcut. However, I didn't find a feature request option in the issues, so I had to open it as a bug report.

zhengliuer avatar Feb 17 '22 21:02 zhengliuer

Thank you, you are right we haven't set a template for feature requests yet. I added that now.

marsipu avatar Feb 17 '22 22:02 marsipu