-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
Description
Why don't we replace this function with a custom NuGrid Style sheet so all the plots are by default both consistent and publication ready (There could even be different sheets for posters, presentations, and different journals).
https://matplotlib.org/tutorials/introductory/customizing.html
https://matplotlib.org/api/style_api.html?highlight=style%20use#matplotlib.style.use
Lines 155 to 172 in 629d9ef
| def set_nice_params(): | |
| fsize=18 | |
| params = {'axes.labelsize': fsize, | |
| # 'font.family': 'serif', | |
| 'font.family': 'Times New Roman', | |
| 'figure.facecolor': 'white', | |
| 'text.fontsize': fsize, | |
| 'legend.fontsize': fsize, | |
| 'xtick.labelsize': fsize*0.8, | |
| 'ytick.labelsize': fsize*0.8, | |
| 'ytick.minor.pad': 8, | |
| 'ytick.major.pad': 8, | |
| 'xtick.minor.pad': 8, | |
| 'xtick.major.pad': 8, | |
| 'text.usetex': False, | |
| 'lines.markeredgewidth': 0} | |
| pl.rcParams.update(params) |