draw.py 文件源码

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

项目:uai2017_learning_to_acquire_information 作者: evanthebouncy 项目源码 文件源码
def draw_annotate(x_cords, y_cords, anns, name):
  FIG.clf()
  y = x_cords
  z = y_cords
  n = anns
  fig = FIG
  ax = fig.add_subplot(1,1,1)
  ax.set_xlim([0,L])
  ax.set_ylim([0,L])
  ax.set_ylim(ax.get_ylim()[::-1])
  ax.scatter(z, y)

  for i, txt in enumerate(n):
    ax.annotate(txt, (z[i],y[i]))
  fig.savefig(name)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号