Skip to content

Instantly share code, notes, and snippets.

@Perishleaf
Last active January 11, 2020 05:08
Show Gist options
  • Save Perishleaf/a6b9a8e6e417ba43329e7dba84b120ea to your computer and use it in GitHub Desktop.
Save Perishleaf/a6b9a8e6e417ba43329e7dba84b120ea to your computer and use it in GitHub Desktop.
# set up plot style as tron legancy
from matplotlib import cycler
colors = cycler('color',
['#fc280f', '#5fdcff', '#f4ba26', '#85c54c', '#c6d7e0']) # colors for artists will be cycled from this list by default
plt.rc('figure', facecolor='#222222') # facecolor is background colour
plt.rc('axes', facecolor='#222222', edgecolor='#222222',
axisbelow=True, grid=True, prop_cycle=colors) # "axisbelow" set axis ticks and gridlines are below all artists
plt.rc('grid', color='#e3e3e3', linestyle='solid')
plt.rc('xtick', direction='in', color='#e3e3e3')
plt.rc('ytick', direction='in', color='#e3e3e3')
plt.rc('patch', edgecolor='#e3e3e3')
plt.rc('lines', linewidth=1.5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment