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

Changing color/thickness of vline appearing on signal plot?

Open fishbacp opened this issue 2 years ago • 2 comments

When I click on the background inside the raw signal(s) window, I see a vertical line. It's light green and very thin, and I'm wondering if there's a line or two I can modify within my mne_qt_browser/_pg_figure.py to make adjustments, e.g. wider and/or different color? (Am I correct that a change could be made there?)

Additional context Add any other context or screenshots about the feature request here.

fishbacp avatar Mar 04 '23 21:03 fishbacp

Hi @fishbacp, thank you for the suggestion. Indeed the line might be a bit hard to see depending on your screensize and resolution.

I tried several width's and everything bigger than 2 seems a bit thick to me imho:

2

grafik

3

grafik

4

grafik

I would suggest width=2 but maybe you want to try yourself? Change pen='g' to pen={"color": "g", "width": <your width>} in line 1384 of _pg_figure.py.

marsipu avatar Aug 01 '23 04:08 marsipu

The color can of course be also a subject of discussion too, I tried making it a bit darker (as it is currently the default in the matplotlib-backend:

Current

grafik

New color (same as in mpl backend)

grafik

marsipu avatar Aug 01 '23 05:08 marsipu