tracers: buffer_lateness.py: cycle colors

Fix crash when drawing more dataset than the number of colors.

Fix #221
This commit is contained in:
Guillaume Desmottes 2022-08-09 13:13:14 +02:00
parent d240bbc4e2
commit 7eea27aefc

View file

@ -58,6 +58,9 @@ ax1.set_ylabel("time (s)")
ax1.tick_params(axis='y')
for (i, (pad, values)) in enumerate(pads.items()):
# cycle colors
i = i % len(colors)
ax1.plot(
[x[0] for x in values['lateness']],
[x[1] for x in values['lateness']],