Skip to content

Instantly share code, notes, and snippets.

@moyocoyani
Last active February 7, 2021 12:05
Show Gist options
  • Select an option

  • Save moyocoyani/0ae1ba1cee7b3cfcc1725ff191d98c2b to your computer and use it in GitHub Desktop.

Select an option

Save moyocoyani/0ae1ba1cee7b3cfcc1725ff191d98c2b to your computer and use it in GitHub Desktop.
How to change the default stylesheet in matplotlib
import matplotlib.pyplot as plt
style_list = ['default', 'classic'] +
sorted(style for style in plt.style.available if style != 'classic')
plt.style.use(style_list[2])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment