For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
Volume plot of PandasData uses the whole DataFrame as legend label
-
I have the following DataFrame
Then add it to
cerebro
and plot it:
But the volume plot prints out the whole DataFrame as the legend label:
How do I fix this?
-
I would quote your code, but since you only plot images (it must be the new trend after cryptocurrencies)
Your code combined with a pristine installation of
backtrader
cannot generate the chart you show. -
I tried it again with a pristine installation of backtrader (
pip install backtrader
). With the defaults, it's OK, but withvoloverlay=False
, the entire DataFrame is printed.