Colour for compound #232
Answered
by
theOehrly
RapidDestroyer1
asked this question in
Q&A
-
Is there a way for the colour of the point on a plot of lap time vs lap number to equal the compound the driver is one at that lap? |
Beta Was this translation helpful? Give feedback.
Answered by
theOehrly
Aug 18, 2022
Replies: 1 comment
-
The compound names are given in |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
RapidDestroyer1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.