【发布时间】:2014-08-12 20:18:25
【问题描述】:
我想绘制多个基准,每个基准都在一个单独的图上。这是我的代码:
for benchmark in benchmarks:
readFile = open(benchmark+'.txt')
text = readFile.read()
x = re.findall(r"(\d+)",text)
x = [int(i) for i in liveRatio]
pylab.plot(x)
F = pylab.gcf()
F.savefig('benchmark',dpi=200)
代码将所有数据绘制在同一个图上。但是,我想要为每个基准单独绘制单独的图。
【问题讨论】:
标签: python matplotlib plot graphing