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

Method set_parent

quantdigger/widgets/mplotwidgets/widgets.py:255–264  ·  view source on GitHub ↗

docstring for init_widget

(self, parent, ith_axes)

Source from the content-addressed store, hash-verified

253 self.main_plot = None
254
255 def set_parent(self, parent, ith_axes):
256 """docstring for init_widget"""
257 self.ax = parent.axes[ith_axes]
258 #ax.set_xlim((self.xmin, self.xmax))
259 #ax.set_ylim((self.ymin, self.ymax))
260 candles = Candles(None, self.data, self.name)
261 parent.register_plot(ith_axes, candles)
262 self.lines, self.rects = candles.plot(self.ax)
263 self.main_plot = candles
264 self.connect()
265
266
267 def on_slider(self, val, event):

Callers 1

add_widgetMethod · 0.80

Calls 4

plotMethod · 0.95
connectMethod · 0.95
CandlesClass · 0.90
register_plotMethod · 0.80

Tested by

no test coverage detected