figure
hold on
for i = 1:length(profile)
  if(i == 1)
        startDT = 3;
    else
        startDT = 2;
    end

    plot(profile(i).pumpJoulesDT(startDT:end) - profile(i).pumpJoulesDT(startDT), profile(i).pumpJoules(startDT:end))
    plot(profile(i).hotelJoulesDT(startDT:end) - profile(i).hotelJoulesDT(startDT), profile(i).hotelJoules(startDT:end))
    
    minIndex = min(length(profile(i).pumpJoulesDT), length(profile(i).hotelJoulesDT));
    plot(profile(i).pumpJoulesDT(startDT:minIndex) - profile(i).pumpJoulesDT(startDT), profile(i).pumpJoules(startDT:minIndex) + profile(i).hotelJoules(startDT:minIndex))
end