matplotlib border width

前端 未结 2 1912
故里飘歌
故里飘歌 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 12:55

    Maybe this is what you are looking for?

    import matplotlib as mpl

    mpl.rcParams['axes.linewidth'] = 0.1 #set the value globally

    0 讨论(0)
  • 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()]
    
    0 讨论(0)
提交回复
热议问题