graphAllMetrics.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:PopRank 作者: SanketMore 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号