Skip to content

Instantly share code, notes, and snippets.

@AayushSameerShah
Created August 12, 2021 05:55
Show Gist options
  • Save AayushSameerShah/0a2ade4ba3deb5cade7ff9226d6336e4 to your computer and use it in GitHub Desktop.
Save AayushSameerShah/0a2ade4ba3deb5cade7ff9226d6336e4 to your computer and use it in GitHub Desktop.
This will generate the colors for plotly (or for others as well)
# Number of elements (total colors to generate in short)
N = 30
c = ['hsl('+str(h)+',50%'+',50%)' for h in np.linspace(0, 360, N)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment