matplotlib / matplotlib/mplfinance

ylim kwarg for volume axes

Open
#371 4 comments 0 reactions 0 assignees View on GitHub

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.