# ranges

How to download and try this example

    Usage: pl -gif ranges.htm
    or for PostScript: pl -ps ranges.htm | lp

    Uses the data file rangetimes.dat

    #proc page
      #if @DEVICE in gif,png
        scale: 0.3 0.4
      #endif
      title:	Elapsed Time of Procedures
    		\
    		First Time vs. Subsequent Times
    		Groups 1 - 3
    		10-31-99

    #proc areadef
      areaname: standard
      xscaletype: categories
      xcategories:  Group 1\nFirst
                    Group 1\nLater
    		\
    		Group 2\nFirst
    		Group 2\nLater
    		\
    		Group 3\nFirst
    		Group 3\nLater

      yrange: 0 60
      yaxis.stubs: inc 10

      yaxis.grid: width=0.5 style=1
      yaxis.label: Total Elapsed Time in Minutes
      xaxis.stubs: usecategories

    //01001 iv B 071698 dawn 32 F
    //01001 m06 B 030299 rob 32 L
    #proc getdata
      file: rangetimes.dat

    #proc rangebar
      select: @@3 = 1 && @@7 = F
      mediansym: shape=circle fillcolor=0.2 style=filled
      barloc: Group 1\nFirst
      datafield: 6
      nlocation: 3(s)
      #saveas: R

    #proc rangebar
      select: @@3 = 1 && @@7 = L
      barloc: Group 1\nLater
      #clone: R

    #proc rangebar
      select: @@3 = 2 && @@7 = F
      barloc: Group 2\nFirst
      #clone: R

    #proc rangebar
      select: @@3 = 2 && @@7 = L
      barloc: Group 2\nLater
      #clone: R

    #proc rangebar
      select: @@3 = 3 && @@7 = F
      barloc: Group 3\nFirst
      #clone: R

    #proc rangebar
      select: @@3 = 3 && @@7 = L
      barloc: Group 3\nLater
      #clone: R

    // pagebreak - break page and begin pg 2..
    #proc page
      #if @DEVICE in gif,png
        scale: 0.3,0.4
      #endif
      title:	Elapsed Time of Procedures
    		\
    		First Time vs. Subsequent Times
    		Groups 4 - 6
    		10-31-99

    #proc areadef
      areaname: standard
      xscaletype: categories
      xcategories:  Group 4\nFirst
                    Group 4\nLater
    		\
    		Group 5\nFirst
    		Group 5\nLater
    		\
    		Group 6\nFirst
    		Group 6\nLater

      yrange: 0 60
      yaxis.stubs: inc 10

      yaxis.grid: width=0.5 style=1
      yaxis.label: Total Elapsed Time in Minutes
      xaxis.stubs: usecategories

    #proc rangebar
      select: @@3 = 4 && @@7 = F
      mediansym: shape=circle fillcolor=0.2 style=filled
      barloc: Group 4\nFirst
      datafield: 6
      nlocation: 3(s)
      #saveas: R

    #proc rangebar
      select: @@3 = 4 && @@7 = L
      barloc: Group 4\nLater
      #clone: R

    #proc rangebar
      select: @@3 = 5 && @@7 = F
      barloc: Group 5\nFirst
      #clone: R

    #proc rangebar
      select: @@3 = 5 && @@7 = L
      barloc: Group 5\nLater
      #clone: R

    #proc rangebar
      select: @@3 = 6 && @@7 = F
      barloc: Group 6\nFirst
      #clone: R

    #proc rangebar
      select: @@3 = 6 && @@7 = L
      barloc: Group 6\nLater
      #clone: R