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': 14})
14import matplotlib.pyplot
as plt
16f, ax = plt.subplots(1,2, figsize=(12,5), dpi=150)
17plt.subplots_adjust(left=0.08, right=0.99, bottom=0.11, top=0.98, wspace=0.3, hspace=0.4)
20Q = np.linspace(Qmin, Qmax, 100)
23q = (qmax - qmin) / (1 + np.exp(-Q)) + qmin
26ax[0].set_xlabel(
r"$q_{x}(\textsf{model})$", fontsize=16)
27ax[0].set_ylabel(
r"$Q_{x}(\textsf{engine})$", fontsize=16)
28ax[0].grid(linewidth=0.5, linestyle=
':')
32q = qmin * np.exp((np.log(qmax) - np.log(qmin)) / (1 + np.exp(-Q)))
33ax[1].set_xscale(
"log")
34ax[1].xaxis.set_major_formatter(matplotlib.ticker.FuncFormatter(
lambda f, _:
'{:.16g}'.format(f)))
37ax[1].set_xlabel(
r"$q_\textsf{aspect}(\textsf{model})$", fontsize=16)
38ax[1].set_ylabel(
r"$Q_\textsf{aspect}(\textsf{engine})$", fontsize=16)
39ax[1].grid(linewidth=0.5, linestyle=
':')
40plt.savefig(
"rangetypes.svg")
41plt.savefig(
"rangetypes.pdf")