I plotted a curve of Area[x-axis] and Elevation[y-axis] by using original data (red curve). now i have new series of elevation against this elevation I want to get new series of area values. For this I fitted 3rd order polynomial ( green curve) by using polyfit function in python.
import numpy as np
from matplotlib import pyplot as plt
p= np.polyfit(area, Elv, 3)
plt.plot(area, Elv, 'r-')
plt.plot(area,np.polyval(p, area),'g----')
plt.xlabel('Area')
plt.ylabel('Elevation')
How can I get value of x[Area] in polynomial f ( x ) = 3ax + 2ax + cx + d
against new series of Elevation i.e f(x) ?