matplotlib / matplotlib/mplfinance
how to add legend to the plot?
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 4.4k
- Forks
- 678
- PR merge metrics
- No merged PRs in 30d
Description
How to add a legend to the plots? For example, if using several moving averages it will be useful to show a legend to map moving averages to line plots.
Is clear how this is done using matplotlib but I did not see an example of how to do so using the mplfinance package.
TIA,
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
The issue names mplfinance plots and matplotlib but no source files, tests, or entry points. Start by reviewing the plotting API and the existing moving-average examples, then clarify the intended legend interface and expected behavior. Done should include supported legend behavior with an example or test, once the scope is agreed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- matplotlib, python
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100