How access small vertical voltage line when plotting raw EEG? Changing voltage amplitude when plotting?

  • MNE version: 1.8.0

  • operating system: Windows 11

Dear Colleagues,

When plotting there is this small vertical red line. I need to access the code that handles it to make it dinamic. For instance, I’ll fix its heigh, assume it is 7mm, and set height to 7microvs/mm or 10microvs/mm etc, to change amplitude of eeg plot. As in clinical EEG higher the number, smaller the signal heigh.
I’ looked in matplotlib but cant find it. I believe its script is hidden somewhere in mne code. Could you show me where it is?
By the way, Am I on the right path? Is there already a code to do so?

Thanks in advance

Pkanda

You need both to set the vertical bar height, but also the scaling. This is already being implemented by @nmarkowitz as part of GSoC this year and will be available in the next release on mne-qt-browser: Enh sensitivity UI change by nmarkowitz · Pull Request #278 · mne-tools/mne-qt-browser · GitHub

Note that this is only getting implemented for the Qt backend which offers many convenience function to pull the logical and physical screen size on which the plotting window is displayed.

If you want to do it for the matplotlib backend, the PR will still help you understand which part of the code should be modified.

Mathieu

Thank you very much I’ll study Qt backend while waiting next release.
Best regards
Paulo Kanda
Brasil