def testPlotOneDateValue(self): stock1 = [('20101101', 1), ('20101102', 2), ('20101103', 3)] stock2 = [('20101101', 3), ('20101102', 2), ('20101103', 1)] stock3 = [('20101101', 1), ('20101102', 2), ('20101103', 3)] stock4 = [('20101101', 3), ('20101102', 2), ('20101103', 1)] dateValues = {'testStock1': stock1, 'testStock2': stock2, 'testStock3': stock3, 'testStock4': stock4} p = PlotDateValueDict(dateValues, '%Y%m%d') p.plot()
def testPlotOneDateValue(self): stock1 = [('20101101', 1), ('20101102', 2), ('20101103', 3)] stock2 = [('20101101', 3), ('20101102', 2), ('20101103', 1)] stock3 = [('20101101', 1), ('20101102', 2), ('20101103', 3)] stock4 = [('20101101', 3), ('20101102', 2), ('20101103', 1)] dateValues = {'testStock1': stock1, 'testStock2': stock2, 'testStock3': stock3, 'testStock4': stock4} p = PlotDateValueDict(dateValues, '%Y%m%d') p.plot()
def testPlotOneDateValue(self): stock1 = [DateValueType('2010-11-01', 1), DateValueType('2010-11-02', 2), DateValueType('2010-11-03', 3)] stock2 = [DateValueType('2010-11-01', 3), DateValueType('2010-11-02', 2), DateValueType('2010-11-03', 1)] stock3 = [DateValueType('2010-11-01', 1), DateValueType('2010-11-02', 2), DateValueType('2010-11-03', 3)] stock4 = [DateValueType('2010-11-01', 3), DateValueType('2010-11-02', 2), DateValueType('2010-11-03', 1)] dateValues = {'testStock1': stock1, 'testStock2': stock2, 'testStock3': stock3, 'testStock4': stock4} p = PlotDateValueDict(dateValues, '%Y-%m-%d') p.plot()
def execute(self, dateValuesDict): ''' do output ''' super(PlotYearlyOutputer, self).execute(input) p = PlotDateValueDict(dateValuesDict) p.plot()
def execute(self, dateValuesDict): ''' do output ''' super(PlotYearlyOutputer, self).execute(input) p = PlotDateValueDict(dateValuesDict) p.plot()