MCPcopy Index your code
hub / github.com/QuantFans/quantdigger / add_plot

Method add_plot

quantdigger/widgets/mplotwidgets/widgets.py:400–405  ·  view source on GitHub ↗
(self, ith_axes, plot, twinx=False)

Source from the content-addressed store, hash-verified

398 self.add_plot(ith_axes, indicator, twinx)
399
400 def add_plot(self, ith_axes, plot, twinx=False):
401 try:
402 plot.plot(self.axes[ith_axes])
403 return self.register_plot(ith_axes,plot)
404 except Exception as e:
405 raise e
406
407 def register_plot(self, ith_axes, plot):
408 """ 注册指标。

Callers 1

add_indicatorMethod · 0.95

Calls 2

register_plotMethod · 0.95
plotMethod · 0.45

Tested by

no test coverage detected