0. 饼状图
- plt.pie():Python数据可视化:饼状图
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)