Skip to content

Colour for compound #232

Answered by theOehrly
RapidDestroyer1 asked this question in Q&A
Discussion options

You must be logged in to vote

The compound names are given in Session.laps/Laps. The colours are not available through FastF1, but it should be fairly straightforward to figure them out. Then you just need to map them based on the tyre compound name.
Then, for how you best color individual segments of a plot, you need to take a look at the matplotlib documentation. But it is sure possible to do what you want to do.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RapidDestroyer1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants