J. Fernando Sánchez 9 years ago
commit 04eaafc293

@ -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