Instantly share code, notes, and snippets.

Embed
What would you like to do?
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