Created
May 11, 2021 11:57
-
-
Save AayushSameerShah/e07a9da6a4b36e0dfe2de84c71d9e173 to your computer and use it in GitHub Desktop.
Gredient Color in Plot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from matplotlib import cm | |
color = cm.inferno_r(np.linspace(.4, .8, 18)) | |
plt.plot(color= color) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For unsorted bars, assign colors in this way (my gist): https://gist.github.com/AayushSameerShah/d30093f63364b02edd3991676c35c0f7