aboutsummaryrefslogtreecommitdiffstats
path: root/buch/papers/laguerre/scripts/estimates.py
diff options
context:
space:
mode:
authorPatrik Müller <patrik.mueller@ost.ch>2022-07-15 16:24:48 +0200
committerPatrik Müller <patrik.mueller@ost.ch>2022-07-15 16:24:48 +0200
commit7a8795dcb555a551fd09a3c9b15002675e30891f (patch)
tree4913f47695788cc05778a4326ba5ca44b6eb0046 /buch/papers/laguerre/scripts/estimates.py
parentFirst version of section 'Gauss Quadratur', fix to gamma_approx.py when z=0 (diff)
downloadSeminarSpezielleFunktionen-7a8795dcb555a551fd09a3c9b15002675e30891f.tar.gz
SeminarSpezielleFunktionen-7a8795dcb555a551fd09a3c9b15002675e30891f.zip
Change image scripts to PDF format, update Makefile, add complex plane plot
Diffstat (limited to 'buch/papers/laguerre/scripts/estimates.py')
-rw-r--r--buch/papers/laguerre/scripts/estimates.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/buch/papers/laguerre/scripts/estimates.py b/buch/papers/laguerre/scripts/estimates.py
index 207bbd2..21551f3 100644
--- a/buch/papers/laguerre/scripts/estimates.py
+++ b/buch/papers/laguerre/scripts/estimates.py
@@ -1,10 +1,19 @@
if __name__ == "__main__":
+ import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
import gamma_approx as ga
import targets
+ mpl.rcParams.update(
+ {
+ "mathtext.fontset": "stix",
+ "font.family": "serif",
+ "font.serif": "TeX Gyre Termes",
+ }
+ )
+
N = 200
ns = np.arange(2, 13)
step = 1 / (N - 1)
@@ -32,7 +41,8 @@ if __name__ == "__main__":
for ax in axs:
ax.grid(1)
ax.legend()
- fig.savefig(f"{ga.img_path}/estimates.pgf")
+ # fig.savefig(f"{ga.img_path}/estimates.pgf")
+ fig.savefig(f"{ga.img_path}/estimates.pdf")
print(f"Intercept={intercept:.6g}, Bias={bias:.6g}")
predicts = np.ceil(intercept * ns[:, None] + bias - np.real(x))