# lpfilled0

How to download and try this example

    Usage: pl -gif lpfilled0.htm

    // Use proc page to set the overall text size to 6 pt
    #proc page
    textsize: 9

    // Specify some data using proc getdata
    #proc getdata
    data:	2000	 750
    	2010 	1700
    	2015	2000
    	2020	1800
    	2025	1300
    	2030	 400

    // Define a plotting area using proc areadef
    #proc areadef
      rectangle: 1 1 2.5 1.7
      xrange: 2000 2035
      yrange: 0 2000

    // fill area under curve using proc lineplot
    #proc lineplot
      xfield: 1
      yfield: 2
      fill: pink

    // highlight special range under curve using proc lineplot again, using a linerange
    #proc lineplot
      xfield: 1
      yfield: 2
      fill: rgb(.7,.3,.3)
      linerange: 2010 2020

    // Now go back and put a red curve on top of the fill using proc lineplot a 3rd time..
    #proc lineplot
      xfield: 1
      yfield: 2
      linedetails: color=red

    // Define a Y axis using proc yaxis
    // Do this last so that the grid lines go on top of everything else..
    #proc yaxis
      grid: color=blue
      tics: none
      ticincrement: 500
      axisline: none