Skip to content

Instantly share code, notes, and snippets.

@satomacoto
Created September 20, 2018 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save satomacoto/991f65018d22ee3eb4ae609310a9fb10 to your computer and use it in GitHub Desktop.
Save satomacoto/991f65018d22ee3eb4ae609310a9fb10 to your computer and use it in GitHub Desktop.
import seaborn as sns
colorDict = {}
palette = "hls"
colorPalette = sns.color_palette(palette, len(allLabels))
for i, label in enumerate(allLabels):
colorDict[label] = colorPalette[i]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment