import matplotlib.pyplot as plt

绘制好图像之后,需要使用plt.show()才会显示出图片。