kruser / pitchfx-site

A webapp for searching PitchFX data
Apache License 2.0
21 stars 7 forks source link

Choose a color pallete for pitch types #77

Open kruser opened 10 years ago

kruser commented 10 years ago

We'd like to have the same colors describe the same pitch types always, across all pitchers. So, we need a color value assigned to each one of these.

Care should be taken to match like pitches with similar colors. Also, I'd prefer fast pitches migrate towards hot colors while changeups/slow pitches migrate towards cool colors.

And apply those values to this chart. image

FYI: our bootstrap theme and colors can be found here: http://bootswatch.com/cerulean/

albertlyu commented 10 years ago

Here's how I would classify each of these pitch types into 'pitch groups':

Fastballs

Breaking Balls

Offspeed Pitches

Junk Pitches

Unknown

I tried to order them in order of pitch speed, though obviously some pitch types will be closer together within their groups as others. So each pitch group can have more distinctive palettes from other pitch groups, while within each pitch group, you can apply a gradient within a color palette.

We can hand-choose these colors for now, but I'd imagine eventually, we'll want to introduce pitch speed, horizontal movement, and vertical movement into a new chart somewhere to show how well a specific pitcher's pitch types cluster together. (For example, Kershaw and Cliff Lee: http://www.fangraphs.com/pitchfxg.aspx?playerid=2036&position=P&season=2013&date=0&dh=0 http://www.fangraphs.com/pitchfxg.aspx?playerid=1636&position=P&season=2013&date=0&dh=0)