def plotDataMean (self): import matplotlib.pyplot as plt import average data_array=average.mean(self.data) tag_array=average.getTag(self.data) plt.xlabel(tag_array) plt.plot(range(len(data_array)),data_array) plt.grid(True) plt.title('Mean value for each sub-category') plt.show()
def plotData (self): import matplotlib.pyplot as plt import average data_array=average.average(self.data) #print data_array tag_array=average.getTag(self.data) plt.xlabel(tag_array) plt.plot(range(len(data_array)),data_array) plt.grid(True) plt.title('Average Amount for each sub-category') plt.show()