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)
You can also use...
plt.axis('off')
plt.xticks([])
plt.yticks([])
http://matplotlib.org/api/pyplot_api.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With