I am plotting an image in matplotlib, and it keeps giving me some padding. This is what I have tried:
def field_plot(): x = [i[0] for i in path] y = [i[1
Just add plt.tight_layout() before plt.savefig() !!
plt.tight_layout()
plt.savefig()
plt.figure(figsize=(16, 10)) # ... Doing Something ... plt.tight_layout() plt.savefig('wethers.png') plt.show()