matplotlib / matplotlib/matplotlib

[ENH]: Add dark mode for subplot configuration tool

Open
#27,592 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

GUI: MacOSX New feature
Dominant language
Python
Stars
23.2k
Forks
8.5k
Avg merge
1d 6h
Merged PRs (30d)
66

Description

### Problem

The subplot configuration tool is currently white background/black text when macOS is in dark mode. It would be nice to apply a dark style sheet when macOS is in dark mode. This is using the macosx backend, but might be an issue for other backends (but not QT AFAIK).

```python
import matplotlib.pyplot as plt
plt.figure()
plt.show()
```
Screenshot 2024-01-01 at 19 40 19

### Proposed solution

Apply a dark style sheet to the configuration tool when macOS is in dark mode.

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 subplot configuration tool entry point used by the macosx backend and run the provided Python example on macOS in light and dark modes. Check how existing backend styles are selected; done means the tool uses a dark style in macOS dark mode while preserving the current behavior for Qt and other backends.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization, desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.