remove axis in a python plot
plt.axis('off')
Source: stackoverflow.com
matplotlib remove y axis label
ax.axes.xaxis.set_ticklabels([])
Source: www.tutorialspoint.com
plt off axis
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: stackoverflow.com
how to remove axis in matplotlib
for i in range(len(COLUMNS)): for j in range(len(COLUMNS)): # If on the upper triangle if i < j: axes[i, j].remove() # See the chart now fig