📜  pyplot 不显示轴 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:05.731000             🧑  作者: Mango

代码示例2
from numpy import random
import matplotlib.pyplot as plt

data = random.random((5,5))
img = plt.imshow(data, interpolation='nearest')
img.set_cmap('hot')
plt.axis('off')
plt.savefig("test.png", bbox_inches='tight')