Skip to content

Commit f4ed8a3

Browse files
authored
special case for plot_prune_fifo()
1 parent cda1967 commit f4ed8a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apstools/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,9 @@ def plot_prune_fifo(bec, n, y, x):
10221022
lines = [
10231023
tr
10241024
for tr in lp.ax.lines
1025-
if len(tr._x) != 2 or len(tr._y) != 2 or tr._x[0] != tr._x[1]
1025+
if len(tr._x) != 2
1026+
or len(tr._y) != 2
1027+
or (len(tr._x) == 2 and tr._x[0] != tr._x[1])
10261028
]
10271029
if len(lines) > n:
10281030
logging.debug(f"limiting LivePlot({y.name}) to {n} traces")

0 commit comments

Comments
 (0)