Add 'repos/e654835d4263378a3ac8/' from commit '04eaafc2934e925053aa449ee77d129d41229a52'

git-subtree-dir: repos/e654835d4263378a3ac8
git-subtree-mainline: 710c067e29
git-subtree-split: 04eaafc293
master
J. Fernando Sánchez 3 years ago
commit d6baea1a6c

@ -0,0 +1,4 @@
from matplotlib.pyplot import cm
color=cm.rainbow(np.linspace(0,1,len(emotions)))
color = dict(zip(emotions, color))
color

@ -0,0 +1,5 @@
import matplotlib.patches as mpatches
import matplotlib.pyplot as plt
red_patch = mpatches.Patch(color='red', label='The red data')
plt.legend(handles=[red_patch])
Loading…
Cancel
Save