Shows the standings in the MLB American League East in terms of games back.
color1605 = [0, 40, 93]/255;
color1606 = [158, 206, 238]/255;
color1607 = [251, 79, 20]/255;
color1608 = [0, 61, 165]/255;
color1609 = [198, 12, 48]/255;
commonstyle = struct( 'Marker', 'none', 'MarkerSize', 4, 'MarkerEdgeColor', 'w' );
line( time1605, data1605, 'Color', color1605, 'MarkerFaceColor', color1605, commonstyle );
line( time1606, data1606, 'Color', color1606, 'MarkerFaceColor', color1606, commonstyle );
line( time1607, data1607, 'Color', color1607, 'MarkerFaceColor', color1607, commonstyle );
line( time1608, data1608, 'Color', color1608, 'MarkerFaceColor', color1608, commonstyle );
line( time1609, data1609, 'Color', color1609, 'MarkerFaceColor', color1609, commonstyle );
set(gca, 'YDir', 'reverse');
ylabel( 'Games Back' );
ylm = get(gca, 'YLim');
set(gca, 'YLim', [-0.5 ylm(2)+0.5]);
set(gca, 'YTick', 0:0.5:ylm(2));
if ylm(2) > 10
labels = cellstr(get(gca, 'YTickLabel'));
labels(2:2:end) = {''};
set(gca, 'YTickLabel', labels);
end
times = [time1605(:); time1606(:); time1607(:); time1608(:); time1609(:)];
set(gca, 'XLim', [min(times) max(times)]);
set(gca, 'Position', get(gca, 'Position').*[1 1 0.80 1]);
names = {'Baltimore Orioles', 'Boston Red Sox', 'New York Yankees', 'Tampa Bay Rays', 'Toronto Blue Jays' };
[C, IA, IC] = unique([data1607(end), data1609(end), data1605(end), data1606(end), data1608(end)]);
for idx = 1 : numel( C )
text( max(times) + 0.02*(max(times)-min(times)), C(idx), names(IC == idx) );
end
datetick('x','keeplimits')
data points
Created 25 Apr 2012 by Patrick Kalita
58 views (30 days)
This trend is associated in this plot (though may not be used.)
data points
Created 25 Apr 2012 by Patrick Kalita
46 views (30 days)
This trend is associated in this plot (though may not be used.)
data points
Created 25 Apr 2012 by Patrick Kalita
43 views (30 days)
This trend is associated in this plot (though may not be used.)
data points
Created 25 Apr 2012 by Patrick Kalita
35 views (30 days)
This trend is associated in this plot (though may not be used.)
data points
Created 25 Apr 2012 by Patrick Kalita
61 views (30 days)
This trend is associated in this plot (though may not be used.)
0 comments