fig.set_size_inches(size[0] / 100.0, size[1] / 100.0) # 输出width*height像素
plt.gca().xaxis.set_major_locator(plt.NullLocator())
plt.gca().yaxis.set_major_locator(plt.NullLocator())
plt.subplots_adjust(top=1, bottom=0, left=0, right=1, hspace=0, wspace=0)
plt.margins(0, 0)
plt.imshow(data)
fig.savefig(fig_name,dpi=100)
fig.show()