## curvefit2

How to download and try this example

    Usage: pl -gif curvefit2.htm

    Demonstrates proc curvefit generating an interpolated curve.

    #proc getdata
      data:
      0.0 0.0
      1.0 1.0
      2.0 4.0
      1.0 2.0
      0.0 1.0
      1.0 0.0
      2.0 1.0
      1.0 2.0
      2.0 2.0
      3.0 0.0

    #proc areadef
      rectangle: 1 1 4 4
      xrange: -2 5
      yrange: -2 5
      frame: yes
      xaxis.stubs: inc
      yaxis.stubs: inc

    #proc lineplot
      xfield: 1
      yfield: 2
      linedetails: color=gray(0.8) width=0.5

    #proc curvefit
      curvetype: interpolated
      xfield: 1
      yfield: 2
      linedetails: color=red width=0.5
    //  statsonly: yes
    //  showresults: yes