why does my colorbar have lines in it?

前端 未结 7 519
清歌不尽
清歌不尽 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条回答
  •  -上瘾入骨i
    2020-12-03 02:50

    It looks like your plot uses some transparent (alpha) values. I was having this same problem (semi-transparent plot, but wanted the color bar to be solid), and this question and answer fixed it for me! For reference:

    cbar.set_alpha(1)
    cbar.draw_all()
    

提交回复
热议问题