mplfinance icon indicating copy to clipboard operation
mplfinance copied to clipboard

How can I set background color of plot?

Open ppseverin opened this issue 4 years ago • 1 comments

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

ppseverin avatar Oct 16 '20 03:10 ppseverin

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

DanielGoldfarb avatar Oct 16 '20 07:10 DanielGoldfarb