finished implementing 1D spectrum plotting in canvas