plt.plot(xx1, yy1, 'r-', x, y, 'bo', xx2, yy2, 'g-')
plt.show()
if __name__ == '__main__':
    main()
How to use leastsq function from scipy.optimize in python to fit both a straight line and a quadratic line to data sets x and y