Skip to content
Snippets Groups Projects
Commit 5855f67d authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema
Browse files

Update legend, labels

parent faa4516e
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment