Skip to content

Instantly share code, notes, and snippets.

@jackparmer
Last active December 26, 2015 14:29
Show Gist options
  • Save jackparmer/7165959 to your computer and use it in GitHub Desktop.
Save jackparmer/7165959 to your computer and use it in GitHub Desktop.
Score Distribution Statistics: NHL, MLB, NFL, & NBA Made with the Plotly and Sports Database Query Language Python API
<!DOCTYPE html>
<meta charset="utf-8">
<style>
h1, h4{ color: #666; }
h2, h3{ color: #888; }
h1, h2, h3, h4{ font-weight: 100; }
div{ background: #e3e3e3; padding: 10px; padding-left: 70px; margin-bottom: 50px; }
span{ color: #222; }
body{ margin: 0px; }
</style>
<div>
<h1>Score Distribution Statistics</h1>
<h2>NHL, MLB, NFL, & NBA</h2>
<h3><span>X-axis:</span> Points scored by the home team</h3>
<h3><span>Y-axis:</span> Points scored by the opponent team</h3>
<h3><span>Color:</span> Number of games played in history with that score combination</h3>
<h4>Made with the Plotly and Sports Database Query Language Python APIs</h4>
</div>
<iframe
style="display:inline;margin:0px;"
width="520"
height="420"
seamless="seamless"
scrolling="no"
src="https://plot.ly/~jackp/980">
</iframe>
<iframe
style="display:inline;margin:0px;"
width="520"
height="420"
seamless="seamless"
scrolling="no"
src="https://plot.ly/~jackp/981">
</iframe>
<br>
<iframe
style="display:inline;margin:0px;"
width="520"
height="420"
seamless="seamless"
scrolling="no"
src="https://plot.ly/~jackp/982">
</iframe>
<iframe
style="display:inline;margin:0px;"
width="520"
height="420"
seamless="seamless"
scrolling="no"
src="https://plot.ly/~jackp/983">
</iframe>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment