Save plot as pdf with tight borders in Python

preview_player
Показать описание
This video explains how to save and export Python plots as pdf with tight borders. The default option of the graph output as pdf is with thick white borders around the figure. If you want to use the figure in Latex (Overleaf) you want to avoid such thick borders because then the plot is smaller than necessary. This short tutorial shows the export option for tight borders with the following pdf export option: bbox_inches = 'tight'
Рекомендации по теме