1
0
mirror of https://github.com/balkian/gists.git synced 2024-11-23 09:52:28 +00:00
gists/Matplotlib tricks/custom_palette.py

4 lines
123 B
Python
Raw Normal View History

2015-11-08 18:19:35 +00:00
from matplotlib.pyplot import cm
color=cm.rainbow(np.linspace(0,1,len(emotions)))
color = dict(zip(emotions, color))
color