diff options
author | Nicolas Tobler <nicolas.tobler@ost.ch> | 2022-05-30 00:05:03 +0200 |
---|---|---|
committer | Nicolas Tobler <nicolas.tobler@ost.ch> | 2022-05-30 00:05:03 +0200 |
commit | f4e1f6e84837c77dd49e6ec055efb1b110f7d573 (patch) | |
tree | 09278935a9509cd1d0d08310cfad157f1aaabf3e /buch/papers/ellfilter/python/chebychef.py | |
parent | draft (diff) | |
download | SeminarSpezielleFunktionen-f4e1f6e84837c77dd49e6ec055efb1b110f7d573.tar.gz SeminarSpezielleFunktionen-f4e1f6e84837c77dd49e6ec055efb1b110f7d573.zip |
Added content, presentation
Diffstat (limited to 'buch/papers/ellfilter/python/chebychef.py')
-rw-r--r-- | buch/papers/ellfilter/python/chebychef.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/buch/papers/ellfilter/python/chebychef.py b/buch/papers/ellfilter/python/chebychef.py index a278989..254ad4b 100644 --- a/buch/papers/ellfilter/python/chebychef.py +++ b/buch/papers/ellfilter/python/chebychef.py @@ -35,7 +35,7 @@ plt.show() # %% Cheychev filter F_N plot w = np.linspace(-1.1,1.1, 1000) -plt.figure(figsize=(5.5,2)) +plt.figure(figsize=(5.5,2.5)) for N in [3,6,11]: # F_N = np.cos(N * np.arccos(w)) F_N = scipy.special.eval_chebyt(N, w) @@ -44,9 +44,10 @@ plt.xlim([-1.2,1.2]) plt.ylim([-2,2]) plt.grid() plt.xlabel("$w$") -plt.ylabel("$C_N(w)$") +plt.ylabel("$T_N(w)$") plt.legend() -plt.savefig("F_N_chebychev2.pdf") +plt.tight_layout() +plt.savefig("F_N_chebychev2.pgf") plt.show() # %% Build Chebychev polynomials |