This python script pitchers.py
visualizes given Trackman data for every pitcher of every game.
Below are the instructions for how to use the Python script to visualize the pitching data from Trackman.
Before executing the program, you need to change the HOME_TEAM
variable at the top of the script with the Trackman code for your team. To find this code, go to the HomeTeam
column of your Trackman data. Assuming you are the home team, your code will be the first one listed. If you are the away team, find the AwayTeam
column of the Trackman data and your code should be the first one listed. This will make sure your pitchers have priority when saving to your system.
You may also change the DPI
variable to change the resolution of your visualizations. A larger DPI means larger files and visualizations, and a lower DPI means smaller files and visualizations. By default, DPI
is set to 200.
Your file manager will open asking for all the data you need to visualize. The script strictly requires .csv
files (for now).
Your file manager will open once more asking where you would like to save these visualizations. Choose any folder at your convenience.
Once the program has finished, it will automatically open your destination folder (see step 4 in "How to use") where all of your visualizations will be saved. The folder's will be organized as such:
Home team pitcher -> Game day -> Visualizations
Opponents -> Game day -> Opponent pitchers -> Visualizations
Link | Description |
---|---|
Sample Visualizations | See Sample Visualizations/Dillon_Grady/2023_04_25 for the best examples |
Visualization Documentation | Everything you need to know about each type of visualization the script produces |