Skip to content

Instantly share code, notes, and snippets.

@AayushSameerShah
Created May 11, 2021 11:57
Show Gist options
  • Save AayushSameerShah/e07a9da6a4b36e0dfe2de84c71d9e173 to your computer and use it in GitHub Desktop.
Save AayushSameerShah/e07a9da6a4b36e0dfe2de84c71d9e173 to your computer and use it in GitHub Desktop.
Gredient Color in Plot
from matplotlib import cm
color = cm.inferno_r(np.linspace(.4, .8, 18))
plt.plot(color= color)
@AayushSameerShah
Copy link
Author

For unsorted bars, assign colors in this way (my gist): https://gist.github.com/AayushSameerShah/d30093f63364b02edd3991676c35c0f7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment