Question : plt off axis
Answered by : ldy
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')
Source : https://stackoverflow.com/questions/9295026/matplotlib-plots-removing-axis-legends-and-white-spaces | Last Update : Mon, 14 Sep 20