diff options
author | Guillaume Desmottes <guillaume.desmottes@onestream.live> | 2022-08-09 14:13:14 +0300 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@onestream.live> | 2022-08-09 14:13:14 +0300 |
commit | 7eea27aefc276f99906e57f6baff393d5f72fc5a (patch) | |
tree | cc602b19813d91b50600784881317b0549fd533f /utils/tracers | |
parent | d240bbc4e24d07dac1551be292e5e75794d00096 (diff) |
tracers: buffer_lateness.py: cycle colors
Fix crash when drawing more dataset than the number of colors.
Fix #221
Diffstat (limited to 'utils/tracers')
-rw-r--r-- | utils/tracers/scripts/buffer_lateness.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/tracers/scripts/buffer_lateness.py b/utils/tracers/scripts/buffer_lateness.py index f5e17f5a..a5ca047b 100644 --- a/utils/tracers/scripts/buffer_lateness.py +++ b/utils/tracers/scripts/buffer_lateness.py @@ -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']], |