Skip to content

Commit 744dc15

Browse files
committed
Add (semi)logarithmic plotlog control to plotinfo
1 parent 2240593 commit 744dc15

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

backtrader/plot/plot.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,10 @@ def plotdata(self, data, indicators):
754754

755755
self.pinf.legpos[a] = len(self.pinf.handles[a])
756756

757+
if data.plotinfo._get('plotlog', False):
758+
a = axdatamaster or ax
759+
a.set_yscale('log')
760+
757761
def show(self):
758762
self.mpyplot.show()
759763

0 commit comments

Comments
 (0)