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