From 5855f67d5fb0e36dee0f77a97cc67171f6680bd7 Mon Sep 17 00:00:00 2001 From: Tammo Jan Dijkema <T.J.Dijkema@gmail.com> Date: Wed, 17 Jan 2024 11:54:08 +0100 Subject: [PATCH] Update legend, labels --- power_plot.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/power_plot.py b/power_plot.py index 4de9c2d..2f54ddc 100755 --- a/power_plot.py +++ b/power_plot.py @@ -26,7 +26,6 @@ from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as Navigatio import select -from IPython.display import clear_output import time from datetime import datetime @@ -43,19 +42,17 @@ class PowerPlot: def __init__(self, fig): self.fig = fig self.ax = fig.add_subplot() - self.ax.set_xlabel("time (s)") - self.ax.set_ylabel("power (uncalibrated)") + self.ax.set_xlabel("Time (UTC)") + self.ax.set_ylabel("Frequency") self.ax.xaxis_date() self.min, self.max = None, None self.ax.xaxis.set_major_formatter( FuncFormatter(lambda x, pos: f"{num2date(x):%H:%M}") ) - fig.suptitle(f"Plot title", fontsize=16) + fig.suptitle(f"Maximum frequency", fontsize=16) fig.tight_layout() (self.totalplot,) = self.ax.plot([], [], "-", color="blue") - (self.totalplothighlight,) = self.ax.plot( - [], [], ".", color="red", markersize=10 - ) + (self.totalplothighlight,) = self.ax.plot([], [], ".", color="red", markersize=10) def set_totalplot_values(self, xdata, ydata): -- GitLab