From 0da6202199ceb03d6d83042695c53b7c8b2a7f04 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 23 Jan 2019 10:33:34 +0100 Subject: DPDCE: improve plot axis ranges --- python/dpd/ExtractStatistic.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python/dpd') 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 = [] -- cgit v1.2.3