function plotStateTransitions(tableData, DT)

%figure(pressureFig);
ylimits = ylim;

textY1 = ylimits(1) + 0.1 * (ylimits(2) - ylimits(1));
textY2 = ylimits(1) + 0.9 * (ylimits(2) - ylimits(1));

indexes = find(strcmp(tableData.state, 'Surface Ops') == 1);
if(~isempty(indexes))
    index = indexes(1);
    plot( [DT(index) DT(index)], [ylimits(1) ylimits(2)], 'g-.');
    text( DT(index), textY1, 'Surface Ops')
end

indexes = find(strcmp(tableData.state, 'AB Dec Buoycy Fast') == 1);
if(~isempty(indexes))
    index = indexes(1);
    plot( [DT(index) DT(index)], [ylimits(1) ylimits(2)], 'g-.');
    text( DT(index), textY2, 'Dec Buoycy')
end

indexes = find(strcmp(tableData.state, 'Descend')== 1);
if(~isempty(indexes))
    index = indexes(1);
    plot( [DT(index) DT(index)], [ylimits(1) ylimits(2)], 'g-.');
    text( DT(index), textY1, 'Descend')
end

indexes = find(strcmp(tableData.state, 'Anchor')== 1);
if(~isempty(indexes))
    index = indexes(1);
    plot( [DT(index) DT(index)], [ylimits(1) ylimits(2)], 'g-.');
    text( DT(index), textY2, 'Anchor')
end

indexes = find(strcmp(tableData.state, 'Park')== 1);
if(~isempty(indexes))
    index = indexes(1);
    plot( [DT(index) DT(index)], [ylimits(1) ylimits(2)], 'g-.');
    text( DT(index), textY1, 'Park')
end

indexes = find(strcmp(tableData.state, 'Start CP Mode')== 1);
if(~isempty(indexes))
    index = indexes(1);
    plot( [DT(index) DT(index)], [ylimits(1) ylimits(2)], 'g-.');
    text( DT(index), textY2, 'Start CP')
end

indexes = find(strcmp(tableData.state, 'DeAnchor')== 1);
if(~isempty(indexes))
    index = indexes(1);
    plot( [DT(index) DT(index)], [ylimits(1) ylimits(2)], 'g-.');
    text( DT(index), textY1, 'DeAnchor')
end

indexes = find(strcmp(tableData.state, 'Ascend')== 1);
if(~isempty(indexes))
    index = indexes(1);
    plot( [DT(index) DT(index)], [ylimits(1) ylimits(2)], 'g-.');
    text( DT(index), textY2, 'Ascend')
end

indexes = find(strcmp(tableData.state, 'Init Profile') == 1);
if(~isempty(indexes))
    index = indexes(1);
    plot( [DT(index) DT(index)], [ylimits(1) ylimits(2)], 'g-.');
    text( DT(index), textY2, 'Init Profile')
end
    
indexes = find(strcmp(tableData.state, 'Surface Ops Set Bellows') == 1);
if(~isempty(indexes))
    index = indexes(1);
    plot( [DT(index) DT(index)], [ylimits(1) ylimits(2)], 'g-.');
    text( DT(index), textY2, 'SO Set Bel')
end

indexes = find(strcmp(tableData.state, 'Dump CP Data') == 1);
if(~isempty(indexes))
    index = indexes(1);
    plot( [DT(index) DT(index)], [ylimits(1) ylimits(2)], 'g-.');
    text( DT(index), textY1, 'Dump CP')
end

indexes = find(strcmp(tableData.state, 'RecoveryMode') == 1);
if(~isempty(indexes))
    index = indexes(1);
    plot( [DT(index) DT(index)], [ylimits(1) ylimits(2)], 'g-.');
    text( DT(index), textY1, 'Recovery')
end

indexes = find(strcmp(tableData.state, 'Init Mission') == 1);
if(~isempty(indexes))
    index = indexes(1);
    plot( [DT(index) DT(index)], [ylimits(1) ylimits(2)], 'g-.');
    text( DT(index), textY1, 'Init Mission')
end

end