Date: 2024-12-01 12:04:35
Score: 3.5
Natty:
Thanks to RuthC for providing the answer in a comment, the following seems to solve my problem:
fig.savefig('test.pdf', format='pdf',bbox_inches='tight', pad_inches='layout')
https://matplotlib.org/stable/users/prev_whats_new/whats_new_3.8.0.html#pad-inches-layout-for-savefig
Reasons:
- Blacklisted phrase (0.5): Thanks
- Probably link only (1):
- Low length (1):
- Has code block (-0.5):
- Self-answer (0.5):
- Low reputation (1):
Posted by: Simon Schey