mirror of
https://github.com/balkian/gists.git
synced 2024-11-22 01:32:29 +00:00
Add 'repos/e654835d4263378a3ac8/' from commit '04eaafc2934e925053aa449ee77d129d41229a52'
git-subtree-dir: repos/e654835d4263378a3ac8 git-subtree-mainline:710c067e29
git-subtree-split:04eaafc293
This commit is contained in:
commit
d6baea1a6c
4
repos/e654835d4263378a3ac8/custom_palette.py
Normal file
4
repos/e654835d4263378a3ac8/custom_palette.py
Normal file
@ -0,0 +1,4 @@
|
||||
from matplotlib.pyplot import cm
|
||||
color=cm.rainbow(np.linspace(0,1,len(emotions)))
|
||||
color = dict(zip(emotions, color))
|
||||
color
|
5
repos/e654835d4263378a3ac8/customlabels.py
Normal file
5
repos/e654835d4263378a3ac8/customlabels.py
Normal file
@ -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…
Reference in New Issue
Block a user