Publication ready plots in python (physics)
Can be loaded as simplte as
- Computer modern style
plt.rcdefaults() # reset to default
plt.style.use('https://raw.githubusercontent.com/toftul/plt-styles-phys/main/phys-plots-cm.mplstyle')
- Improved sans style
plt.rcdefaults() # reset to default
plt.style.use('https://raw.githubusercontent.com/toftul/plt-styles-phys/main/phys-plots-sans.mplstyle')
Or you are free to download these style files, change and use as
plt.style.use('<FILENAME>.mplstyle')
More to look at:
- https://matplotlib.org/stable/tutorials/introductory/customizing.html
- https://github.com/venkatesannaveen/python-science-tutorial
plt.rcdefaults()
plt.rcdefaults() # reset to default
plt.style.use('https://raw.githubusercontent.com/toftul/plt-styles-phys/main/phys-plots-cm.mplstyle')
plt.rcdefaults() # reset to default
plt.style.use('https://raw.githubusercontent.com/toftul/plt-styles-phys/main/phys-plots-sans.mplstyle')