13.3|13.3 Plotting on the same axis
Example:
import backtrader as btcerebro = bt.Cerebro()data0 = bt.feeds.MyFavouriteDataFeed(dataname='futurename')
cerebro.adddata(data0)data1 = bt.feeds.MyFavouriteDataFeed(dataname='spotname')
data1.compensate(data0)# let the system know ops on data1 affect data0
data1.plotinfo.plotmaster = data0
data1.plotinfo.sameaxis = True
cerebro.adddata(data1)...cerebro.run()
data1 gets some plotinfo values to:
- 【13.3|13.3 Plotting on the same axis】Plot on the same space as plotmaster which is data0
- Get the indication to use the sameaxis
推荐阅读
- 【Thesewt】蒙昧(续)
- The|The Help week 3
- The|The ideal servant
- 分析COMP122 The Caesar Cipher
- 清晨朗读327(How|清晨朗读327:How Successful People Network with Each Other)
- 【天馬座|【天馬座 ? 翼ノ幻想】~《The Pegasus Fantasy》
- The|The Dump Truck Song
- OpenCV|OpenCV for Unity 通过WebCamTextureToMatHelper帮助类来获取摄像头的画面
- 本文转载于THE|本文转载于THE ILLUMINATUS! TRILOGY
- 麦豆悦读英文绘本讲师训练营【第16期】--16/21--绘本赏析--《The|麦豆悦读英文绘本讲师训练营【第16期】--16/21--绘本赏析--《The Magic Melon》