<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Next, we plot a graph showing the ratio between consective fibonacci numbers and the ration between a measurement kilometer and the corresponding mile
Step1:  The above graph shows that the ratio between consecutive Fibonacci numbers and a distance measurement in kilometer and mile is close to being the same (~ 1.6), popularly referred to as the Golden Ratio.
Next, we plot a graph showing the approximated distance in kilometers using the idea in the Reddit thread above and the exact distance based on the known formula.
<ASSISTANT_TASK:>
Python Code:
def plot_fibo_ratio(series):
    ratios = []
    for i in range(len(series)-1):
        ratios.append(series[i+1]/series[i])
    plt.plot(ratios, 'b*')
    plt.ylabel('Ratio')
    plt.xlabel('No.')
def plot_km_miles_ratio(kms):
    miles_km = [1.6094*km/km for km in kms]
    plt.plot(miles_km, 'ro')
num = 100
series = fibo(num)
plot_fibo_ratio(series)
plot_km_miles_ratio(series)
plt.title('Ratio between Fibonacci numbers & Golden ratio')
plt.legend(['Fibonacci Numbers', 'Miles/Km'])
plt.show()
Explanation: Next, we plot a graph showing the ratio between consective fibonacci numbers and the ration between a measurement kilometer and the corresponding mile
End of explanation
def estimate_kms(miles):
    approx_kms = []
    exact_kms = [1.6094*m for m in miles[1:]]
    for i in range(len(series)-1):
        approx_kms.append(series[i]+series[i+1])
    plt.figure(2)
    plt.plot(approx_kms, exact_kms, 'ro')
    plt.title('Approximating kilometers using fibonacci')
series = fibo(num)
estimate_kms(series)
plt.show()
Explanation: The above graph shows that the ratio between consecutive Fibonacci numbers and a distance measurement in kilometer and mile is close to being the same (~ 1.6), popularly referred to as the Golden Ratio.
Next, we plot a graph showing the approximated distance in kilometers using the idea in the Reddit thread above and the exact distance based on the known formula.
End of explanation
<END_TASK>