使用了一段时间的matplotlib和seaborn,给我的感觉还是matplotlib的个性化更好用,各种东西都可以定制。而seaborn的好处是方便快捷,风格统一,配色好看。
所以我把seaborn的配色扒了下来自己用,每组十种都是按同样顺序的。
Seaborn 颜色预设方案color_pastel = [u'#a1c9f4', u'#ffb482', u'#8de5a1', u'#ff9f9b', u'#d0bbff', u'#debb9b', u'#fab0e4', u'#cfcfcf', u'#fffea3', u'#b9f2f0']
color_muted = [u'#4878d0', u'#ee854a', u'#6acc64', u'#d65f5f', u'#956cb4', u'#8c613c', u'#dc7ec0', u'#797979', u'#d5bb67', u'#82c6e2']
color_deep = [u'#4c72b0', u'#dd8452', u'#55a868', u'#c44e52', u'#8172b3', u'#937860', u'#da8bc3', u'#8c8c8c', u'#ccb974', u'#64b5cd']
color_bright = [u'#023eff', u'#ff7c00', u'#1ac938', u'#e8000b', u'#8b2be2', u'#9f4800', u'#f14cc1', u'#a3a3a3', u'#ffc400', u'#00d7ff']
color_colorblind = [u'#0173b2', u'#de8f05', u'#029e73', u'#d55e00', u'#cc78bc', u'#ca9161', u'#fbafe4', u'#949494', u'#ece133', u'#56b4e9']
color_dark = [u'#001c7f', u'#b1400d', u'#12711c', u'#8c0800', u'#591e71', u'#592f0d', u'#a23582', u'#3c3c3c', u'#b8850a', u'#006374']
color_default = color_deep
网友评论