How to hide axes in matplotlib.pyplot
Question:
I put the image in a NumPy array, and draw it with the following code. How can I tell the program not to draw the axes, like (0, 100, 200...)
import matplotlib.pyplot as plt
plt.figure()
plt.imshow(output_ndarray)
plt.savefig(output_png)
Answers:
plt.xticks([])
plt.yticks([])
I put the image in a NumPy array, and draw it with the following code. How can I tell the program not to draw the axes, like (0, 100, 200...)
import matplotlib.pyplot as plt
plt.figure()
plt.imshow(output_ndarray)
plt.savefig(output_png)
plt.xticks([])
plt.yticks([])