9matplotlib.rcParams[
'text.usetex'] =
True
10matplotlib.rcParams[
'text.latex.preamble'] = [
r"\usepackage{amsmath}",
r"\usepackage{sansmath}",
r"\sansmath"]
11matplotlib.rcParams[
'font.family'] = [
'sans-serif']
12matplotlib.rcParams.update({
'font.size': 20})
14import matplotlib.pyplot
as plt
17f, ax = plt.subplots(1,1, figsize=(12,9), dpi=150)
18plt.subplots_adjust(left=0.08, right=0.99, bottom=0.11, top=0.98, wspace=0.3, hspace=0.4)
22x = np.linspace(xmin, xmax, npoints)
25y = np.exp(-s2*s2 / 2.0)
26norm = sum(y) * (xmax - xmin) / npoints
29ax.plot(x,y,linewidth=3)
30ax.set_xlabel(
"Sérsic index", fontsize=24)
31ax.set_ylabel(
"prior", fontsize=24)
32ax.grid(linewidth=0.5, linestyle=
':')
33plt.savefig(
"sersicprior.svg")
34plt.savefig(
"sersicprior.pdf")