几个绘图的例子,来自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()