diff --git a/power_plot.py b/power_plot.py index 4de9c2db2731a0b5dd8777f5ba32940202d58695..2f54ddcf3310bf73952c2330b0ab3311ce830184 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):