Skip to content

Commit

Permalink
Use new team_color API
Browse files Browse the repository at this point in the history
  • Loading branch information
Casper-Guo committed Aug 26, 2024
1 parent a533779 commit cb1c8c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion f1_visualization/readme_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def main(season: int, round_number: int, grand_prix: bool, update_readme: bool):
.sort_values()
.index
)
team_palette = {team: p.team_color(team) for team in team_order}
team_palette = {team: p.get_team_color(team, session=session) for team in team_order}

_, ax = plt.subplots(figsize=(15, 10))
sns.boxplot(
Expand Down

0 comments on commit cb1c8c0

Please sign in to comment.