Skip to content

Instantly share code, notes, and snippets.

@philippemiron
Created January 28, 2022 19:09
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 philippemiron/baf341a6c17b8e87edbeff2c39eabb38 to your computer and use it in GitHub Desktop.
Save philippemiron/baf341a6c17b8e87edbeff2c39eabb38 to your computer and use it in GitHub Desktop.
import matplotlib
import numpy as np
colors = [[123, 78, 41],
[134, 77, 37],
[124, 80, 38],
[136, 111, 68],
[164, 123, 81],
[200, 175, 142],
[143, 161, 167],
[179, 200, 205],
[162, 195, 205],
[153, 207, 231],
[199, 235, 251],
[204, 189, 182],
[209, 146, 108],
[215, 128, 91],
[187, 75, 37],
[152, 48, 24],
[155, 51, 26],
[138, 41, 21],
[146, 38, 20],
[95, 18, 14],
[64, 34, 30]]
colors = np.array(colors)/255
matplotlib.colors.ListedColormap(colors)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment