Pillow?????????????????????????????????
???????????????????????????????????????????????????Python??????matplotlib????????????????????????????????????????????????????????????????????????????????????
import numpy as np
import matplotlib.pyplot as plt
# ???????????????????????????????????????????????????
data = np.random.rand(10, 10)
# ????????????
plt.imshow(data, cmap='hot', interpolation='nearest')
plt.colorbar() # ???????????????
plt.show()
?????????????????????????????????????????????10x10??????????????????????????????????????????????????????imshow()
????????????????????????????????????????????????cmap='hot'
???????????????????????????????????????interpolation='nearest'
???????????????????????????????????????colorbar()
????????????????????????
???????????????????????????????????????????????????????????????????????????????????????
相关问答