Need some help about the plotting and manipulating the figure
-
Hi thanks for the great job! And I have some questions about the plotting and the figure..
Q-1
I am wondering if I can adjust the height of the plotting figure
Let say we have the figure
Is there a way to adjust the partsA
B
D
E
F
G
the same height as partC
?Q-2
Besides, is there an easy way to get all the information of the plotted figure? Is there a way like
cerebro.run() part_A=cerebro.get_part("A") data_A = part_A.get_ydata()
where
data_A
is the data whichcerebro
used to plot the figure ? -
@eggachecat said in Some problems about the plotting and the figure:
Is there a way to adjust the parts A B D E F G the same height as partC ?
Yes and no, because you cannot have scrolling because it is
matplotlib
limited. For the heights of different rows see: Docs - Plotting. Although it is bound to break due to the impossibility of managing unlimited combinations.@eggachecat said in Some problems about the plotting and the figure:
where data_A is the data which cerebro used to plot the figure ?
A
is an observer and held by the strategy. See Docs - Strategy
And now: Where are the problems?
-
@backtrader Sorry, It should be
questions
notproblems
My bad..Can I change the title?And thanks for the response!!
-
For those who just want the code
Q-1
cerebro.plot(rowsmajor=1, rowsminor=1)
will do the trick.