mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-29 06:50:59 +00:00
tracers: queue_levels.py: cycle colors
Fix crash when drawing more dataset than the number of colors.
This commit is contained in:
parent
33e601d33e
commit
2a54d57968
1 changed files with 2 additions and 0 deletions
|
@ -91,6 +91,8 @@ if num_plots > 2:
|
||||||
patches = []
|
patches = []
|
||||||
|
|
||||||
for (i, (queue, values)) in enumerate(queues.items()):
|
for (i, (queue, values)) in enumerate(queues.items()):
|
||||||
|
# cycle colors
|
||||||
|
i = i % len(colors)
|
||||||
axis = 0
|
axis = 0
|
||||||
|
|
||||||
if args.buffers:
|
if args.buffers:
|
||||||
|
|
Loading…
Reference in a new issue