diff options
author | Nicolas Tobler <nicolas.tobler@ost.ch> | 2022-08-20 16:14:55 +0200 |
---|---|---|
committer | Nicolas Tobler <nicolas.tobler@ost.ch> | 2022-08-20 16:14:55 +0200 |
commit | c2dc01cbbb34c70ae63fc97dd101dc6e6c3a23df (patch) | |
tree | 0e4c4ccfe7bfa6941f6662c9e7b6ad36319179e9 /buch/papers/ellfilter/python/elliptic2.py | |
parent | Corrections (diff) | |
download | SeminarSpezielleFunktionen-c2dc01cbbb34c70ae63fc97dd101dc6e6c3a23df.tar.gz SeminarSpezielleFunktionen-c2dc01cbbb34c70ae63fc97dd101dc6e6c3a23df.zip |
corrections
Diffstat (limited to '')
-rw-r--r-- | buch/papers/ellfilter/python/elliptic2.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/buch/papers/ellfilter/python/elliptic2.py b/buch/papers/ellfilter/python/elliptic2.py index 20a7428..6f03ecf 100644 --- a/buch/papers/ellfilter/python/elliptic2.py +++ b/buch/papers/ellfilter/python/elliptic2.py @@ -80,12 +80,12 @@ axs[0].add_patch(Rectangle( )) zeros = [0,0.87,0.995] -poles = [1.01,1.155] +poles = [1.01,1.155, 2.05] import matplotlib.transforms axs[0].plot( # mark errors as vertical bars zeros, - np.zeros_like(zeros), + np.zeros_like(zeros)-0.075, "o", mfc='none', color='black', @@ -93,10 +93,11 @@ axs[0].plot( # mark errors as vertical bars axs[0].transData, axs[0].transAxes, ), + clip_on=False, ) axs[0].plot( # mark errors as vertical bars poles, - np.ones_like(poles), + np.ones_like(poles)+0.075, "x", mfc='none', color='black', @@ -104,6 +105,7 @@ axs[0].plot( # mark errors as vertical bars axs[0].transData, axs[0].transAxes, ), + clip_on=False, ) for mode, c in enumerate(["green", "orange", "red"]): @@ -135,11 +137,13 @@ axs[1].add_patch(Rectangle( axs[0].set_xlim([0,2]) axs[0].set_ylim([1e-4,1e6]) +axs[0].tick_params(bottom = False) axs[0].grid() -axs[0].set_ylabel("$F^2_N(w)$") +axs[0].set_ylabel("$|F_N(w)|^2$") axs[1].grid() axs[1].set_ylim([0,1]) axs[1].set_ylabel("$|H(w)|$") +axs[1].set_xlabel("$w$") plt.tight_layout() plt.savefig("elliptic.pgf") plt.show() |