From 6b13f6da09bef4ec8137c70c6c18d07b6a884bd5 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 25 Jul 2016 20:02:10 +0200 Subject: Add gain to cmdline, update options display, add title with date --- correlate_with_ref.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'correlate_with_ref.py') diff --git a/correlate_with_ref.py b/correlate_with_ref.py index 31e9710..ae783a6 100755 --- a/correlate_with_ref.py +++ b/correlate_with_ref.py @@ -108,7 +108,7 @@ class CIR_Correlate: return cir / channel_power - def plot(self, plot_file): + def plot(self, plot_file, title): num_correlations = int(len(self.channel_out) / T_TF) self.null_symbol_ixs = [] @@ -118,6 +118,7 @@ class CIR_Correlate: for i in range(num_correlations) ]) fig = pp.figure() + fig.suptitle(title) ax1 = fig.add_subplot(211) ax1.plot(cirs.sum(axis=0)) ax2 = fig.add_subplot(212) @@ -150,7 +151,7 @@ if __name__ == "__main__": cir_corr = CIR_Correlate(file_in, file_format) - cir_corr.plot(file_figure) + cir_corr.plot(file_figure, "Correlation") print("Null symbols at:") print(" " + " ".join("{}".format(t_null) -- cgit v1.2.3