python保存图片与页面中显示图片不同

用python的plt.imshow绘制热图后用plt.savefig保存得到的图片与直接在jupyter notebook中显示的图片不一致是怎么回事呢?

import matplotlib.pyplot as plt
plt.figure(figsize=(10,8)) #定义图片大小
plt.imshow(data,aspect='auto',extent = [ -0.5, 0.5 ,27.5 , 27.8]) #定义坐标轴刻度
plt.xlabel('dw (um)') 
plt.ylabel('frequency (THz)')
plt.colorbar() # 显示颜色标尺
plt.savefig(r"band1.jpg",dpi=1000)
plt.show()

得到在jupyter notebook中显示的图片为:

img

保存在文件夹里的图片为:

img

在之前画过别的图都是可以正常保存和jupyter notebook中显示的图片一致的图像的,但这次就出现了异常情况,除了更改数据以外没有更改任何代码,觉得很奇怪

我想要达到的结果:正常保存和jupyter notebook中显示的图片一致的图像