How to add black border to matplotlib 2.0 `ax` object In Python 3?

前端 未结 3 1469
别那么骄傲
别那么骄傲 2021-02-14 14:14

I\'ve been using style sheets in matplotlib lately. I really like how clean the seaborn-white looks and I want to be able to add the border to other s

3条回答
  •  醉梦人生
    2021-02-14 14:44

    Take a look at this. What you're looking for are these two lines:

    ax.patch.set_edgecolor('black')  
    
    ax.patch.set_linewidth('1')  
    

提交回复
热议问题