Team colour in .results["TeamColor"] vs. .team_color() different? #527
Replies: 3 comments 4 replies
-
Can you post the source code you used please? |
Beta Was this translation helpful? Give feedback.
-
Yea the color palette is changed in version 3.3.0 for the 2024 season. Not sure why the maintainer chooses the current set of colors. The process is very much ad-hoc |
Beta Was this translation helpful? Give feedback.
-
The team color in the results is what the API returns. FastF1s plotting colors are independent from that. |
Beta Was this translation helpful? Give feedback.
-
I've done a fastest lap comparison for Day 2 of testing and Perez is yellow? This is using the team colour gathering example from the documentation. The rest of the teams look very accurate, but Red Bull (or at least PER) doesn't seem accurate.
Meanwhile the hex code in .results["TeamColor"] is blue. I'm not exactly sure why.
Update: I've had a look at all other teams and it seems to be a feature not a bug. This table compares session.result["TeamColor"] and fastf1.plotting.teamcolor() and they are consistently different.
![image](https://private-user-images.githubusercontent.com/154688263/307354974-92bfb153-1dbd-42fe-b12d-5f71ba416f3a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyNjY1MDEsIm5iZiI6MTcyNDI2NjIwMSwicGF0aCI6Ii8xNTQ2ODgyNjMvMzA3MzU0OTc0LTkyYmZiMTUzLTFkYmQtNDJmZS1iMTJkLTVmNzFiYTQxNmYzYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyMVQxODUwMDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wNWE1YWVmOWNjMzRhOGFlNGRiYTQ3OTEwMjQ4YTE5NTY5ZGYxZWM1YzdlNDMxN2JhNTMzNTVmYjA0NmRlZmQ2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.yNqDCQZr_5_dLrbP76eJ1n2D_i3CVSzcQhSws0hk89w)
Beta Was this translation helpful? Give feedback.
All reactions