Shows the standings in the MLB American League Central in terms of games back.
color1616 = [0, 0, 0]/255;
color1617 = [200, 8, 16]/255;
color1618 = [0, 23, 66]/255;
color1619 = [116, 180, 250]/255;
color1620 = [7, 39, 84]/255;
commonstyle = struct( 'Marker', 'none', 'MarkerSize', 4, 'MarkerEdgeColor', 'w' );
line( time1616, data1616, 'Color', color1616, 'MarkerFaceColor', color1616, commonstyle );
line( time1617, data1617, 'Color', color1617, 'MarkerFaceColor', color1617, commonstyle );
line( time1618, data1618, 'Color', color1618, 'MarkerFaceColor', color1618, commonstyle );
line( time1619, data1619, 'Color', color1619, 'MarkerFaceColor', color1619, commonstyle );
line( time1620, data1620, 'Color', color1620, 'MarkerFaceColor', color1620, 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 = [time1616(:); time1617(:); time1618(:); time1619(:); time1620(:)];
set(gca, 'XLim', [min(times) max(times)]);
set(gca, 'Position', get(gca, 'Position').*[1 1 0.80 1]);
names = {'Chicago White Sox', 'Cleveland Indians', 'Detroit Tigers', 'Kansas City Royals', 'Minnesota Twins' };
[C, IA, IC] = unique([data1616(end), data1617(end), data1618(end), data1619(end), data1620(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 01 May 2012 by Patrick Kalita
31 views (30 days)
This trend is associated in this plot (though may not be used.)
data points
Created 01 May 2012 by Patrick Kalita
39 views (30 days)
This trend is associated in this plot (though may not be used.)
data points
Created 01 May 2012 by Patrick Kalita
45 views (30 days)
This trend is associated in this plot (though may not be used.)
data points
Created 01 May 2012 by Patrick Kalita
42 views (30 days)
This trend is associated in this plot (though may not be used.)
data points
Created 01 May 2012 by Patrick Kalita
47 views (30 days)
This trend is associated in this plot (though may not be used.)
0 comments