MCPcopy Create free account
hub / github.com/QuantFans/quantdigger / __init__

Method __init__

quantdigger/digger/analyze.py:202–214  ·  view source on GitHub ↗

(self, fname, n=10, intraday=False)

Source from the content-addressed store, hash-verified

200
201 """
202 def __init__(self, fname, n=10, intraday=False):
203 """ """
204 self.fig = plt.figure(facecolor='white')
205 self.fig.canvas.set_window_title(u'�ڻ����ݷ���')
206 self.nbar = n
207 self.cursors = []
208 self.data, = load_datas(n, intraday, fname)
209 print self.data
210 self.axes = []
211 self.rax = plt.axes([0, 0.5, 0.08, 0.15])
212 self.radio = RadioButtons(self.rax, ('scatter', 'summary', 'summary2', 'entry', 'exit', 'simple'), active=0)
213 self.axes, self.cursors = scatter_analyze(self.fig, self.data)
214 self.radio.on_clicked(self.update)
215
216 def update(self, op):
217 for ax in self.axes:

Callers

nothing calls this directly

Calls 3

load_datasFunction · 0.85
scatter_analyzeFunction · 0.85
axesMethod · 0.45

Tested by

no test coverage detected