Remova a borda branca Matplotlib
plt.savefig("test.png",bbox_inches='tight')
Manuel Colavincenzo
plt.savefig("test.png",bbox_inches='tight')