-
Notifications
You must be signed in to change notification settings - Fork 653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Ability to overlay a candle chart over another (share axes) #78
Comments
Ability to create and pass in your own Figure and Axes is coming. Maybe another 4 to 6 weeks. In the meantime, you may be able to use the Figure and Axes that are returned from I'd like to see an example of an two overlayed candle charts, if you could point me to an example that would be great. Thanks. |
This can be handled with a couple of lines of code: In
In
|
@GAEfan -- Do you have a working version of the code, with this change, that does the overlay that you want with mplfinance? I would like to look at it. |
There have been a number of enhancements since this issue was first posted. There now is kwarg fig, axlist = mpf.plot(df1,...,returnfig=True)
mpf.plot(df2,ax=axlist[0]) Please let me know if this is an adequate solution for your issue, or if we can do something else for you. Thank you. All the best. --Daniel |
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 inplot()
, as it was incandlestick_ohlc()
. And not sure how to draw the chart inside a parent figure. Shouldfig
be a kwarg forplot()
?Thank you.
The text was updated successfully, but these errors were encountered: