understanding matplotlib set_bad colormap

前端 未结 0 1851
刺人心
刺人心 2020-12-16 18:36

I am running the following code snip:

from matplotlib.colors import ListedColormap

cm = ListedColormap([\'green\',\'red\'])
cm.set_bad(color="black"         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题