init({
range: [[0, 15], [0, 6]],
scale: [31, 54]
});
label([8, 6], "H vs T", "below", false).css({
"font-size": "16px",
"color": "#444444"
});
style({
"stroke": "#cccccc",
"stroke-width": 1
}, function() {
_(5).times(function(i) {
line([0.2, i + (54.5 / 54)], [15.8, i + (54.5 / 54)]);
});
});
_.each(ONE_FLIP, function(caption, n) {
label([8 * n + 4, 1], caption, "below", false).css({
"font-size": "13px",
"color": "#444444"
});
});
style({
fill: "#a6a6a6",
strokeWidth: 0
}, function() {
rect(2, 1, 4, ONE_FLIP_RESULT[0] / SEQUENCE.length * 5);
});
style({
fill: "#595959",
strokeWidth: 0
}, function() {
rect(10, 1, 4, ONE_FLIP_RESULT[1] / SEQUENCE.length * 5);
});
init({
range: [[0, 16], [0, 6]],
scale: [31, 54]
});
label([8, 6], $._("Two-flip streaks"), "below", false).css({
"font-size": "16px",
"color": "#444444"
});
style({
"stroke": "#cccccc",
"stroke-width": 1
}, function() {
_(5).times(function(i) {
line([0.2, i + (54.5 / 54)], [15.8, i + (54.5 / 54)]);
});
});
_.each(TWO_FLIP, function(caption, n) {
label([4 * n + 2, 1], caption, "below", false).css({
"font-size": "13px",
"color": "#444444"
});
});
style({
fill: "#808080",
strokeWidth: 0
}, function() {
_.each(TWO_FLIP_RESULT, function(count, n) {
rect(4 * n + 1, 1, 2, count / SEQUENCE.length * 7);
});
});
init({
range: [[0, 16], [0, 6]],
scale: [31, 54]
});
label([8, 6], $._("Three-flip streaks"), "below", false).css({
"font-size": "16px",
"color": "#444444"
});
style({
"stroke": "#cccccc",
"stroke-width": 1
}, function() {
_(5).times(function(i) {
line([0.2, i + (54.5 / 54)], [15.8, i + (54.5 / 54)]);
});
});
_.each(THREE_FLIP, function(caption, n) {
label([2 * n + 1, 1], caption, "below", false).css({
"font-size": "13px",
"color": "#444444"
});
});
style({
fill: "#808080",
strokeWidth: 0
}, function() {
_.each(THREE_FLIP_RESULT, function(count, n) {
rect(2 * n + 0.5, 1, 1, count / SEQUENCE.length * 9);
});
});