一.画布与子图 1.实例 %matplotlib auto fig = plt.figure() ax = fig.add_subplot(2,2,1) ax2 = fig.add_subplot(2,2,2) ax.plot(1,3,7) ax.plot(2,5,8) plt.show 2.总结 二.直方图 %matplotlib inline data = [32,48,21,100] labels = ['Jan','feb','Mar','Apr'] plt.bar(np.arange(…