Activate grid in plots.
Use numpy's cumsum method.
Fix the messed up sides of the plot in logarithmic mode.
Move labels for plots.
Remove exit code scatter plot.
Give time on xaxis in hours and minutes of the day.