Matplotlib with annotation cut off from the saved figure

前端 未结 1 418
说谎
说谎 2020-12-30 23:06

I\'m using matplotlib to draw something figure while using annotations. The problem I experienced is that the annotation (which is outside the plotting area) is cut off from

相关标签:
1条回答
  • 2020-12-30 23:49

    Save figure with the bbox_inches argument

    plt.savefig('sample.png', bbox_inches="tight")
    
    0 讨论(0)
提交回复
热议问题