function plotStateTransitions(tableData, DT)

%figure(pressureFig);
ylimits = ylim;

numStates = 13;
yIncr = 1/13;
for i=1:numStates
textY(i) = ylimits(1) + ((i * yIncr) * (ylimits(2) - ylimits(1)));
end

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), textY(1), 'Surface Ops', 'Rotation', 90)
end

indexes = find(strcmp(tableData.State, 'Decrease Buoyancy Fast') == 1);
if(~isempty(indexes))
    index = indexes(1);
    plot( [DT(index) DT(index)], [ylimits(1) ylimits(2)], 'g-.');
    text( DT(index), textY(2), 'Dec Buoycy', 'Rotation', 90)
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), textY(3), 'Descend', 'Rotation', 90)
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), textY(4), 'Anchor', 'Rotation', 90)
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), textY(5), 'Park', 'Rotation', 90)
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), textY(6), 'Start CP', 'Rotation', 90)
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), textY(7), 'DeAnchor', 'Rotation', 90)
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), textY(8), 'Ascend', 'Rotation', 90)
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), textY(9), 'Init Profile', 'Rotation', 90)
end
    
indexes = find(strcmp(tableData.State, 'Set Bellows') == 1);
if(~isempty(indexes))
    index = indexes(1);
    plot( [DT(index) DT(index)], [ylimits(1) ylimits(2)], 'g-.');
    text( DT(index), textY(10), 'Set Bel', 'Rotation', 90)
end

indexes = find(strcmp(tableData.State, 'Dump CPData') == 1);
if(~isempty(indexes))
    index = indexes(1);
    plot( [DT(index) DT(index)], [ylimits(1) ylimits(2)], 'g-.');
    text( DT(index), textY(11), 'Dump CP', 'Rotation', 90)
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), textY(12), 'Recovery', 'Rotation', 90)
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), textY(13), 'Init Mission', 'Rotation', 90)
end

end