# If you saving your images just add, bbox_inches='tight' as below: fig.savefig(filename,dpi=300,bbox_inches='tight')