matplotlib border width

前端 未结 2 1911
故里飘歌
故里飘歌 2020-12-24 12:19

I use matplotlib 0.99.

I am not able to change width of border of subplot, how can I do it?

Code is as follows:

fig = plt.figur         


        
2条回答
  •  醉梦人生
    2020-12-24 13:13

    You want to adjust the border line size? You need to use ax.spines[side].set_linewidth(size).

    So something like:

    [i.set_linewidth(0.1) for i in ax.spines.itervalues()]
    

提交回复
热议问题