Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save brayevalerien/21a86449b6536703dd378374559ee05f to your computer and use it in GitHub Desktop.
Save brayevalerien/21a86449b6536703dd378374559ee05f to your computer and use it in GitHub Desktop.
Publication ready pyplot theme (thanks to @aeturrell)
plot_settings = {'ytick.labelsize': 16,
'xtick.labelsize': 16,
'font.size': 22,
'figure.figsize': (10, 5),
'axes.titlesize': 22,
'axes.labelsize': 18,
'lines.linewidth': 2,
'lines.markersize': 3,
'legend.fontsize': 11,
'mathtext.fontset': 'stix',
'font.family': 'STIXGeneral'}
plt.style.use(plot_settings) # apply defined settings to current pyplot style
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment