matplotlib / matplotlib/mplfinance

Feature Request: Alternating Background Color

Open
#641 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
4.4k
Forks
678
PR merge metrics
No merged PRs in 30d

Description

This can be achieved in matplotlib using axvspan, but does not appear to be available in mplfinance. When plotting both the stock price and volume, it's difficult to match the two up, so the ability to switch shadings every other candle (from white to light grey) would improve the readability of the charts.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing mplfinance's plotting entry points and matplotlib's axvspan behavior to understand how candle positions map across price and volume panels. The work is done when alternating white and light-grey shading can be applied every other candle and remains aligned across both panels.

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
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.