Skip to content

Instantly share code, notes, and snippets.

@astro313
Last active August 24, 2018 18:11
Show Gist options
  • Save astro313/2f7554e92884e138dcb0daba5c1241a8 to your computer and use it in GitHub Desktop.
Save astro313/2f7554e92884e138dcb0daba5c1241a8 to your computer and use it in GitHub Desktop.
list of colors and symbols for MPL
import matplotlib.cm as cm
max_color = 15.0 #Set maximum color index
color_gradient = cm.jet(arange(max_color)/max_color) #Set up color list from a canned color bar found in python
color_list = ['black','gray','darkorange','blue','red','green','orange','magenta','darkgoldenrod','purple','deeppink','darkolivegreen', 'cyan','yellow','beige']
symbol_list = ['o','v','8','x','s','*','h','D','^','8','1','o','o','o','o','o','o','o'] #Symbol list for rotation ladders on black and white Boltzmann plot
#for c in matplotlib.colors.cnames:
#color_list.append(c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment