def savePlot(points, outpath):
plt.figure()
fig, ax = plt.subplots()
# this locator puts ticks at regular intervals
loc = ticker.MultipleLocator(base=0.2)
ax.yaxis.set_major_locator(loc)
plt.plot(points)
plt.savefig(outpath)
plt.close('all')
######################################################################
# This is a helper function to print time elapsed and estimated time
# remaining given the current time and progress %.
#
评论列表
文章目录