1、最简单的图:代码:[python] view plain copy print?!/usr/bin/env python import matplotlib.pyplot as plt plt.plot([10, 20, 30])plt.xlabel('tiems')plt.ylabel('numbers')plt.show()
如何用python matplotlab 画出一个分段函数
几个绘图的例子,来自API手册:
1、最简单的图:
代码:
[python] view plain copy print?
#!/usr/bin/env python
import matplotlib.pyplot as plt
plt.plot([10, 20, 30])
plt.xlabel('tiems')
plt.ylabel('numbers')
plt.show()2016-04-28