Skip to content

Replace set_nice_params() function with mathplotlib custom style sheets? #74

@Samuel316

Description

@Samuel316

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

NuGridPy/nugridpy/mesa.py

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)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions