import numpy as npimport matplotlib.pyplot as pltarr=np.arange(100).reshape((10,10))plt.close('all')fig=plt.figure(figsize=(5,4))ax=plt.subplot(111)im=ax.imshow(arr,interpolation="none")plt.tight_layout()
本文共 252 字,大约阅读时间需要 1 分钟。
import numpy as npimport matplotlib.pyplot as pltarr=np.arange(100).reshape((10,10))plt.close('all')fig=plt.figure(figsize=(5,4))ax=plt.subplot(111)im=ax.imshow(arr,interpolation="none")plt.tight_layout()
转载于:https://my.oschina.net/u/923087/blog/279061