From 7a8795dcb555a551fd09a3c9b15002675e30891f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20M=C3=BCller?= Date: Fri, 15 Jul 2022 16:24:48 +0200 Subject: Change image scripts to PDF format, update Makefile, add complex plane plot --- buch/papers/laguerre/scripts/laguerre_poly.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'buch/papers/laguerre/scripts/laguerre_poly.py') diff --git a/buch/papers/laguerre/scripts/laguerre_poly.py b/buch/papers/laguerre/scripts/laguerre_poly.py index 954a0b1..9700ab4 100644 --- a/buch/papers/laguerre/scripts/laguerre_poly.py +++ b/buch/papers/laguerre/scripts/laguerre_poly.py @@ -10,8 +10,17 @@ if __name__ == "__main__": import os from pathlib import Path + import matplotlib as mpl import matplotlib.pyplot as plt import scipy.special as ss + + mpl.rcParams.update( + { + "mathtext.fontset": "stix", + "font.family": "serif", + "font.serif": "TeX Gyre Termes", + } + ) N = 1000 step = 5 @@ -34,8 +43,8 @@ if __name__ == "__main__": ax.set_xlabel(r"$x$", x=1.0, labelpad=-10, rotation=0, fontsize="large") ylim = 13 - ax.set_yticks(np.arange(-ylim, ylim), minor=True) - ax.set_yticks(np.arange(-step * (ylim // step), ylim, step)) + ax.set_yticks(get_ticks(-ylim, ylim), minor=True) + ax.set_yticks(get_ticks(-step * (ylim // step), ylim, step)) ax.set_ylim(-ylim, ylim) ax.set_ylabel(r"$y$", y=0.95, labelpad=-18, rotation=0, fontsize="large") @@ -94,5 +103,6 @@ if __name__ == "__main__": clip_on=False, ) - fig.savefig(f"{img_path}/laguerre_poly.pgf") + # fig.savefig(f"{img_path}/laguerre_poly.pgf") + fig.savefig(f"{img_path}/laguerre_poly.pdf") # plt.show() -- cgit v1.2.1