def graphAllMetrics(titles, moduleMeasurements, title):
cmap = plt.get_cmap('gnuplot')
colors = [cmap(i) for i in np.linspace(0, 1, len(titles))]
for i,color in enumerate(colors, start=0):
plt.plot(moduleMeasurements[0],moduleMeasurements[i+1],c=color,label=titles[i],linestyle='-')
plt.xlabel('Time')
plt.ylabel('Score')
plt.title(title)
# TODO:
# Make lines instead of points for legibility
# Add legend
plt.legend(loc='best')
plt.show(1)
评论列表
文章目录