runviewer feature: non-linear time

Skip to first unread message

Alexander Chuang

Jun 24, 2022, 2:59:44 PMJun 24
to the labscript suite
I am porting the control of an experiment to labscript, from a GUI based control software. In the process of learning to write and debugging new scripts, runviewer has been an extremely useful tool to catch my mistakes!

While browsing the runviewer github repo, I stumbled upon traces which have a non-linear time axis from an issue originating from Jan Werkmann's report: 


This non real-time plotting of the traces seems quite sensible in that each logical portion of the experiment sequence gets roughly the same visual representation. As I understand, the real-time visualization can be dominated by long, slow ramps (e.g. forced evaporations), while the "science" portion of the experiment remains hidden behind multiple zooms. 

Is there an official feature which allows me to visualize experiments as in the attached photo, or do folks have suggestions on how I might better use runviewer? If not, I would be happy to contribute to runviewer, and if it's appropriate, I can move this conversation to the github issue tracker instead.

Chris Billington

Jun 25, 2022, 3:44:12 AMJun 25
Hi Alex,

Yes, this feature exists officially. To use it, you can add "time markers" in your experiment script with the add_time_marker() function:

This labels points in time that should be used by runviewer to make a nonlinear time axis. Runviewer will allocate an equal amount of space on its y axis to the time in between each pair of adjacent time markers. In runviewer, you'll want to click the "space markers evenly" button in the toolbar above the plots.



You received this message because you are subscribed to the Google Groups "the labscript suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web, visit

Jun 25, 2022, 6:58:11 PMJun 25
to the labscript suite
TIL runviewer markers can do nonlinear time.

Alex, if you are still interested in contributing, it appears that an update to the runviewer documentation is in order. Something very brief and simple about setting up markers correctly (with a cool looking screenshot and a cross-link to the docs page Chris posted) would certainly be appreciated.


Alexander Chuang

Jun 27, 2022, 11:40:59 AMJun 27
to the labscript suite
Hi Chris,

Thanks for the pointer, this is exactly what I was looking for!


PS David, I'll be playing with this feature a bit and can definitely look into adding to the docs.

Reply all
Reply to author
0 new messages