Almost certainly broke everything again. Trying to break the initialisation function down into seperate methods that can be called both for the time plot and the other plots