mplfinance
mplfinance copied to clipboard
How can I set background color of plot?
Well, pretty much thats it. I was trying to find a key word for background color but did not found one. Anyone knows how this can be done? Also, how can I add a label/legend to different type of indicators (eg: sma(10) and sma(200))
There are two kwargs that can be used when calling mpf.make_mpf_style()
. They are facecolor
and figcolor
.
Make sure you have read through the entire "styles" tutorial.
Regarding legends, see here and here.
I hope that helps. All the best. --Daniel