Skip to content

Instantly share code, notes, and snippets.

@ilyasustun
Created May 18, 2019 22:04
Show Gist options
  • Save ilyasustun/1fd83d2ea9e27a22040fa4d752b128d4 to your computer and use it in GitHub Desktop.
Save ilyasustun/1fd83d2ea9e27a22040fa4d752b128d4 to your computer and use it in GitHub Desktop.
https://matplotlib.org/users/customizing.html
# matplotlib.rcParams
- dictionary-like
- is global to the matplotlib package
# Modify directly each parameter:
import matplotlib as mpl
mpl.rcParams['lines.linewidth'] = 2
mpl.rcParams['lines.color'] = 'r'
# Modify multiple settings in a single group at once:
import matplotlib as mpl
mpl.rc('lines', linewidth=2, color='r')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment