Saving Matplotlib graphs to image as full screen

后端 未结 5 2071
清酒与你
清酒与你 2020-12-01 03:54

I\'m building a small graphing utility using Pandas and MatPlotLib to parse data and output graphs from a machine at work.

When I output the graph using

<         


        
5条回答
  •  独厮守ぢ
    2020-12-01 04:14

    As one more option, I think it is also worth looking into

    plt.savefig('filename.png', bbox_inches='tight')
    

    This is especially useful if you're doing subplots that has axis labels which look cluttered.

提交回复
热议问题