plots using time as x axis