Skip to content

Commit

Permalink
Use different markers for potentiometric and time constant-based sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
tryuan99 committed Aug 5, 2024
1 parent 747b81d commit f28c21e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions utils/plotter/live_plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,15 @@ def __init__(self,
for i in range(num_traces):
args = {
"color": f"C{i}",
"marker": "^",
"label": f"Trace {i + 1}",
}
if secindices is None or i not in secindices:
trace, = self.ax.plot(self.x, self.y[:, i], **args)
trace, = self.ax.plot(self.x, self.y[:, i], marker="^", **args)
else:
trace, = self.secax.plot(self.x, self.y[:, i], **args)
trace, = self.secax.plot(self.x,
self.y[:, i],
marker="s",
**args)
self.traces.append(trace)
self.ax.legend(handles=self.traces)

Expand Down

0 comments on commit f28c21e

Please sign in to comment.