Increase resolution with word-cloud and remove empty border

后端 未结 4 414
北海茫月
北海茫月 2020-12-23 14:06

I am using word cloud with some txt files. How do I change this example if I wanted to 1) increase resolution and 2) remove empty border.

#!/usr/bin/env pyt         


        
4条回答
  •  时光说笑
    2020-12-23 14:54

    It is very simple, plt.tight_layout(pad=0) does the job, reduces the space in the background, removing the excess padding.

提交回复
热议问题