# G-G diagram


```python
# Put parent folder in the pythonpath
import sys,os,inspect
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))))))
import fastest_lap
from fastest_lap import KMH
```


```python
# Load vehicle
vehicle = "car"
fastest_lap.create_vehicle_from_xml(vehicle,"../../../../database/vehicles/kart/roberto-lot-kart-2016.xml");
```


```python
# Compute and plot gg_diagram
fastest_lap.plot_gg(*fastest_lap.gg_diagram(vehicle,50.0*KMH,100));
```


    
![png](gg-diagram_files/gg-diagram_3_0.png)
    

