mne-tools / mne-tools/mne-python

Detect badly scaled plots in raw.plot, warn and propose auto-scale

Open
#12,894 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ENH
Dominant language
Python
Stars
3.5k
Forks
1.6k
Avg merge
1d 6h
Merged PRs (30d)
100

Description

Again on the forum: https://mne.discourse.group/t/raw-plot-shows-an-empty-figure/10371
This kind of scaling problem is common, I remember seeing it several times on the forum. How about we:

  • detect data which is likely badly scaled when calling raw.plot()
  • issue a warning as a pop-up window
  • propose in this pop-up window to auto-scale the data

At least on the Qt backend.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the raw.plot() entry point and reproduce the empty-figure scenario described in the linked forum thread. Read the Qt backend flow to determine where badly scaled data could be detected and where a pop-up can offer auto-scaling. Done means a justified warning and auto-scale proposal appear for the problematic case in Qt without disrupting normally scaled plots.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.