
matplotlib数据可视化
Davenny
O ever youthful,O ever weeping.
展开
-
simple line chart , scatter diagram and RandomWalk
1,simple line chartimport matplotlib.pyplot as pltinputvalues=[1,2,3,4,5] squares=[1,4,9,16,25]#correct the value plt.plot(inputvalues,squares,linewidth = 5)#plt.plot(squares,linewidth = 5) default val原创 2017-08-05 11:28:38 · 585 阅读 · 0 评论 -
process csv in matplotlib
import csv from matplotlib import pyplot as plt from datetime import datetimefilename = 'death_valley_2014.csv' with open(filename) as f: reader = csv.reader(f) header_row = next(reader) dat原创 2017-08-13 22:59:53 · 458 阅读 · 0 评论