How do I extend the margin at the bottom of a figure in Matplotlib?

前端 未结 4 1883
再見小時候
再見小時候 2020-12-29 19:00

The following screenshot shows my x-axis.

\"enter

I added some labels and rot

4条回答
  •  长情又很酷
    2020-12-29 19:54

    fig.savefig('name.png', bbox_inches='tight')
    

    works best for me, since it doesn't reduce the plot size compared to

    fig.tight_layout()
    

提交回复
热议问题