Category Archives: histogram

How Long Royals Starters Lasted in 2014

How Long Royals Starters Lasted in 2014
How Long Royals Starters Lasted in 2014

This set of small multiple histograms shows the distribution of how long each of the Royals starters lasted in 2014.

The finger-like structure is due to starters often being pulled after a complete number of innings.

Shields lasted mostly for 7 or 6 full innings and was only knocked out before the 5th one time.

Shields, Vargas and Guthrie each had one complete game.

This matplotlib graphic was made at SportsDatabase.com
with the SDQL

int(3*innings pitched) as Outs @ name and (team=Royals and season=2014 and order=1 and name[0] not in ‘AL’) as ‘How Long Royals Starters Lasted in 2014’?height=500

How Many Outs each Starter got for the Rockies in 2014

How Many Outs each Starter got for the Rockies in 2014
How Many Outs each Starter got for the Rockies in 2014

This set of histograms shows how many outs each starter got for the rockies in 2014.

Belisle and Hernandez started only once.

Chatwood started 4 times and went 5, 6 (twice), and 7 innings.

De La Rosa had the most starts and was often pulled after 6 innings (18 outs).

This matplotlib graphic was made at SportsDatabase.com
with the SDQL

int(3*innings pitched) as Outs,’Number of Games’ @ name and (team=Rockies and season=2014 and order=1) as ‘How Many Outs each Starter for the Rockies got in 2014’?columns=5&height=500

NBA Margins in 2013.

Histogram of NBA Margins in 2013

This colorfully stacked histogram shows the distribution of points minus opponent points (the margin) for all NBA games in 2013.

I like it because one sees quickly that:

  • Seven was the most common final score margin, followed by 6, 5, 4, and then 8 and 9 were equally common;
  • A margin of 1 was as common as 11.

The colors are arguably gratuitous as individual teams are hard to distinguish.

One does see a purple bump to the right; are we learning anything?

This more austere version chooses one color and shows each game once.

 

Margin of Victory for each NBA game in 2013

 

To build histograms like this yourself, start with the SDQL; margin @ season=2013 and team

 

 

 

Innings Pitched (times 3) for Giants Starters in 2013

Innings pitched times 3 for Giants starters in 2013
Outs (innings pitched times 3) for Giants starters in 2013

I’m just learning about matplotlib’s coloring rules.  Here I am using: plt.get_cmap(‘gist_rainbow’) and might have to look a little harder there.

I like this histogram because we see from a distance that Giants starters most often go 7 innings, followed by 6 and 5.

I like this because we see quickly that Lincecum and Petit had complete games and for 8 complete innings we can just about read off: 2 for Lincecum; 3 for Bumgarner, 3 for Cain; and 1 for Vogelsong.

To improve it; show each game as a block, rather than bars of some length. This reinforces the idea of a unit and we can count small stacks.

Also, I had trouble with the colors in the green-blue. Is that me?

 

 

Small Multiples: starter’s innings pitched for each MLB team in 2013

This beautiful small multiple set shows how many outs the starter got in 2013. The Tigers starters got 21 outs 49 times during 2013 and the Braves starters lasted 18 outs also 49 times.

The finger-like structure is due to the starting going a complete number of innings.

The bands in the histograms represent different starters; only experts can guess who is blue.

The Nationals like their starters to finish the inning; Cleveland and the Angles less so.

It looks like there are a lot of stories in there.

See anything interesting?