You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The output figure file is strange: there is a lot of blank area on the output figure. #12376
You will need to provide more code than just a single final line for us to be able to say anything.
Thank you very much. I found a solution just now: just change the code from "plt.savefig('Photo.png', dpi=600, bbox_inches='tight')" to "plt.savefig('Photo.png', dpi=600)", and now the output figure is normal.
But I have no idea why aftering deleting the code "bbox_inches='tight'" and the output figure is normal.
The whloe codes are show as below:
Is there any chance you could provide a complete, minimal, self contained example that we can run to try and reproduce the issue? Otherwise it is hard to see what is going on to cause the issue.
Activity
geatpy-dev commentedon Oct 3, 2018
The output figure is normal if I used matplotlib v2.2.3, but having problem in v3.0.0, please help me, thanks!
QuLogic commentedon Oct 3, 2018
You will need to provide more code than just a single final line for us to be able to say anything.
geatpy-dev commentedon Oct 3, 2018
Thank you very much. I found a solution just now: just change the code from "plt.savefig('Photo.png', dpi=600, bbox_inches='tight')" to "plt.savefig('Photo.png', dpi=600)", and now the output figure is normal.

But I have no idea why aftering deleting the code "bbox_inches='tight'" and the output figure is normal.

The whloe codes are show as below:
Please help me, Thank you!
dstansby commentedon Oct 3, 2018
Is there any chance you could provide a complete, minimal, self contained example that we can run to try and reproduce the issue? Otherwise it is hard to see what is going on to cause the issue.
jklymak commentedon Oct 3, 2018
This is almost certainly a duplicate of #12239 and closed by #12241.
Please feel free to recommend if this is not the case.