aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-01-23 10:33:34 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-01-23 10:33:34 +0100
commit0da6202199ceb03d6d83042695c53b7c8b2a7f04 (patch)
tree69ac1f30c81ca5b0f3727fc6e00777bea43f7790
parent9fec888d1e5e68600b854408324eef059bbc2b47 (diff)
downloaddabmod-0da6202199ceb03d6d83042695c53b7c8b2a7f04.tar.gz
dabmod-0da6202199ceb03d6d83042695c53b7c8b2a7f04.tar.bz2
dabmod-0da6202199ceb03d6d83042695c53b7c8b2a7f04.zip
DPDCE: improve plot axis ranges
-rw-r--r--python/dpd/ExtractStatistic.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/dpd/ExtractStatistic.py b/python/dpd/ExtractStatistic.py
index 86580d8..3518dba 100644
--- a/python/dpd/ExtractStatistic.py
+++ b/python/dpd/ExtractStatistic.py
@@ -87,8 +87,8 @@ class ExtractStatistic:
ax.set_title("Extracted Statistic {}".format(title))
ax.set_xlabel("TX Amplitude")
ax.set_ylabel("RX Amplitude")
- ax.set_ylim(0, 0.8)
- ax.set_xlim(0, 1.1)
+ ax.set_ylim(0, np.max(self.tx_boundaries)) # we expect a rougly a 1:1 correspondence between x and y
+ ax.set_xlim(0, np.max(self.tx_boundaries))
ax.legend(loc=4)
i_sub += 1
@@ -105,7 +105,7 @@ class ExtractStatistic:
ax.set_xlabel("TX Amplitude")
ax.set_ylabel("Phase Difference")
ax.set_ylim(-60, 60)
- ax.set_xlim(0, 1.1)
+ ax.set_xlim(0, np.max(self.tx_boundaries))
ax.legend(loc=4)
num = []