matplotlib / matplotlib/mplfinance

Feature Request: Ability to overlay a candle chart over another (share axes)

Open
#78 5 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

Thank you for your work on updating mplfinance!

Using the deprecated mpl-finance, I was able to put 2 `candlestick_ohlc()` charts on top of each other (overlaid, sharing the same axes), and a table below the chart, all within a single figure that could be saved.

Now, I can use `returnfig=True` to export the figure and axes, but not sure how to actually use those later. `ax` is not a valid kwarg in `plot()`, as it was in `candlestick_ohlc()`. And not sure how to draw the chart inside a parent figure. Should `fig` be a kwarg for `plot()`?

Thank you.

Contributor guide

Open the contributing guide

Research direction

Start by reading the current plot() and returnfig behavior, then compare it with the deprecated candlestick_ohlc() use of ax. Clarify how a parent figure and shared axes should be supplied, including the requested table below the chart. Done means two candle charts can be overlaid in one saveable figure.

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
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.