matplotlib / matplotlib/matplotlib
ENH: Add legend toggle to figure options dialog box
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 23.2k
- Forks
- 8.5k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 66
Description
### Feature request
It would be nice if the user could toggle display of the legend (if any) in the figure options dialog box. Currently, it's possible to edit curve labels and regenerate the legend, but not toggle the display of the legend. This would be especially useful because sometimes the legend can obscure parts of the plot.
Apologies if this has been discussed somewhere already. I couldn't find anything here in GH issues.
**Matplotlib version**
* Operating system: Xubuntu 16.04
* Matplotlib version: 2.2.2, installed from pip
* Matplotlib backend (`print(matplotlib.get_backend())`): Qt5Agg
* Python version: 3.5.2
* Jupyter version (if applicable):
* Other libraries:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the figure options dialog implementation used with the Qt5Agg backend, then trace how curve labels and legend regeneration are handled. Add a control for toggling legend display and verify that the dialog updates plots with and without an existing legend.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- matplotlib, python
- Domain
- data-visualization, desktop
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100