Clean up the oscilloscope visualizer code