import matplotlib.pyplot as plt # -*- coding: utf-8 -*- plt.plot([2,0,5,8]) fig = plt.figure() plt.show() 显示图片如下: