plt.imshow(
X,
cmap=None,
norm=None,
aspect=None,
interpolation=None,
alpha=None,
vmin=None,
vmax=None,
origin=None,
extent=None,
shape=None,
filternorm=1,
filterrad=4.0,
imlim=None,
resample=None,
url=None,
*,
data=None,
**kwargs,
)
图像数据。支持的数组形状是:
image.cmap
。import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import numpy as np
img=mpimg.imread(‘2019062107.png‘)
imgplot = plt.imshow(img)
plt.imshow(img[:,:,0], cmap="hot")
plt.imshow(img, interpolation="bicubic")
原文:https://www.jianshu.com/p/694afb0db7d5
原文:https://www.cnblogs.com/cheflone/p/13159330.html