# multipage

How to download and try this example

    Usage: pl -gif multipage.htm
    or for postscript output: pl -ps multipage.htm | lp

    Test of a multi page pl plot using proc page to do the page break.

    //  specify data using proc getdata
    #proc getdata
    data:
    // yymm | %filled | #who worked | #trained | (#term) | #vol
    9708 75 37 3 6 -
    9709 90 41 3 0 -
    9710 96 39 8 2 -
    9711 96 44 6 2 -
    9712 97 49 3 3 -
    9801 95 41 5 3 -
    9802 96 42 0 4 -
    9803 97 41 0 1 -
    9804 96 49 3 0 -
    9805 90 47 2 2 -
    9806 95 39 3 8 -
    9807 89 33 2 4 -
    9808 69 28 2 4 -
    9809 70 35 1 0 33
    9810 78 38 2 1 34
    9811 82 30 4 0 36
    9812 81 37 4 1 38
    9901 81 31 4 0 40
    9902 82 35 4 0 41
    9903 76 36 1 0 38
    9904 72 35 0 0 39

    //  do page title using proc page
    #proc page
    pagesize: 8.5 11
    dobackground: no
    titledetails: size=15
    title: River Valley Cleanup
    Volunteer Report
    Through April '99

    //  define an areadef template using #procdef (proc areadef)
    // #procdef defines a proc without rendering it; it may then be cloned.
    #procdef areadef
    titledetails: size=12 style=BI
    box: 6.1 1
    xscaletype: date yymm
    xrange: 9707 9905
    xaxis.stubs: inc 1
    xaxis.stubformat: M
    yaxis.stubs: inc 10
    xaxis.autoyears: yyyy
    #saveas: A

    //  set up the topmost plotting area..
    // clone the template and alter some things (proc areadef)
    #proc areadef
    #clone: A
    title: Percent of volunteer time filled
    location: 1.2 8
    yrange: 50 110
    yaxis.stubrange 50 100
    yaxis.stubs: inc 10

    //  do the topmost set of bars using proc bars
    #proc bars
    locfield: 1
    lenfield: 2
    showvalues: yes
    barwidth: 0.15
    color: 1
    #saveas: B

    //  2nd bargraph
    #proc areadef
    #clone: A
    location: 1.2 6.2
    yrange: 0 60
    yaxis.stubrange: 0 60
    title: Number of volunteers who worked

    #proc bars
    #clone: B
    lenfield: 3

    //  3rd bargraph
    #proc areadef
    #clone: A
    location: 1.2 4.4
    yrange: 0 60
    yaxis.stubs: inc 10
    title: Number of monthly volunteers

    #proc annotate
    location: 1.77473 4.73333
    textdetails: size=8 align=L
    text: (This information not
    reported until 9/98)

    #proc bars
    #clone: B
    lenfield: 6

    //  4th bargraph
    #proc areadef
    #clone: A
    location: 1.2 2.6
    yrange: 0 10
    yaxis.stubs: inc 2
    title: Number of new volunteers trained

    #proc bars
    #clone: B
    lenfield: 4
    labelzerovalue: yes

    /////////////////////////////////////

    //  do page title using proc page
    #proc page
    pagesize: 8.5 11
    dobackground: no
    titledetails: size=15
    title: Ocean Beach Cleanup
    Volunteer Report
    Through April '99

    #proc getdata
    data:
    // yymm | %filled | #who worked | #trained | (#term) | #vol
    9708 75 37 3 6 -
    9709 80 41 2 0 -
    9710 86 39 3 2 -
    9711 86 34 6 5 -
    9712 87 39 7 3 -
    9801 85 31 5 3 -
    9802 86 32 2 2 -
    9803 87 31 0 1 -
    9804 86 39 8 0 -
    9805 80 37 2 2 -
    9806 85 39 3 0 -
    9807 89 33 2 4 -
    9808 69 28 4 4 -
    9809 70 35 1 0 33
    9810 78 28 2 1 34
    9811 72 20 2 0 36
    9812 61 27 1 1 38
    9901 61 21 3 0 40
    9902 62 25 4 0 41
    9903 66 26 1 0 38
    9904 62 35 0 0 39

    //  define an areadef template using #procdef (proc areadef)
    // #procdef defines a proc without rendering it; it may then be cloned.
    #procdef areadef
    titledetails: size=12 style=BI
    box: 6.1 1
    xscaletype: date yymm
    xrange: 9707 9905
    xaxis.stubs: inc 1
    xaxis.stubformat: M
    yaxis.stubs: inc 10
    xaxis.autoyears: yyyy
    #saveas: A

    //  set up the topmost plotting area..
    // clone the template and alter some things (proc areadef)
    #proc areadef
    #clone: A
    title: Percent of volunteer time filled
    location: 1.2 8
    yrange: 50 110
    yaxis.stubrange 50 100
    yaxis.stubs: inc 10

    //  do the topmost set of bars using proc bars
    #proc bars
    locfield: 1
    lenfield: 2
    showvalues: yes
    barwidth: 0.15
    color: white
    #saveas: B

    //  2nd bargraph
    #proc areadef
    #clone: A
    location: 1.2 6.2
    yrange: 0 60
    yaxis.stubrange: 0 60
    title: Number of volunteers who worked

    #proc bars
    #clone: B
    lenfield: 3

    //  3rd bargraph
    #proc areadef
    #clone: A
    location: 1.2 4.4
    yrange: 0 60
    yaxis.stubs: inc 10
    title: Number of monthly volunteers

    #proc annotate
    location: 1.77473 4.73333
    textdetails: size=8 align=L
    text: (This information not
    reported until 9/98)

    #proc bars
    #clone: B
    lenfield: 6

    //  4th bargraph
    #proc areadef
    #clone: A
    location: 1.2 2.6
    yrange: 0 10
    yaxis.stubs: inc 2
    title: Number of new volunteers trained

    #proc bars
    #clone: B
    lenfield: 4
    labelzerovalue: yes