Skip to content

Utilities for gather information from Baseball Reference and saving plots to file.

License

Notifications You must be signed in to change notification settings

barajasr/Baseball-Reference-Plotting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Baseball-Reference-Plotting

usage: BrefPlotter.py [-h] [--csv {r,w}] [-p]
                      (-t {AL,NL,MLB} | -c TEAM [TEAM ...]) [-y YEAR]
                      [--plot {outcome_conceding,outcome_scoring,win_loss_margins,win_loss_streaks}]
                      [-a] [-n] [-x X-MAX] [--y-axis Y Y]

optional arguments:
  -h, --help            show this help message and exit
  --csv {r,w}           Set flag to save or read from csv files. (default: )
  -p, --playoffs        Set flag if including playoffs is desired. (default:
                        False)
  -t {AL,NL,MLB}, --teams {AL,NL,MLB}
                        List of teams by League or all.
  -c TEAM [TEAM ...], --teams-custom TEAM [TEAM ...]
                        List of teams to get information from, use Baseball-
                        Reference abreviations.
  -y YEAR, --year YEAR  Desired target year for data sets to retrieve.
                        (default: 2015)

Plotting:
  --plot {outcome_conceding,outcome_scoring,win_loss_margins,win_loss_streaks}
                        Data type requesting to plotted.
  -a, --average         Calculate and plot the average for teams selected.
  -n, --not-histogram   Set flag if histogram is not desired, data is linearly
                        aggragated by x. (default: False)
  -x X-MAX, --x-hint X-MAX
                        The minimum x-axis value end point in [1, x]; value
                        will be increased as needed. (default: 10)
  --y-axis Y Y          Min and max for y-axis (default: [-24, 24])

About

Utilities for gather information from Baseball Reference and saving plots to file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages