Skip to content

Instantly share code, notes, and snippets.

@dhupee
Last active August 7, 2022 12:31
Show Gist options
  • Select an option

  • Save dhupee/859a6ddf8cc67e079151c5524b439f26 to your computer and use it in GitHub Desktop.

Select an option

Save dhupee/859a6ddf8cc67e079151c5524b439f26 to your computer and use it in GitHub Desktop.
Fastf1-Hungaroring-Quali-2022 gist
import fastf1
from fastf1 import plotting
from matplotlib import pyplot as plt
from matplotlib.pyplot import figure
from matplotlib.collections import LineCollection
from matplotlib import cm
import numpy as np
import pandas as pd
# Setup plotting
plotting.setup_mpl()
# Enable the cache
fastf1.Cache.enable_cache('cache')
# Get rid of some pandas warnings that are not relevant for us at the moment
pd.options.mode.chained_assignment = None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment