why does my colorbar have lines in it?

前端 未结 7 544
清歌不尽
清歌不尽 2020-12-03 02:25

Edit: Since this seems to be a popular post, here\'s the solution that seems to be working well for me. Thanks @gazzar and @mfra.

cbar.solid         


        
7条回答
  •  囚心锁ツ
    2020-12-03 03:16

    The following can be another solution even if it is not elegant.

    In [1]: children = cbar.ax.get_children()
    In [2]: children
    Out[2]:
    [,
     ,
     ,
     ,
     ,
     ,
     ,
     ,
     ,
     ,
     ,
     ,
     ,
     ]
    In [3]: obj = children[1]  # Get the LineCollection object
    In [4]: obj.set_linewidth(0)
    

提交回复
热议问题