Customizing colorbar border color on matplotlib

后端 未结 2 1876
逝去的感伤
逝去的感伤 2021-02-20 12:10

how can I change the colorbar borders so that they are white and not black (externals border and between each segment)?

For example:

x=randint(100, size=         


        
2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-20 13:12

    As PiQuer mentioned:

    cb.outline.set_edgecolor('white')
    

    works nowadays

提交回复
热议问题