plot and record various data