updated plot function for the plot at different time sections of a day.