The script produces the following image:

The simulation needs to be run with -v 1
in order to obtain the timing.
In order to facilitate future changes, I have moved the labels
outside from analyze_runtime.py
and imported them in both the previous script and mine.