# lineplot2

How to download and try this example

    Usage: pl -gif lineplot2.htm
    Uses the data files
    curve2.dat and curve3.dat

    // Read data for red curve from file curve2.dat
    //(proc getdata)
    #proc getdata
    file: curve2.dat

    // Define a plotting area using proc areadef
    #proc areadef
      rectangle: 1 1 5 2
      xrange: 330 350
      yrange: 40 120

    // Define a Y axis using proc yaxis
    #proc yaxis
      stubs: incremental 20
      grid: color=green

    #proc xaxis
      stubs: incremental 5

    // Do the red curve using proc lineplot
    #proc lineplot
      xfield: 1
      yfield: 2
      linedetails: color=red
      label: SP-1
      labeldetails: color=red

    // Read data for blue curve from file curve3.dat
    //(proc getdata)
    #proc getdata
    file: curve3.dat

    // Do the blue curve using proc lineplot
    #proc lineplot
      xfield: 1
      yfield: 2
      linedetails: color=blue
      label: SP-2\n(low HJ)
      labeldetails: color=blue