mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-29 06:50:59 +00:00
tracers: buffer_lateness.py: cycle colors
Fix crash when drawing more dataset than the number of colors. Fix #221
This commit is contained in:
parent
d240bbc4e2
commit
7eea27aefc
1 changed files with 3 additions and 0 deletions
|
@ -58,6 +58,9 @@ ax1.set_ylabel("time (s)")
|
||||||
ax1.tick_params(axis='y')
|
ax1.tick_params(axis='y')
|
||||||
|
|
||||||
for (i, (pad, values)) in enumerate(pads.items()):
|
for (i, (pad, values)) in enumerate(pads.items()):
|
||||||
|
# cycle colors
|
||||||
|
i = i % len(colors)
|
||||||
|
|
||||||
ax1.plot(
|
ax1.plot(
|
||||||
[x[0] for x in values['lateness']],
|
[x[0] for x in values['lateness']],
|
||||||
[x[1] for x in values['lateness']],
|
[x[1] for x in values['lateness']],
|
||||||
|
|
Loading…
Reference in a new issue