0. 饼状图

1. 三角形

  • 描点连线,起点和终点相同
triangle1 = ((0, sqrt(3)/2), (1, 3*sqrt(3)/2), (2, sqrt(3)/2), (0, sqrt(3)/2))
triangle2 = ((0, sqrt(3)), (1, 0), (2, sqrt(3)), (0, sqrt(3)))
plt.plot([e[0] for e in triangle1], [e[1] for e in triangle1],
         [e[0]for e in triangle2], [e[1] for e in triangle2], 'b', lw=3)



posted on 2016-08-25 16:01  未雨愁眸  阅读(169)  评论(0编辑  收藏  举报