Skip to content

domlija/f1-laps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

CLI app to comapre and plot laptimes between the two drivers.

Instructions:

  • clone the repo to the desired folder
  • open cmd/terminal
  • run "python f1.py <type> <driver1> <driver2> <season> <race>"

Type can either be vs or diff.
vs plots lap times of both drivers.
diff plots the difference between the lap times (driver1 - driver2).

Season should be the year of the season in question and race should be the race number.
You can use current for the current season and last for the last race.
After you run the app you should get pyplot GUI to see the graph and a .png file saved in the folder.

The names should be the same as in "http://ergast.com/mrd/" as the app gets the data from there.
The rule of the thumb is surname or name_surname if there are multiple drivers with the same name.

Examples:

  • python f1.py diff max_verstappen alonso 2022 last

About

CLI app to comapre and plot laptimes between the two drivers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages