How to use viridis in matplotlib 1.4

后端 未结 4 1847
陌清茗
陌清茗 2020-12-31 02:59

I want to use the colormap \"viridis\" (http://bids.github.io/colormap/), and I won\'t be updating to the development version 1.5 quite yet. Thus, I have downloaded c

4条回答
  •  难免孤独
    2020-12-31 03:59

    Download the colormaps.py from here,then:

    import os,sys
    scriptpath = "/Your downloading path/colormap-master/"
    sys.path.append(os.path.abspath(scriptpath))
    import colormaps as cmaps   
    

    Done!

提交回复
热议问题