function plotPandBP(fullFileName, fileNum, profileStruct, tableData)
       fig = figure('Name',fullFileName,'NumberTitle','off');
%         fig.Units = 'normalized';
%         fig.Position = [figX figY 0.6 0.6];
%         figX = figX + figXIncr;
%         figY = figY + figYIncr;
%         
%         hAx = subplot(3,1,1);
        yyaxis left
        hold on;
        plot(profileStruct(fileNum).hotelEnergyCalcSumDT, profileStruct(fileNum).hotelEnergyCalcSum, 'b-');
        plot(profileStruct(fileNum).pumpEnergyCalcSumDT, profileStruct(fileNum).pumpEnergyCalcSum, 'c-');
        ylabel('EnergyCalcSum (Joules)');
        yyaxis right
        plot(profileStruct(fileNum).pressureDT, profileStruct(fileNum).pressure);
        ylabel('Pressure (dBar)');
        legend('hotel', 'pump', 'pressure');
        grid;
        
        plotStateTransitions(tableData, profileStruct(fileNum).DT);
        
%         if length(glideOnMsgIndexes) > 0
%             plot(glideOntime, glideOnDepth, 'gO')
%             text(glideOntime, glideOnDepth, 'glide on');
%         end
%         glideOnMsgIndexes = [];
%         if length(glideOffMsgIndexes) > 0
%             plot(glideOfftime, glideOffDepth, 'rX')
%             text(glideOfftime, glideOffDepth, 'glide off');
%         end
%         glideOffMsgIndexes = [];
        hold off;
end