matplotlib / matplotlib/mplfinance
ylim kwarg for volume axes
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Python
- Stars
- 4.4k
- Forks
- 678
- PR merge metrics
- No merged PRs in 30d
Description
Hi, how to set ylim for volume panel if I use code like this:
mpf.plot(df, volume=ax2)
I tried ax2.set_ylim(0,0.5) but it didn't work
I think mpf.plot use its own setting
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 at the mpf.plot entry point and reproduce the volume-panel case using the shown df and ax2 setup. Trace how the volume axis limits are applied, then verify that the requested ylim can be set without being overwritten by the plot call.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100