Record average power from input
set line width correctly, but I don't yet know how to redraw ui views