Loading ...
Sorry, an error occurred while loading the content.

Customized chron prefab problem

Expand Messages
  • sitecrawl
    I have modified chron.pl to graph additional data fields. This works fine up to 9 fields, then the legend stops matching up with the actual graph data. I don t
    Message 1 of 3 , Apr 30, 2006
    • 0 Attachment
      I have modified chron.pl to graph additional data fields. This works
      fine up to 9 fields, then the legend stops matching up with the
      actual graph data.

      I don't see how to attach anything to this post, so I'll put the
      data and a script to generate the graphs in this post, and post a
      reply with my modified chron.pl.

      Can anyone tell me what is wrong?

      Thanks,

      -- Greg

      First, the script:

      #!/bin/bash

      pl ./chron.pl data=9 x=dt header=yes ylbl='Hits' mode=line
      unittype=date datefmt=yyyy-mm-dd xinc='1 day' delim=comma
      legendfmt=down step=no xstubfmt=yyyy-mm-dd legend='max+1.25 max'
      stubvert=yes autowidth=yes autoheight=yes title='Nine'
      ylbldistance=.75 rectangle='1 1 6 5' yinc='1000' xrange='2006-03-22
      2006-04-20' yinc=1000 y=f1 y2=f2 y3=f3 y4=f4 y5=f5 y6=f6 y7=f7 y8=f8
      y9=f9 -png -o 9.png

      pl ./chron.pl data=10 x=dt header=yes ylbl='Hits' mode=line
      unittype=date datefmt=yyyy-mm-dd xinc='1 day' delim=comma
      legendfmt=down step=no xstubfmt=yyyy-mm-dd legend='max+1.25 max'
      stubvert=yes autowidth=yes autoheight=yes title='Ten'
      ylbldistance=.75 rectangle='1 1 6 5' yinc='1000' xrange='2006-03-22
      2006-04-20' yinc=1000 y=f1 y2=f2 y3=f3 y4=f4 y5=f5 y6=f6 y7=f7 y8=f8
      y9=f9 y10=f10 -png -o 10.png

      Now, the data file for 9 data fields (called "9")

      dt,f1,f2,f3,f4,f5,f6,f7,f8,f9
      2006-04-20,19998,5386,5184,11542,7805,14549,6005,6289,6823
      2006-04-19,21847,6152,5284,10780,7894,14452,6235,6564,7095
      2006-04-18,22086,7302,5376,11171,8356,14863,6792,6768,7612
      2006-04-17,,,,,,,,,
      2006-04-16,16073,6226,4218,4192,5844,10264,4826,5202,3847
      2006-04-15,13223,3804,3973,3910,5136,8582,4189,4167,3149
      2006-04-14,16213,7033,4983,6927,6412,11312,4897,5620,4987
      2006-04-13,17735,5489,5648,7326,6951,12362,5655,5458,5823
      2006-04-12,20081,6590,5733,7245,7618,13914,6321,6211,6198
      2006-04-11,21295,6920,5990,6775,9058,15098,7157,6480,7008
      2006-04-10,20400,7884,7130,7121,9444,15368,7209,6882,6754
      2006-04-09,17661,8275,6722,4877,8314,12327,6624,6094,4010
      2006-04-08,15475,4075,5588,4255,6749,11202,5113,5345,4189
      2006-04-07,16665,5005,6591,6239,7554,12768,5728,5460,5446
      2006-04-06,19503,5947,6436,6253,7816,14658,6364,6162,4673
      2006-04-05,20200,6926,4555,6586,8215,15723,6303,6623,7475
      2006-04-04,22150,7313,5270,6666,9276,17877,6961,6875,7924
      2006-04-03,21625,7708,5101,6929,9346,16551,7307,8575,7912
      2006-04-02,18144,8326,4435,4280,8547,12570,7036,8794,4348
      2006-04-01,15731,4686,3796,3771,6816,11279,5152,7291,4288
      2006-03-31,17088,5418,3204,5293,3325,13350,5884,7280,6761
      2006-03-30,19747,6393,3861,5904,1826,16076,7200,8389,7644
      2006-03-29,20838,6541,3820,5455,7625,17052,7006,9259,8914
      2006-03-28,22014,6523,3838,5959,8975,17497,7472,9483,9013
      2006-03-27,22530,7259,4584,6941,9632,17646,7803,10399,8838
      2006-03-26,18887,8467,4469,4328,7490,13468,5969,8477,5344
      2006-03-25,15830,5621,4137,3880,5872,12167,5160,6589,5566
      2006-03-24,17656,6145,4754,5717,6684,15026,5439,7826,7834
      2006-03-23,20957,6158,4907,6313,7032,16768,6229,9006,8228
      2006-03-22,20865,6855,5564,6308,7121,17086,6297,8260,6977

      Now the data for 10 fields (called "10"):
      dt,f1,f2,f3,f4,f5,f6,f7,f8,f9,f10
      2006-04-20,19998,5386,5184,11542,7805,14549,6005,6289,6823,16849
      2006-04-19,21847,6152,5284,10780,7894,14452,6235,6564,7095,17341
      2006-04-18,22086,7302,5376,11171,8356,14863,6792,6768,7612,19435
      2006-04-17,,,,,,,,,,
      2006-04-16,16073,6226,4218,4192,5844,10264,4826,5202,3847,12558
      2006-04-15,13223,3804,3973,3910,5136,8582,4189,4167,3149,10998
      2006-04-14,16213,7033,4983,6927,6412,11312,4897,5620,4987,13393
      2006-04-13,17735,5489,5648,7326,6951,12362,5655,5458,5823,15071
      2006-04-12,20081,6590,5733,7245,7618,13914,6321,6211,6198,17236
      2006-04-11,21295,6920,5990,6775,9058,15098,7157,6480,7008,17876
      2006-04-10,20400,7884,7130,7121,9444,15368,7209,6882,6754,18190
      2006-04-09,17661,8275,6722,4877,8314,12327,6624,6094,4010,16891
      2006-04-08,15475,4075,5588,4255,6749,11202,5113,5345,4189,13805
      2006-04-07,16665,5005,6591,6239,7554,12768,5728,5460,5446,15798
      2006-04-06,19503,5947,6436,6253,7816,14658,6364,6162,4673,19142
      2006-04-05,20200,6926,4555,6586,8215,15723,6303,6623,7475,18965
      2006-04-04,22150,7313,5270,6666,9276,17877,6961,6875,7924,20448
      2006-04-03,21625,7708,5101,6929,9346,16551,7307,8575,7912,20424
      2006-04-02,18144,8326,4435,4280,8547,12570,7036,8794,4348,16711
      2006-04-01,15731,4686,3796,3771,6816,11279,5152,7291,4288,14598
      2006-03-31,17088,5418,3204,5293,3325,13350,5884,7280,6761,15748
      2006-03-30,19747,6393,3861,5904,1826,16076,7200,8389,7644,17393
      2006-03-29,20838,6541,3820,5455,7625,17052,7006,9259,8914,19080
      2006-03-28,22014,6523,3838,5959,8975,17497,7472,9483,9013,19456
      2006-03-27,22530,7259,4584,6941,9632,17646,7803,10399,8838,19876
      2006-03-26,18887,8467,4469,4328,7490,13468,5969,8477,5344,17148
      2006-03-25,15830,5621,4137,3880,5872,12167,5160,6589,5566,14497
      2006-03-24,17656,6145,4754,5717,6684,15026,5439,7826,7834,16712
      2006-03-23,20957,6158,4907,6313,7032,16768,6229,9006,8228,18539
      2006-03-22,20865,6855,5564,6308,7121,17086,6297,8260,6977,21450
    • sitecrawl
      Here s my customized chron.pl: // ploticus data display engine. Software, documentation, and examples. // Copyright 1998-2002 Stephen C. Grubb (scg@jax.org).
      Message 2 of 3 , May 1, 2006
      • 0 Attachment
        Here's my customized chron.pl:

        // ploticus data display engine. Software, documentation, and
        examples.
        // Copyright 1998-2002 Stephen C. Grubb (scg@...).
        // Covered by GPL; see the file 'Copyright' for details.
        // http://ploticus.sourceforge.net

        //// CHRON - do a graph over time

        //// load chron-specific parameters
        #setifnotgiven y = ""
        #setifnotgiven y2 = ""
        #setifnotgiven y3 = ""
        #setifnotgiven y4 = ""
        #setifnotgiven y5 = ""
        #setifnotgiven y6 = ""
        #setifnotgiven y7 = ""
        #setifnotgiven y8 = ""
        #setifnotgiven y9 = ""
        #setifnotgiven y10 = ""
        #setifnotgiven y11 = ""
        #setifnotgiven y12 = ""
        #setifnotgiven y13 = ""
        #setifnotgiven y14 = ""
        #setifnotgiven y15 = ""
        #setifnotgiven y16 = ""
        #setifnotgiven y17 = ""
        #setifnotgiven y18 = ""
        #setifnotgiven y19 = ""
        #setifnotgiven y20 = ""
        #setifnotgiven y21 = ""
        #setifnotgiven y22 = ""
        #setifnotgiven y23 = ""
        #setifnotgiven y24 = ""
        #setifnotgiven y25 = ""
        #setifnotgiven y26 = ""
        #setifnotgiven y27 = ""
        #setifnotgiven y28 = ""
        #setifnotgiven y29 = ""
        #setifnotgiven y30 = ""
        #setifnotgiven y31 = ""
        #setifnotgiven y32 = ""
        #setifnotgiven y33 = ""
        #setifnotgiven y34 = ""
        #setifnotgiven y35 = ""
        #setifnotgiven y36 = ""
        #setifnotgiven y37 = ""
        #setifnotgiven y38 = ""
        #setifnotgiven y39 = ""
        #setifnotgiven y40 = ""
        #if @mode = bars
        #setifnotgiven color = "rgb(255,255,51)"
        #setifnotgiven color2 = "rgb(255,51,0)"
        #setifnotgiven color3 = "rgb(51,0,51)"
        #setifnotgiven color4 = "rgb(153,255,0)"
        #setifnotgiven color5 = "rgb(102,102,204)"
        #setifnotgiven color6 = "rgb(102,0,0)"
        #setifnotgiven color7 = "rgb(51,51,153)"
        #setifnotgiven color8 = "rgb(0,153,0)"
        #setifnotgiven color9 = "rgb(255,153,204)"
        #setifnotgiven color10 = "rgb(153,255,102)"
        #setifnotgiven color11 = "rgb(204,51,153)"
        #setifnotgiven color12 = "rgb(102,102,0)"
        #setifnotgiven color13 = "rgb(255,0,255)"
        #setifnotgiven color14 = "rgb(255,153,0)"
        #setifnotgiven color15 = "rgb(0,0,0)"
        #setifnotgiven color16 = "rgb(0,204,51)"
        #setifnotgiven color17 = "rgb(51,51,255)"
        #setifnotgiven color18 = "rgb(0,204,102)"
        #setifnotgiven color19 = "rgb(255,255,0)"
        #setifnotgiven color20 = "rgb(255,204,153)"
        #setifnotgiven color21 = "rgb(153,153,255)"
        #setifnotgiven color22 = "rgb(51,102,0)"
        #setifnotgiven color23 = "rgb(0,0,102)"
        #setifnotgiven color24 = "rgb(153,0,255)"
        #setifnotgiven color25 = "rgb(204,102,0)"
        #setifnotgiven color26 = "rgb(153,102,102)"
        #setifnotgiven color27 = "rgb(0,0,51)"
        #setifnotgiven color28 = "rgb(153,255,153)"
        #setifnotgiven color29 = "rgb(153,255,0)"
        #setifnotgiven color30 = "rgb(255,255,153)"
        #setifnotgiven color31 = "rgb(255,0,0)"
        #setifnotgiven color32 = "rgb(51,255,204)"
        #setifnotgiven color33 = "rgb(51,153,102)"
        #setifnotgiven color34 = "rgb(255,0,102)"
        #setifnotgiven color35 = "rgb(153,102,255)"
        #setifnotgiven color36 = "rgb(51,51,51)"
        #setifnotgiven color37 = "rgb(204,102,204)"
        #setifnotgiven color38 = "rgb(153,153,102)"
        #setifnotgiven color39 = "rgb(102,153,204)"
        #setifnotgiven color40 = "rgb(204,102,102)"
        #endif
        #setifnotgiven name = "#usefname"
        #setifnotgiven name2 = "#usefname"
        #setifnotgiven name3 = "#usefname"
        #setifnotgiven name4 = "#usefname"
        #setifnotgiven name5 = "#usefname"
        #setifnotgiven name6 = "#usefname"
        #setifnotgiven name7 = "#usefname"
        #setifnotgiven name8 = "#usefname"
        #setifnotgiven name9 = "#usefname"
        #setifnotgiven name10 = "#usefname"
        #setifnotgiven name11 = "#usefname"
        #setifnotgiven name12 = "#usefname"
        #setifnotgiven name13 = "#usefname"
        #setifnotgiven name14 = "#usefname"
        #setifnotgiven name15 = "#usefname"
        #setifnotgiven name16 = "#usefname"
        #setifnotgiven name17 = "#usefname"
        #setifnotgiven name18 = "#usefname"
        #setifnotgiven name19 = "#usefname"
        #setifnotgiven name20 = "#usefname"
        #setifnotgiven name21 = "#usefname"
        #setifnotgiven name22 = "#usefname"
        #setifnotgiven name23 = "#usefname"
        #setifnotgiven name24 = "#usefname"
        #setifnotgiven name25 = "#usefname"
        #setifnotgiven name26 = "#usefname"
        #setifnotgiven name27 = "#usefname"
        #setifnotgiven name28 = "#usefname"
        #setifnotgiven name29 = "#usefname"
        #setifnotgiven name30 = "#usefname"
        #setifnotgiven name31 = "#usefname"
        #setifnotgiven name32 = "#usefname"
        #setifnotgiven name33 = "#usefname"
        #setifnotgiven name34 = "#usefname"
        #setifnotgiven name35 = "#usefname"
        #setifnotgiven name36 = "#usefname"
        #setifnotgiven name37 = "#usefname"
        #setifnotgiven name38 = "#usefname"
        #setifnotgiven name39 = "#usefname"
        #setifnotgiven name40 = "#usefname"
        #if @mode = line
        #setifnotgiven linedet = "color=rgb(255,255,51)"
        #setifnotgiven linedet2 = "color=rgb(255,51,0)"
        #setifnotgiven linedet3 = "color=rgb(51,0,51)"
        #setifnotgiven linedet4 = "color=rgb(153,255,0)"
        #setifnotgiven linedet5 = "color=rgb(102,102,204)"
        #setifnotgiven linedet6 = "color=rgb(102,153,204)"
        #setifnotgiven linedet7 = "color=rgb(255,0,102)"
        #setifnotgiven linedet8 = "color=rgb(0,153,0)"
        #setifnotgiven linedet9 = "color=rgb(255,153,204)"
        #setifnotgiven linedet10 = "color=rgb(255,0,0)"
        //#"color=rgb(153,255,102)"
        #setifnotgiven linedet11 = "color=rgb(204,51,153)"
        #setifnotgiven linedet12 = "color=rgb(102,102,0)"
        #setifnotgiven linedet13 = "color=rgb(255,0,255)"
        #setifnotgiven linedet14 = "color=rgb(255,153,0)"
        #setifnotgiven linedet15 = "color=rgb(0,0,0)"
        #setifnotgiven linedet16 = "color=rgb(0,204,51)"
        #setifnotgiven linedet17 = "color=rgb(51,51,255)"
        #setifnotgiven linedet18 = "color=rgb(0,204,102)"
        #setifnotgiven linedet19 = "color=rgb(255,255,0)"
        #setifnotgiven linedet20 = "color=rgb(255,204,153)"
        #setifnotgiven linedet21 = "color=rgb(153,153,255)"
        #setifnotgiven linedet22 = "color=rgb(51,102,0)"
        #setifnotgiven linedet23 = "color=rgb(0,0,102)"
        #setifnotgiven linedet24 = "color=rgb(153,0,255)"
        #setifnotgiven linedet25 = "color=rgb(204,102,0)"
        #setifnotgiven linedet26 = "color=rgb(153,102,102)"
        #setifnotgiven linedet27 = "color=rgb(0,0,51)"
        #setifnotgiven linedet28 = "color=rgb(153,255,153)"
        #setifnotgiven linedet29 = "color=rgb(153,255,0)"
        #setifnotgiven linedet30 = "color=rgb(255,255,153)"
        #setifnotgiven linedet31 = "color=rgb(102,0,0)"
        #setifnotgiven linedet32 = "color=rgb(51,51,153)"
        #setifnotgiven linedet33 = "color=rgb(51,153,102)"
        #setifnotgiven linedet34 = "color=rgb(204,102,102)"
        #setifnotgiven linedet35 = "color=rgb(153,102,255)"
        #setifnotgiven linedet36 = "color=rgb(51,51,51)"
        #setifnotgiven linedet37 = "color=rgb(204,102,204)"
        #setifnotgiven linedet38 = "color=rgb(153,153,102)"
        #setifnotgiven linedet39 = "color=rgb(255,0,0)"
        #setifnotgiven linedet40 = "color=rgb(51,255,204)"
        #endif

        #setifnotgiven datefmt = "mmddyy"
        #setifnotgiven mode = bars
        #setifnotgiven barwidth = ""
        #setifnotgiven outline = "no"
        #setifnotgiven crossover = ""
        #setifnotgiven stack = no
        #setifnotgiven step = "no"
        #setifnotgiven tab = ""
        #setifnotgiven tabmode = "mid"
        #setifnotgiven xyears = ""
        // #setifnotgiven xmargin = ""
        // xmargin set below.. scg 10/21/04
        #setifnotgiven curve = ""
        #setifnotgiven order = "5"
        #setifnotgiven omitweekends = "no"
        #setifnotgiven unittype = date
        #setifnotgiven timefld = ""
        #if @CM_UNITS = 1
        #setifnotgiven legend = "min+1.2 min-1.2"
        #else
        #setifnotgiven legend = "min+0.5 min-0.5"
        #endif

        #if @timefld != ""
        #set unittype = datetime
        #endif

        /////// change to use the new 'datematic' feature..
        // #if @unittype = time
        // #setifnotgiven nearest = hour
        // #setifnotgiven stubfmt = HHA
        // #else
        // #setifnotgiven nearest = day
        // #setifnotgiven stubfmt = "MMMdd"
        // #endif
        // #setifnotgiven xinc = "7"
        #setifnotgiven nearest = datematic
        #setifnotgiven xinc = datematic
        #if @xinc != datematic
        #if @unittyp = time
        #setifnotgiven stubfmt = HHA
        #else
        #setifnotgiven stubfmt = "MMMdd"
        #endif
        #endif

        #include $chunk_setstd

        #proc settings
        dateformat: @datefmt
        omitweekends: @omitweekends

        #musthave data

        //// read data file..
        #set context = chron
        #include $chunk_read


        //// restrictions..
        #if @tab = "" && @y = ""
        #write stderr
        Error: 'y' is required unless 'tab' is being used.
        #endwrite
        #exit
        #endif

        #if @tab != "" && @y2 != ""
        #write stderr
        only one curve is supported with tab=yes .. y2 (etc.) cancelled
        #endwrite
        #set y2 = ""
        #endif



        #if @tab != ""
        // count or summate..

        #proc processdata
        action: count
        #if @y = ""
        fields: @x
        #else
        fields: @x @y
        #endif
        // showresults: yes
        #endproc

        #set x = 1
        #set y = 2

        #endif

        // map xnearest -> nearest (nearest is historical)
        #if @xnearest = auto
        #set xnearest = @nearest
        #endif

        // changed these to setifnotgiven - scg 10/21/04
        #if @mode = bars
        #setifnotgiven xmargin = 1
        #else
        #setifnotgiven xmargin = 0
        #endif

        //// plot area
        #include $chunk_area
        // X range & Y range..
        #if @xrange = ""
        xautorange: datafield=@x nearest=@xnearest margin=@xmargin
        #else
        xrange: @xrange
        #endif
        #if @stack = yes
        #set combomode = stack
        #else
        #set combomode = normal
        #endif
        #if @yrange = ""
        yautorange:
        datafields=@y,@y2,@y3,@y4,@y5,@y6,@y7,@y8,@y9,@y10,@y11,@y12,@y13,@y1
        4,@y15,@y16,@y17,@y18,@y19,@y20,@y21,@y22,@y23,@y24,@y25,@y26,@y27,@y
        28,@y29,@y30,@y31,@y32,@y33,@y34,@y35,@y36,@y37,@y38,@y39,@y40
        incmult=2.0 nearest=@ynearest combomode=@combomode
        // #elseif @yrange = "0"
        #elseif $ntoken( 2, @yrange ) = ""
        yautorange:
        datafields=@y,@y2,@y3,@y4,@y5,@y6,@y7,@y8,@y9,@y10,@y11,@y12,@y13,@y1
        4,@y15,@y16,@y17,@y18,@y19,@y20,@y21,@y22,@y23,@y24,@y25,@y26,@y27,@y
        28,@y29,@y30,@y31,@y32,@y33,@y34,@y35,@y36,@y37,@y38,@y39,@y40
        incmult=2.0 mininit=@yrange nearest=@ynearest combomode=@combomode
        #else
        yrange: @yrange
        #endif


        //// Y axis..
        #include $chunk_yaxis


        //// X axis..
        #include $chunk_xaxis
        #set autoyears = @xyears
        #ifspec autoyears
        #ifspec automonths
        #ifspec autodays


        //// title..
        #include $chunk_title


        //// user pre-plot include..
        #if @include1 != ""
        #include @include1
        #endif


        //// do curve fit..
        #if @curve != ""
        #if @curve = "yes"
        #set curve = "color=pink width=0.5"
        #endif
        #proc curvefit
        xfield: @x
        yfield: @y
        linedetails: @curve
        order: @order
        #endif


        //// do bars or line..
        #if @mode = bars
        #proc bars
        locfield: @x
        lenfield: @y
        color: @color
        outline: @outline
        #if @barwidth = line
        thinbarline: color=@color
        #else
        #ifspec barwidth
        #endif
        #ifspec crossover
        #ifspec clickmapurl
        #ifspec clickmaplabel
        #ifspec ptselect select

        #set ncluster = 1
        #if @y40 != ""
        #set ncluster = 40
        #elseif @y39 != ""
        #set ncluster = 39
        #elseif @y38 != ""
        #set ncluster = 38
        #elseif @y37 != ""
        #set ncluster = 37
        #elseif @y36 != ""
        #set ncluster = 36
        #elseif @y35 != ""
        #set ncluster = 35
        #elseif @y34 != ""
        #set ncluster = 34
        #elseif @y33 != ""
        #set ncluster = 33
        #elseif @y32 != ""
        #set ncluster = 32
        #elseif @y31 != ""
        #set ncluster = 31
        #elseif @y30 != ""
        #set ncluster = 30
        #elseif @y29 != ""
        #set ncluster = 29
        #elseif @y28 != ""
        #set ncluster = 28
        #elseif @y27 != ""
        #set ncluster = 27
        #elseif @y26 != ""
        #set ncluster = 26
        #elseif @y25 != ""
        #set ncluster = 25
        #elseif @y24 != ""
        #set ncluster = 24
        #elseif @y23 != ""
        #set ncluster = 23
        #elseif @y22 != ""
        #set ncluster = 22
        #elseif @y21 != ""
        #set ncluster = 21
        #elseif @y20 != ""
        #set ncluster = 20
        #elseif @y19 != ""
        #set ncluster = 19
        #elseif @y18 != ""
        #set ncluster = 18
        #elseif @y17 != ""
        #set ncluster = 17
        #elseif @y16 != ""
        #set ncluster = 16
        #elseif @y15 != ""
        #set ncluster = 15
        #elseif @y14 != ""
        #set ncluster = 14
        #elseif @y13 != ""
        #set ncluster = 13
        #elseif @y12 != ""
        #set ncluster = 12
        #elseif @y11 != ""
        #set ncluster = 11
        #elseif @y10 != ""
        #set ncluster = 10
        #elseif @y9 != ""
        #set ncluster = 9
        #elseif @y8 != ""
        #set ncluster = 8
        #elseif @y7 != ""
        #set ncluster = 7
        #elseif @y6 != ""
        #set ncluster = 6
        #elseif @y5 != ""
        #set ncluster = 5
        #elseif @y4 != ""
        #set ncluster = 4
        #elseif @y3 != ""
        #set ncluster = 3
        #elseif @y2 != ""
        #set ncluster = 2
        #endif
        #if @ncluster > 1 && @stack != yes
        cluster: 1 / @ncluster
        #endif
        #saveas B

        #elseif @mode = line
        #procdef lineplot
        xfield: @x
        linedetails: @linedet
        stairstep: @step
        #ifspec gapmissing
        // the following was added - scg 11/19/04..
        #ifspec lineclip clip
        #saveas L

        #proc lineplot
        #clone L
        yfield: @y
        #ifspec ptselect select
        #ifspec fill
        #endif
        legendlabel: @name


        // optional 2nd curve or set of bars..
        #if @y2 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y2
        color: @color2
        #if @barwidth = line
        thinbarline: color=@color2
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 2 / @ncluster
        #endif
        #ifspec ptselect2 select
        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y2
        linedetails: @linedet2
        #ifspec fill2 fill
        #ifspec ptselect2 select
        #endif
        legendlabel: @name2
        #endif


        // optional 3d curve or set of bars..
        #if @y3 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y3
        color: @color3
        #if @barwidth = line
        thinbarline: color=@color3
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 3 / @ncluster
        #endif
        #ifspec ptselect3 select
        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y3
        linedetails: @linedet3
        #ifspec fill3 fill
        #ifspec ptselect3 select
        #endif
        legendlabel: @name3
        #endif


        // optional 4th curve or set of bars..
        #if @y4 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y4
        color: @color4
        #if @barwidth = line
        thinbarline: color=@color4
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 4 / @ncluster
        #endif
        #ifspec ptselect4 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y4
        linedetails: @linedet4
        #ifspec fill4 fill
        #ifspec ptselect4 select

        #endif
        legendlabel: @name4
        #endif


        // optional 5th curve or set of bars..
        #if @y5 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y5
        color: @color5
        #if @barwidth = line
        thinbarline: color=@color5
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 5 / @ncluster
        #endif
        #ifspec ptselect5 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y5
        linedetails: @linedet5
        #ifspec fill5 fill
        #ifspec ptselect5 select

        #endif
        legendlabel: @name5
        #endif

        // optional 6th curve or set of bars..
        #if @y6 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y6
        color: @color6
        #if @barwidth = line
        thinbarline: color=@color6
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 6 / @ncluster
        #endif
        #ifspec ptselect6 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y6
        linedetails: @linedet6
        #ifspec fill6 fill
        #ifspec ptselect6 select

        #endif
        legendlabel: @name6
        #endif

        // optional 7th curve or set of bars..
        #if @y7 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y7
        color: @color7
        #if @barwidth = line
        thinbarline: color=@color7
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 7 / @ncluster
        #endif
        #ifspec ptselect7 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y7
        linedetails: @linedet7
        #ifspec fill7 fill
        #ifspec ptselect7 select

        #endif
        legendlabel: @name7
        #endif

        // optional 8th curve or set of bars..
        #if @y8 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y8
        color: @color8
        #if @barwidth = line
        thinbarline: color=@color8
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 8 / @ncluster
        #endif
        #ifspec ptselect8 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y8
        linedetails: @linedet8
        #ifspec fill8 fill
        #ifspec ptselect8 select

        #endif
        legendlabel: @name8
        #endif

        // optional 9th curve or set of bars..
        #if @y9 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y9
        color: @color9
        #if @barwidth = line
        thinbarline: color=@color9
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 9 / @ncluster
        #endif
        #ifspec ptselect9 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y9
        linedetails: @linedet9
        #ifspec fill9 fill
        #ifspec ptselect9 select

        #endif
        legendlabel: @name9
        #endif

        // optional 10th curve or set of bars..
        #if @y10 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y10
        color: @color10
        #if @barwidth = line
        thinbarline: color=@color10
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 10 / @ncluster
        #endif
        #ifspec ptselect10 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y10
        linedetails: @linedet10
        #ifspec fill10 fill
        #ifspec ptselect10 select

        #endif
        legendlabel: @name10
        #endif

        // optional 11th curve or set of bars..
        #if @y11 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y11
        color: @color11
        #if @barwidth = line
        thinbarline: color=@color11
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 11 / @ncluster
        #endif
        #ifspec ptselect11 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y11
        linedetails: @linedet11
        #ifspec fill11 fill
        #ifspec ptselect11 select

        #endif
        legendlabel: @name11
        #endif

        // optional 12th curve or set of bars..
        #if @y12 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y12
        color: @color12
        #if @barwidth = line
        thinbarline: color=@color12
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 12 / @ncluster
        #endif
        #ifspec ptselect12 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y12
        linedetails: @linedet12
        #ifspec fill12 fill
        #ifspec ptselect12 select

        #endif
        legendlabel: @name12
        #endif

        // optional 13th curve or set of bars..
        #if @y13 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y13
        color: @color13
        #if @barwidth = line
        thinbarline: color=@color13
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 13 / @ncluster
        #endif
        #ifspec ptselect13 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y13
        linedetails: @linedet13
        #ifspec fill13 fill
        #ifspec ptselect13 select

        #endif
        legendlabel: @name13
        #endif

        // optional 14th curve or set of bars..
        #if @y14 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y14
        color: @color14
        #if @barwidth = line
        thinbarline: color=@color14
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 14 / @ncluster
        #endif
        #ifspec ptselect14 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y14
        linedetails: @linedet14
        #ifspec fill14 fill
        #ifspec ptselect14 select

        #endif
        legendlabel: @name14
        #endif

        // optional 15th curve or set of bars..
        #if @y15 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y15
        color: @color15
        #if @barwidth = line
        thinbarline: color=@color15
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 15 / @ncluster
        #endif
        #ifspec ptselect15 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y15
        linedetails: @linedet15
        #ifspec fill15 fill
        #ifspec ptselect15 select

        #endif
        legendlabel: @name15
        #endif

        // optional 16th curve or set of bars..
        #if @y16 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y16
        color: @color16
        #if @barwidth = line
        thinbarline: color=@color16
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 16 / @ncluster
        #endif
        #ifspec ptselect16 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y16
        linedetails: @linedet16
        #ifspec fill16 fill
        #ifspec ptselect16 select

        #endif
        legendlabel: @name16
        #endif

        // optional 17th curve or set of bars..
        #if @y17 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y17
        color: @color17
        #if @barwidth = line
        thinbarline: color=@color17
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 17 / @ncluster
        #endif
        #ifspec ptselect17 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y17
        linedetails: @linedet17
        #ifspec fill17 fill
        #ifspec ptselect17 select

        #endif
        legendlabel: @name17
        #endif

        // optional 18th curve or set of bars..
        #if @y18 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y18
        color: @color18
        #if @barwidth = line
        thinbarline: color=@color18
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 18 / @ncluster
        #endif
        #ifspec ptselect18 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y18
        linedetails: @linedet18
        #ifspec fill18 fill
        #ifspec ptselect18 select

        #endif
        legendlabel: @name18
        #endif

        // optional 19th curve or set of bars..
        #if @y19 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y19
        color: @color19
        #if @barwidth = line
        thinbarline: color=@color19
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 19 / @ncluster
        #endif
        #ifspec ptselect19 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y19
        linedetails: @linedet19
        #ifspec fill19 fill
        #ifspec ptselect19 select

        #endif
        legendlabel: @name19
        #endif

        // optional 20th curve or set of bars..
        #if @y20 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y20
        color: @color20
        #if @barwidth = line
        thinbarline: color=@color20
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 20 / @ncluster
        #endif
        #ifspec ptselect20 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y20
        linedetails: @linedet20
        #ifspec fill20 fill
        #ifspec ptselect20 select

        #endif
        legendlabel: @name20
        #endif

        // optional 21th curve or set of bars..
        #if @y21 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y21
        color: @color21
        #if @barwidth = line
        thinbarline: color=@color21
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 21 / @ncluster
        #endif
        #ifspec ptselect21 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y21
        linedetails: @linedet21
        #ifspec fill21 fill
        #ifspec ptselect21 select

        #endif
        legendlabel: @name21
        #endif

        // optional 22th curve or set of bars..
        #if @y22 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y22
        color: @color22
        #if @barwidth = line
        thinbarline: color=@color22
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 22 / @ncluster
        #endif
        #ifspec ptselect22 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y22
        linedetails: @linedet22
        #ifspec fill22 fill
        #ifspec ptselect22 select

        #endif
        legendlabel: @name22
        #endif

        // optional 23th curve or set of bars..
        #if @y23 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y23
        color: @color23
        #if @barwidth = line
        thinbarline: color=@color23
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 23 / @ncluster
        #endif
        #ifspec ptselect23 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y23
        linedetails: @linedet23
        #ifspec fill23 fill
        #ifspec ptselect23 select

        #endif
        legendlabel: @name23
        #endif

        // optional 24th curve or set of bars..
        #if @y24 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y24
        color: @color24
        #if @barwidth = line
        thinbarline: color=@color24
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 24 / @ncluster
        #endif
        #ifspec ptselect24 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y24
        linedetails: @linedet24
        #ifspec fill24 fill
        #ifspec ptselect24 select

        #endif
        legendlabel: @name24
        #endif

        // optional 25th curve or set of bars..
        #if @y25 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y25
        color: @color25
        #if @barwidth = line
        thinbarline: color=@color25
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 25 / @ncluster
        #endif
        #ifspec ptselect25 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y25
        linedetails: @linedet25
        #ifspec fill25 fill
        #ifspec ptselect25 select

        #endif
        legendlabel: @name25
        #endif

        // optional 26th curve or set of bars..
        #if @y26 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y26
        color: @color26
        #if @barwidth = line
        thinbarline: color=@color26
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 26 / @ncluster
        #endif
        #ifspec ptselect26 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y26
        linedetails: @linedet26
        #ifspec fill26 fill
        #ifspec ptselect26 select

        #endif
        legendlabel: @name26
        #endif

        // optional 27th curve or set of bars..
        #if @y27 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y27
        color: @color27
        #if @barwidth = line
        thinbarline: color=@color27
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 27 / @ncluster
        #endif
        #ifspec ptselect27 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y27
        linedetails: @linedet27
        #ifspec fill27 fill
        #ifspec ptselect27 select

        #endif
        legendlabel: @name27
        #endif

        // optional 28th curve or set of bars..
        #if @y28 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y28
        color: @color28
        #if @barwidth = line
        thinbarline: color=@color28
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 28 / @ncluster
        #endif
        #ifspec ptselect28 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y28
        linedetails: @linedet28
        #ifspec fill28 fill
        #ifspec ptselect28 select

        #endif
        legendlabel: @name28
        #endif

        // optional 29th curve or set of bars..
        #if @y29 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y29
        color: @color29
        #if @barwidth = line
        thinbarline: color=@color29
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 29 / @ncluster
        #endif
        #ifspec ptselect29 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y29
        linedetails: @linedet29
        #ifspec fill29 fill
        #ifspec ptselect29 select

        #endif
        legendlabel: @name29
        #endif

        // optional 30th curve or set of bars..
        #if @y30 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y30
        color: @color30
        #if @barwidth = line
        thinbarline: color=@color30
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 30 / @ncluster
        #endif
        #ifspec ptselect30 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y30
        linedetails: @linedet30
        #ifspec fill30 fill
        #ifspec ptselect30 select

        #endif
        legendlabel: @name30
        #endif

        // optional 31th curve or set of bars..
        #if @y31 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y31
        color: @color31
        #if @barwidth = line
        thinbarline: color=@color31
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 31 / @ncluster
        #endif
        #ifspec ptselect31 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y31
        linedetails: @linedet31
        #ifspec fill31 fill
        #ifspec ptselect31 select

        #endif
        legendlabel: @name31
        #endif

        // optional 32th curve or set of bars..
        #if @y32 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y32
        color: @color32
        #if @barwidth = line
        thinbarline: color=@color32
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 32 / @ncluster
        #endif
        #ifspec ptselect32 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y32
        linedetails: @linedet32
        #ifspec fill32 fill
        #ifspec ptselect32 select

        #endif
        legendlabel: @name32
        #endif

        // optional 33th curve or set of bars..
        #if @y33 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y33
        color: @color33
        #if @barwidth = line
        thinbarline: color=@color33
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 33 / @ncluster
        #endif
        #ifspec ptselect33 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y33
        linedetails: @linedet33
        #ifspec fill33 fill
        #ifspec ptselect33 select

        #endif
        legendlabel: @name33
        #endif

        // optional 34th curve or set of bars..
        #if @y34 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y34
        color: @color34
        #if @barwidth = line
        thinbarline: color=@color34
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 34 / @ncluster
        #endif
        #ifspec ptselect34 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y34
        linedetails: @linedet34
        #ifspec fill34 fill
        #ifspec ptselect34 select

        #endif
        legendlabel: @name34
        #endif

        // optional 35th curve or set of bars..
        #if @y35 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y35
        color: @color35
        #if @barwidth = line
        thinbarline: color=@color35
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 35 / @ncluster
        #endif
        #ifspec ptselect35 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y35
        linedetails: @linedet35
        #ifspec fill35 fill
        #ifspec ptselect35 select

        #endif
        legendlabel: @name35
        #endif

        // optional 36th curve or set of bars..
        #if @y36 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y36
        color: @color36
        #if @barwidth = line
        thinbarline: color=@color36
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 36 / @ncluster
        #endif
        #ifspec ptselect36 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y36
        linedetails: @linedet36
        #ifspec fill36 fill
        #ifspec ptselect36 select

        #endif
        legendlabel: @name36
        #endif

        // optional 37th curve or set of bars..
        #if @y37 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y37
        color: @color37
        #if @barwidth = line
        thinbarline: color=@color37
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 37 / @ncluster
        #endif
        #ifspec ptselect37 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y37
        linedetails: @linedet37
        #ifspec fill37 fill
        #ifspec ptselect37 select

        #endif
        legendlabel: @name37
        #endif

        // optional 38th curve or set of bars..
        #if @y38 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y38
        color: @color38
        #if @barwidth = line
        thinbarline: color=@color38
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 38 / @ncluster
        #endif
        #ifspec ptselect38 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y38
        linedetails: @linedet38
        #ifspec fill38 fill
        #ifspec ptselect38 select

        #endif
        legendlabel: @name38
        #endif

        // optional 39th curve or set of bars..
        #if @y39 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y39
        color: @color39
        #if @barwidth = line
        thinbarline: color=@color39
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 39 / @ncluster
        #endif
        #ifspec ptselect39 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y39
        linedetails: @linedet39
        #ifspec fill39 fill
        #ifspec ptselect39 select

        #endif
        legendlabel: @name39
        #endif

        // optional 40th curve or set of bars..
        #if @y40 != ""
        #if @mode = bars
        #proc bars
        #clone B
        lenfield: @y40
        color: @color40
        #if @barwidth = line
        thinbarline: color=@color40
        #else
        #ifspec barwidth
        #endif
        #if @stack = yes
        stackfields: *
        #else
        cluster: 40 / @ncluster
        #endif
        #ifspec ptselect40 select

        #elseif @mode = line
        #proc lineplot
        #clone L
        yfield: @y40
        linedetails: @linedet40
        #ifspec fill40 fill
        #ifspec ptselect40 select

        #endif
        legendlabel: @name40
        #endif

        //// crossover line..
        #if @crossover != ""
        #proc line
        linedetails: width=0.5
        points: min @crossover(s) max @crossover(s)
        #endif


        // do legend
        #if @tab = yes && @header = yes && @name = "#usefname"
        // field names not valid after tabulate filter..
        #set header = no
        #endif
        #if @name != "#usefname" || @header = yes
        #proc legend
        location: @legend
        #ifspec legendfmt format
        #ifspec legendsep sep
        #ifspec legwrap wraplen
        #ifspec legbreak extent
        #ifspec legtitle title
        #ifspec legbox backcolor
        #ifspec legframe frame
        #ifspec legtextdet textdetails

        #endif


        //// user post-plot include
        #if @include2 != ""
        #include @include2
        #endif
      • Stephen C. Grubb
        Hi, I think this is kind of overloading the concept. Perhaps you ve gotten it to work, but if not, maybe consider attacking the problem by using multiple runs
        Message 3 of 3 , May 25, 2006
        • 0 Attachment
          Hi, I think this is kind of overloading the concept.

          Perhaps you've gotten it to work, but if not, maybe consider attacking the
          problem by using multiple runs (one curve per run) and using the -drawdump
          option to combine/overlay them into one presentation (see "overlaying and
          combining multiple graphs" on
          http://ploticus.sourceforge.net/doc/prefabs.html)


          -Steve


          On Mon, 1 May 2006, sitecrawl wrote:

          > Here's my customized chron.pl:
          >
          > // ploticus data display engine. Software, documentation, and
          > examples.
          > // Copyright 1998-2002 Stephen C. Grubb (scg@...).
          > // Covered by GPL; see the file 'Copyright' for details.
          > // http://ploticus.sourceforge.net
          >
          > //// CHRON - do a graph over time
          >
          > //// load chron-specific parameters
          > #setifnotgiven y = ""
          > #setifnotgiven y2 = ""
          > #setifnotgiven y3 = ""
          > #setifnotgiven y4 = ""
          > #setifnotgiven y5 = ""
          > #setifnotgiven y6 = ""
          > #setifnotgiven y7 = ""
          > #setifnotgiven y8 = ""
          > #setifnotgiven y9 = ""
          > #setifnotgiven y10 = ""
          > #setifnotgiven y11 = ""
          > #setifnotgiven y12 = ""
          > #setifnotgiven y13 = ""
          > #setifnotgiven y14 = ""
          > #setifnotgiven y15 = ""
          > #setifnotgiven y16 = ""
          > #setifnotgiven y17 = ""
          > #setifnotgiven y18 = ""
          > #setifnotgiven y19 = ""
          > #setifnotgiven y20 = ""
          > #setifnotgiven y21 = ""
          > #setifnotgiven y22 = ""
          > #setifnotgiven y23 = ""
          > #setifnotgiven y24 = ""
          > #setifnotgiven y25 = ""
          > #setifnotgiven y26 = ""
          > #setifnotgiven y27 = ""
          > #setifnotgiven y28 = ""
          > #setifnotgiven y29 = ""
          > #setifnotgiven y30 = ""
          > #setifnotgiven y31 = ""
          > #setifnotgiven y32 = ""
          > #setifnotgiven y33 = ""
          > #setifnotgiven y34 = ""
          > #setifnotgiven y35 = ""
          > #setifnotgiven y36 = ""
          > #setifnotgiven y37 = ""
          > #setifnotgiven y38 = ""
          > #setifnotgiven y39 = ""
          > #setifnotgiven y40 = ""
          > #if @mode = bars
          > #setifnotgiven color = "rgb(255,255,51)"
          > #setifnotgiven color2 = "rgb(255,51,0)"
          > #setifnotgiven color3 = "rgb(51,0,51)"
          > #setifnotgiven color4 = "rgb(153,255,0)"
          > #setifnotgiven color5 = "rgb(102,102,204)"
          > #setifnotgiven color6 = "rgb(102,0,0)"
          > #setifnotgiven color7 = "rgb(51,51,153)"
          > #setifnotgiven color8 = "rgb(0,153,0)"
          > #setifnotgiven color9 = "rgb(255,153,204)"
          > #setifnotgiven color10 = "rgb(153,255,102)"
          > #setifnotgiven color11 = "rgb(204,51,153)"
          > #setifnotgiven color12 = "rgb(102,102,0)"
          > #setifnotgiven color13 = "rgb(255,0,255)"
          > #setifnotgiven color14 = "rgb(255,153,0)"
          > #setifnotgiven color15 = "rgb(0,0,0)"
          > #setifnotgiven color16 = "rgb(0,204,51)"
          > #setifnotgiven color17 = "rgb(51,51,255)"
          > #setifnotgiven color18 = "rgb(0,204,102)"
          > #setifnotgiven color19 = "rgb(255,255,0)"
          > #setifnotgiven color20 = "rgb(255,204,153)"
          > #setifnotgiven color21 = "rgb(153,153,255)"
          > #setifnotgiven color22 = "rgb(51,102,0)"
          > #setifnotgiven color23 = "rgb(0,0,102)"
          > #setifnotgiven color24 = "rgb(153,0,255)"
          > #setifnotgiven color25 = "rgb(204,102,0)"
          > #setifnotgiven color26 = "rgb(153,102,102)"
          > #setifnotgiven color27 = "rgb(0,0,51)"
          > #setifnotgiven color28 = "rgb(153,255,153)"
          > #setifnotgiven color29 = "rgb(153,255,0)"
          > #setifnotgiven color30 = "rgb(255,255,153)"
          > #setifnotgiven color31 = "rgb(255,0,0)"
          > #setifnotgiven color32 = "rgb(51,255,204)"
          > #setifnotgiven color33 = "rgb(51,153,102)"
          > #setifnotgiven color34 = "rgb(255,0,102)"
          > #setifnotgiven color35 = "rgb(153,102,255)"
          > #setifnotgiven color36 = "rgb(51,51,51)"
          > #setifnotgiven color37 = "rgb(204,102,204)"
          > #setifnotgiven color38 = "rgb(153,153,102)"
          > #setifnotgiven color39 = "rgb(102,153,204)"
          > #setifnotgiven color40 = "rgb(204,102,102)"
          > #endif
          > #setifnotgiven name = "#usefname"
          > #setifnotgiven name2 = "#usefname"
          > #setifnotgiven name3 = "#usefname"
          > #setifnotgiven name4 = "#usefname"
          > #setifnotgiven name5 = "#usefname"
          > #setifnotgiven name6 = "#usefname"
          > #setifnotgiven name7 = "#usefname"
          > #setifnotgiven name8 = "#usefname"
          > #setifnotgiven name9 = "#usefname"
          > #setifnotgiven name10 = "#usefname"
          > #setifnotgiven name11 = "#usefname"
          > #setifnotgiven name12 = "#usefname"
          > #setifnotgiven name13 = "#usefname"
          > #setifnotgiven name14 = "#usefname"
          > #setifnotgiven name15 = "#usefname"
          > #setifnotgiven name16 = "#usefname"
          > #setifnotgiven name17 = "#usefname"
          > #setifnotgiven name18 = "#usefname"
          > #setifnotgiven name19 = "#usefname"
          > #setifnotgiven name20 = "#usefname"
          > #setifnotgiven name21 = "#usefname"
          > #setifnotgiven name22 = "#usefname"
          > #setifnotgiven name23 = "#usefname"
          > #setifnotgiven name24 = "#usefname"
          > #setifnotgiven name25 = "#usefname"
          > #setifnotgiven name26 = "#usefname"
          > #setifnotgiven name27 = "#usefname"
          > #setifnotgiven name28 = "#usefname"
          > #setifnotgiven name29 = "#usefname"
          > #setifnotgiven name30 = "#usefname"
          > #setifnotgiven name31 = "#usefname"
          > #setifnotgiven name32 = "#usefname"
          > #setifnotgiven name33 = "#usefname"
          > #setifnotgiven name34 = "#usefname"
          > #setifnotgiven name35 = "#usefname"
          > #setifnotgiven name36 = "#usefname"
          > #setifnotgiven name37 = "#usefname"
          > #setifnotgiven name38 = "#usefname"
          > #setifnotgiven name39 = "#usefname"
          > #setifnotgiven name40 = "#usefname"
          > #if @mode = line
          > #setifnotgiven linedet = "color=rgb(255,255,51)"
          > #setifnotgiven linedet2 = "color=rgb(255,51,0)"
          > #setifnotgiven linedet3 = "color=rgb(51,0,51)"
          > #setifnotgiven linedet4 = "color=rgb(153,255,0)"
          > #setifnotgiven linedet5 = "color=rgb(102,102,204)"
          > #setifnotgiven linedet6 = "color=rgb(102,153,204)"
          > #setifnotgiven linedet7 = "color=rgb(255,0,102)"
          > #setifnotgiven linedet8 = "color=rgb(0,153,0)"
          > #setifnotgiven linedet9 = "color=rgb(255,153,204)"
          > #setifnotgiven linedet10 = "color=rgb(255,0,0)"
          > //#"color=rgb(153,255,102)"
          > #setifnotgiven linedet11 = "color=rgb(204,51,153)"
          > #setifnotgiven linedet12 = "color=rgb(102,102,0)"
          > #setifnotgiven linedet13 = "color=rgb(255,0,255)"
          > #setifnotgiven linedet14 = "color=rgb(255,153,0)"
          > #setifnotgiven linedet15 = "color=rgb(0,0,0)"
          > #setifnotgiven linedet16 = "color=rgb(0,204,51)"
          > #setifnotgiven linedet17 = "color=rgb(51,51,255)"
          > #setifnotgiven linedet18 = "color=rgb(0,204,102)"
          > #setifnotgiven linedet19 = "color=rgb(255,255,0)"
          > #setifnotgiven linedet20 = "color=rgb(255,204,153)"
          > #setifnotgiven linedet21 = "color=rgb(153,153,255)"
          > #setifnotgiven linedet22 = "color=rgb(51,102,0)"
          > #setifnotgiven linedet23 = "color=rgb(0,0,102)"
          > #setifnotgiven linedet24 = "color=rgb(153,0,255)"
          > #setifnotgiven linedet25 = "color=rgb(204,102,0)"
          > #setifnotgiven linedet26 = "color=rgb(153,102,102)"
          > #setifnotgiven linedet27 = "color=rgb(0,0,51)"
          > #setifnotgiven linedet28 = "color=rgb(153,255,153)"
          > #setifnotgiven linedet29 = "color=rgb(153,255,0)"
          > #setifnotgiven linedet30 = "color=rgb(255,255,153)"
          > #setifnotgiven linedet31 = "color=rgb(102,0,0)"
          > #setifnotgiven linedet32 = "color=rgb(51,51,153)"
          > #setifnotgiven linedet33 = "color=rgb(51,153,102)"
          > #setifnotgiven linedet34 = "color=rgb(204,102,102)"
          > #setifnotgiven linedet35 = "color=rgb(153,102,255)"
          > #setifnotgiven linedet36 = "color=rgb(51,51,51)"
          > #setifnotgiven linedet37 = "color=rgb(204,102,204)"
          > #setifnotgiven linedet38 = "color=rgb(153,153,102)"
          > #setifnotgiven linedet39 = "color=rgb(255,0,0)"
          > #setifnotgiven linedet40 = "color=rgb(51,255,204)"
          > #endif
          >
          > #setifnotgiven datefmt = "mmddyy"
          > #setifnotgiven mode = bars
          > #setifnotgiven barwidth = ""
          > #setifnotgiven outline = "no"
          > #setifnotgiven crossover = ""
          > #setifnotgiven stack = no
          > #setifnotgiven step = "no"
          > #setifnotgiven tab = ""
          > #setifnotgiven tabmode = "mid"
          > #setifnotgiven xyears = ""
          > // #setifnotgiven xmargin = ""
          > // xmargin set below.. scg 10/21/04
          > #setifnotgiven curve = ""
          > #setifnotgiven order = "5"
          > #setifnotgiven omitweekends = "no"
          > #setifnotgiven unittype = date
          > #setifnotgiven timefld = ""
          > #if @CM_UNITS = 1
          > #setifnotgiven legend = "min+1.2 min-1.2"
          > #else
          > #setifnotgiven legend = "min+0.5 min-0.5"
          > #endif
          >
          > #if @timefld != ""
          > #set unittype = datetime
          > #endif
          >
          > /////// change to use the new 'datematic' feature..
          > // #if @unittype = time
          > // #setifnotgiven nearest = hour
          > // #setifnotgiven stubfmt = HHA
          > // #else
          > // #setifnotgiven nearest = day
          > // #setifnotgiven stubfmt = "MMMdd"
          > // #endif
          > // #setifnotgiven xinc = "7"
          > #setifnotgiven nearest = datematic
          > #setifnotgiven xinc = datematic
          > #if @xinc != datematic
          > #if @unittyp = time
          > #setifnotgiven stubfmt = HHA
          > #else
          > #setifnotgiven stubfmt = "MMMdd"
          > #endif
          > #endif
          >
          > #include $chunk_setstd
          >
          > #proc settings
          > dateformat: @datefmt
          > omitweekends: @omitweekends
          >
          > #musthave data
          >
          > //// read data file..
          > #set context = chron
          > #include $chunk_read
          >
          >
          > //// restrictions..
          > #if @tab = "" && @y = ""
          > #write stderr
          > Error: 'y' is required unless 'tab' is being used.
          > #endwrite
          > #exit
          > #endif
          >
          > #if @tab != "" && @y2 != ""
          > #write stderr
          > only one curve is supported with tab=yes .. y2 (etc.) cancelled
          > #endwrite
          > #set y2 = ""
          > #endif
          >
          >
          >
          > #if @tab != ""
          > // count or summate..
          >
          > #proc processdata
          > action: count
          > #if @y = ""
          > fields: @x
          > #else
          > fields: @x @y
          > #endif
          > // showresults: yes
          > #endproc
          >
          > #set x = 1
          > #set y = 2
          >
          > #endif
          >
          > // map xnearest -> nearest (nearest is historical)
          > #if @xnearest = auto
          > #set xnearest = @nearest
          > #endif
          >
          > // changed these to setifnotgiven - scg 10/21/04
          > #if @mode = bars
          > #setifnotgiven xmargin = 1
          > #else
          > #setifnotgiven xmargin = 0
          > #endif
          >
          > //// plot area
          > #include $chunk_area
          > // X range & Y range..
          > #if @xrange = ""
          > xautorange: datafield=@x nearest=@xnearest margin=@xmargin
          > #else
          > xrange: @xrange
          > #endif
          > #if @stack = yes
          > #set combomode = stack
          > #else
          > #set combomode = normal
          > #endif
          > #if @yrange = ""
          > yautorange:
          > datafields=@y,@y2,@y3,@y4,@y5,@y6,@y7,@y8,@y9,@y10,@y11,@y12,@y13,@y1
          > 4,@y15,@y16,@y17,@y18,@y19,@y20,@y21,@y22,@y23,@y24,@y25,@y26,@y27,@y
          > 28,@y29,@y30,@y31,@y32,@y33,@y34,@y35,@y36,@y37,@y38,@y39,@y40
          > incmult=2.0 nearest=@ynearest combomode=@combomode
          > // #elseif @yrange = "0"
          > #elseif $ntoken( 2, @yrange ) = ""
          > yautorange:
          > datafields=@y,@y2,@y3,@y4,@y5,@y6,@y7,@y8,@y9,@y10,@y11,@y12,@y13,@y1
          > 4,@y15,@y16,@y17,@y18,@y19,@y20,@y21,@y22,@y23,@y24,@y25,@y26,@y27,@y
          > 28,@y29,@y30,@y31,@y32,@y33,@y34,@y35,@y36,@y37,@y38,@y39,@y40
          > incmult=2.0 mininit=@yrange nearest=@ynearest combomode=@combomode
          > #else
          > yrange: @yrange
          > #endif
          >
          >
          > //// Y axis..
          > #include $chunk_yaxis
          >
          >
          > //// X axis..
          > #include $chunk_xaxis
          > #set autoyears = @xyears
          > #ifspec autoyears
          > #ifspec automonths
          > #ifspec autodays
          >
          >
          > //// title..
          > #include $chunk_title
          >
          >
          > //// user pre-plot include..
          > #if @include1 != ""
          > #include @include1
          > #endif
          >
          >
          > //// do curve fit..
          > #if @curve != ""
          > #if @curve = "yes"
          > #set curve = "color=pink width=0.5"
          > #endif
          > #proc curvefit
          > xfield: @x
          > yfield: @y
          > linedetails: @curve
          > order: @order
          > #endif
          >
          >
          > //// do bars or line..
          > #if @mode = bars
          > #proc bars
          > locfield: @x
          > lenfield: @y
          > color: @color
          > outline: @outline
          > #if @barwidth = line
          > thinbarline: color=@color
          > #else
          > #ifspec barwidth
          > #endif
          > #ifspec crossover
          > #ifspec clickmapurl
          > #ifspec clickmaplabel
          > #ifspec ptselect select
          >
          > #set ncluster = 1
          > #if @y40 != ""
          > #set ncluster = 40
          > #elseif @y39 != ""
          > #set ncluster = 39
          > #elseif @y38 != ""
          > #set ncluster = 38
          > #elseif @y37 != ""
          > #set ncluster = 37
          > #elseif @y36 != ""
          > #set ncluster = 36
          > #elseif @y35 != ""
          > #set ncluster = 35
          > #elseif @y34 != ""
          > #set ncluster = 34
          > #elseif @y33 != ""
          > #set ncluster = 33
          > #elseif @y32 != ""
          > #set ncluster = 32
          > #elseif @y31 != ""
          > #set ncluster = 31
          > #elseif @y30 != ""
          > #set ncluster = 30
          > #elseif @y29 != ""
          > #set ncluster = 29
          > #elseif @y28 != ""
          > #set ncluster = 28
          > #elseif @y27 != ""
          > #set ncluster = 27
          > #elseif @y26 != ""
          > #set ncluster = 26
          > #elseif @y25 != ""
          > #set ncluster = 25
          > #elseif @y24 != ""
          > #set ncluster = 24
          > #elseif @y23 != ""
          > #set ncluster = 23
          > #elseif @y22 != ""
          > #set ncluster = 22
          > #elseif @y21 != ""
          > #set ncluster = 21
          > #elseif @y20 != ""
          > #set ncluster = 20
          > #elseif @y19 != ""
          > #set ncluster = 19
          > #elseif @y18 != ""
          > #set ncluster = 18
          > #elseif @y17 != ""
          > #set ncluster = 17
          > #elseif @y16 != ""
          > #set ncluster = 16
          > #elseif @y15 != ""
          > #set ncluster = 15
          > #elseif @y14 != ""
          > #set ncluster = 14
          > #elseif @y13 != ""
          > #set ncluster = 13
          > #elseif @y12 != ""
          > #set ncluster = 12
          > #elseif @y11 != ""
          > #set ncluster = 11
          > #elseif @y10 != ""
          > #set ncluster = 10
          > #elseif @y9 != ""
          > #set ncluster = 9
          > #elseif @y8 != ""
          > #set ncluster = 8
          > #elseif @y7 != ""
          > #set ncluster = 7
          > #elseif @y6 != ""
          > #set ncluster = 6
          > #elseif @y5 != ""
          > #set ncluster = 5
          > #elseif @y4 != ""
          > #set ncluster = 4
          > #elseif @y3 != ""
          > #set ncluster = 3
          > #elseif @y2 != ""
          > #set ncluster = 2
          > #endif
          > #if @ncluster > 1 && @stack != yes
          > cluster: 1 / @ncluster
          > #endif
          > #saveas B
          >
          > #elseif @mode = line
          > #procdef lineplot
          > xfield: @x
          > linedetails: @linedet
          > stairstep: @step
          > #ifspec gapmissing
          > // the following was added - scg 11/19/04..
          > #ifspec lineclip clip
          > #saveas L
          >
          > #proc lineplot
          > #clone L
          > yfield: @y
          > #ifspec ptselect select
          > #ifspec fill
          > #endif
          > legendlabel: @name
          >
          >
          > // optional 2nd curve or set of bars..
          > #if @y2 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y2
          > color: @color2
          > #if @barwidth = line
          > thinbarline: color=@color2
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 2 / @ncluster
          > #endif
          > #ifspec ptselect2 select
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y2
          > linedetails: @linedet2
          > #ifspec fill2 fill
          > #ifspec ptselect2 select
          > #endif
          > legendlabel: @name2
          > #endif
          >
          >
          > // optional 3d curve or set of bars..
          > #if @y3 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y3
          > color: @color3
          > #if @barwidth = line
          > thinbarline: color=@color3
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 3 / @ncluster
          > #endif
          > #ifspec ptselect3 select
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y3
          > linedetails: @linedet3
          > #ifspec fill3 fill
          > #ifspec ptselect3 select
          > #endif
          > legendlabel: @name3
          > #endif
          >
          >
          > // optional 4th curve or set of bars..
          > #if @y4 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y4
          > color: @color4
          > #if @barwidth = line
          > thinbarline: color=@color4
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 4 / @ncluster
          > #endif
          > #ifspec ptselect4 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y4
          > linedetails: @linedet4
          > #ifspec fill4 fill
          > #ifspec ptselect4 select
          >
          > #endif
          > legendlabel: @name4
          > #endif
          >
          >
          > // optional 5th curve or set of bars..
          > #if @y5 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y5
          > color: @color5
          > #if @barwidth = line
          > thinbarline: color=@color5
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 5 / @ncluster
          > #endif
          > #ifspec ptselect5 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y5
          > linedetails: @linedet5
          > #ifspec fill5 fill
          > #ifspec ptselect5 select
          >
          > #endif
          > legendlabel: @name5
          > #endif
          >
          > // optional 6th curve or set of bars..
          > #if @y6 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y6
          > color: @color6
          > #if @barwidth = line
          > thinbarline: color=@color6
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 6 / @ncluster
          > #endif
          > #ifspec ptselect6 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y6
          > linedetails: @linedet6
          > #ifspec fill6 fill
          > #ifspec ptselect6 select
          >
          > #endif
          > legendlabel: @name6
          > #endif
          >
          > // optional 7th curve or set of bars..
          > #if @y7 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y7
          > color: @color7
          > #if @barwidth = line
          > thinbarline: color=@color7
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 7 / @ncluster
          > #endif
          > #ifspec ptselect7 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y7
          > linedetails: @linedet7
          > #ifspec fill7 fill
          > #ifspec ptselect7 select
          >
          > #endif
          > legendlabel: @name7
          > #endif
          >
          > // optional 8th curve or set of bars..
          > #if @y8 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y8
          > color: @color8
          > #if @barwidth = line
          > thinbarline: color=@color8
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 8 / @ncluster
          > #endif
          > #ifspec ptselect8 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y8
          > linedetails: @linedet8
          > #ifspec fill8 fill
          > #ifspec ptselect8 select
          >
          > #endif
          > legendlabel: @name8
          > #endif
          >
          > // optional 9th curve or set of bars..
          > #if @y9 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y9
          > color: @color9
          > #if @barwidth = line
          > thinbarline: color=@color9
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 9 / @ncluster
          > #endif
          > #ifspec ptselect9 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y9
          > linedetails: @linedet9
          > #ifspec fill9 fill
          > #ifspec ptselect9 select
          >
          > #endif
          > legendlabel: @name9
          > #endif
          >
          > // optional 10th curve or set of bars..
          > #if @y10 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y10
          > color: @color10
          > #if @barwidth = line
          > thinbarline: color=@color10
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 10 / @ncluster
          > #endif
          > #ifspec ptselect10 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y10
          > linedetails: @linedet10
          > #ifspec fill10 fill
          > #ifspec ptselect10 select
          >
          > #endif
          > legendlabel: @name10
          > #endif
          >
          > // optional 11th curve or set of bars..
          > #if @y11 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y11
          > color: @color11
          > #if @barwidth = line
          > thinbarline: color=@color11
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 11 / @ncluster
          > #endif
          > #ifspec ptselect11 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y11
          > linedetails: @linedet11
          > #ifspec fill11 fill
          > #ifspec ptselect11 select
          >
          > #endif
          > legendlabel: @name11
          > #endif
          >
          > // optional 12th curve or set of bars..
          > #if @y12 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y12
          > color: @color12
          > #if @barwidth = line
          > thinbarline: color=@color12
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 12 / @ncluster
          > #endif
          > #ifspec ptselect12 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y12
          > linedetails: @linedet12
          > #ifspec fill12 fill
          > #ifspec ptselect12 select
          >
          > #endif
          > legendlabel: @name12
          > #endif
          >
          > // optional 13th curve or set of bars..
          > #if @y13 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y13
          > color: @color13
          > #if @barwidth = line
          > thinbarline: color=@color13
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 13 / @ncluster
          > #endif
          > #ifspec ptselect13 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y13
          > linedetails: @linedet13
          > #ifspec fill13 fill
          > #ifspec ptselect13 select
          >
          > #endif
          > legendlabel: @name13
          > #endif
          >
          > // optional 14th curve or set of bars..
          > #if @y14 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y14
          > color: @color14
          > #if @barwidth = line
          > thinbarline: color=@color14
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 14 / @ncluster
          > #endif
          > #ifspec ptselect14 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y14
          > linedetails: @linedet14
          > #ifspec fill14 fill
          > #ifspec ptselect14 select
          >
          > #endif
          > legendlabel: @name14
          > #endif
          >
          > // optional 15th curve or set of bars..
          > #if @y15 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y15
          > color: @color15
          > #if @barwidth = line
          > thinbarline: color=@color15
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 15 / @ncluster
          > #endif
          > #ifspec ptselect15 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y15
          > linedetails: @linedet15
          > #ifspec fill15 fill
          > #ifspec ptselect15 select
          >
          > #endif
          > legendlabel: @name15
          > #endif
          >
          > // optional 16th curve or set of bars..
          > #if @y16 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y16
          > color: @color16
          > #if @barwidth = line
          > thinbarline: color=@color16
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 16 / @ncluster
          > #endif
          > #ifspec ptselect16 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y16
          > linedetails: @linedet16
          > #ifspec fill16 fill
          > #ifspec ptselect16 select
          >
          > #endif
          > legendlabel: @name16
          > #endif
          >
          > // optional 17th curve or set of bars..
          > #if @y17 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y17
          > color: @color17
          > #if @barwidth = line
          > thinbarline: color=@color17
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 17 / @ncluster
          > #endif
          > #ifspec ptselect17 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y17
          > linedetails: @linedet17
          > #ifspec fill17 fill
          > #ifspec ptselect17 select
          >
          > #endif
          > legendlabel: @name17
          > #endif
          >
          > // optional 18th curve or set of bars..
          > #if @y18 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y18
          > color: @color18
          > #if @barwidth = line
          > thinbarline: color=@color18
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 18 / @ncluster
          > #endif
          > #ifspec ptselect18 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y18
          > linedetails: @linedet18
          > #ifspec fill18 fill
          > #ifspec ptselect18 select
          >
          > #endif
          > legendlabel: @name18
          > #endif
          >
          > // optional 19th curve or set of bars..
          > #if @y19 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y19
          > color: @color19
          > #if @barwidth = line
          > thinbarline: color=@color19
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 19 / @ncluster
          > #endif
          > #ifspec ptselect19 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y19
          > linedetails: @linedet19
          > #ifspec fill19 fill
          > #ifspec ptselect19 select
          >
          > #endif
          > legendlabel: @name19
          > #endif
          >
          > // optional 20th curve or set of bars..
          > #if @y20 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y20
          > color: @color20
          > #if @barwidth = line
          > thinbarline: color=@color20
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 20 / @ncluster
          > #endif
          > #ifspec ptselect20 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y20
          > linedetails: @linedet20
          > #ifspec fill20 fill
          > #ifspec ptselect20 select
          >
          > #endif
          > legendlabel: @name20
          > #endif
          >
          > // optional 21th curve or set of bars..
          > #if @y21 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y21
          > color: @color21
          > #if @barwidth = line
          > thinbarline: color=@color21
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 21 / @ncluster
          > #endif
          > #ifspec ptselect21 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y21
          > linedetails: @linedet21
          > #ifspec fill21 fill
          > #ifspec ptselect21 select
          >
          > #endif
          > legendlabel: @name21
          > #endif
          >
          > // optional 22th curve or set of bars..
          > #if @y22 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y22
          > color: @color22
          > #if @barwidth = line
          > thinbarline: color=@color22
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 22 / @ncluster
          > #endif
          > #ifspec ptselect22 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y22
          > linedetails: @linedet22
          > #ifspec fill22 fill
          > #ifspec ptselect22 select
          >
          > #endif
          > legendlabel: @name22
          > #endif
          >
          > // optional 23th curve or set of bars..
          > #if @y23 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y23
          > color: @color23
          > #if @barwidth = line
          > thinbarline: color=@color23
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 23 / @ncluster
          > #endif
          > #ifspec ptselect23 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y23
          > linedetails: @linedet23
          > #ifspec fill23 fill
          > #ifspec ptselect23 select
          >
          > #endif
          > legendlabel: @name23
          > #endif
          >
          > // optional 24th curve or set of bars..
          > #if @y24 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y24
          > color: @color24
          > #if @barwidth = line
          > thinbarline: color=@color24
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 24 / @ncluster
          > #endif
          > #ifspec ptselect24 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y24
          > linedetails: @linedet24
          > #ifspec fill24 fill
          > #ifspec ptselect24 select
          >
          > #endif
          > legendlabel: @name24
          > #endif
          >
          > // optional 25th curve or set of bars..
          > #if @y25 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y25
          > color: @color25
          > #if @barwidth = line
          > thinbarline: color=@color25
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 25 / @ncluster
          > #endif
          > #ifspec ptselect25 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y25
          > linedetails: @linedet25
          > #ifspec fill25 fill
          > #ifspec ptselect25 select
          >
          > #endif
          > legendlabel: @name25
          > #endif
          >
          > // optional 26th curve or set of bars..
          > #if @y26 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y26
          > color: @color26
          > #if @barwidth = line
          > thinbarline: color=@color26
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 26 / @ncluster
          > #endif
          > #ifspec ptselect26 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y26
          > linedetails: @linedet26
          > #ifspec fill26 fill
          > #ifspec ptselect26 select
          >
          > #endif
          > legendlabel: @name26
          > #endif
          >
          > // optional 27th curve or set of bars..
          > #if @y27 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y27
          > color: @color27
          > #if @barwidth = line
          > thinbarline: color=@color27
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 27 / @ncluster
          > #endif
          > #ifspec ptselect27 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y27
          > linedetails: @linedet27
          > #ifspec fill27 fill
          > #ifspec ptselect27 select
          >
          > #endif
          > legendlabel: @name27
          > #endif
          >
          > // optional 28th curve or set of bars..
          > #if @y28 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y28
          > color: @color28
          > #if @barwidth = line
          > thinbarline: color=@color28
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 28 / @ncluster
          > #endif
          > #ifspec ptselect28 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y28
          > linedetails: @linedet28
          > #ifspec fill28 fill
          > #ifspec ptselect28 select
          >
          > #endif
          > legendlabel: @name28
          > #endif
          >
          > // optional 29th curve or set of bars..
          > #if @y29 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y29
          > color: @color29
          > #if @barwidth = line
          > thinbarline: color=@color29
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 29 / @ncluster
          > #endif
          > #ifspec ptselect29 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y29
          > linedetails: @linedet29
          > #ifspec fill29 fill
          > #ifspec ptselect29 select
          >
          > #endif
          > legendlabel: @name29
          > #endif
          >
          > // optional 30th curve or set of bars..
          > #if @y30 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y30
          > color: @color30
          > #if @barwidth = line
          > thinbarline: color=@color30
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 30 / @ncluster
          > #endif
          > #ifspec ptselect30 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y30
          > linedetails: @linedet30
          > #ifspec fill30 fill
          > #ifspec ptselect30 select
          >
          > #endif
          > legendlabel: @name30
          > #endif
          >
          > // optional 31th curve or set of bars..
          > #if @y31 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y31
          > color: @color31
          > #if @barwidth = line
          > thinbarline: color=@color31
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 31 / @ncluster
          > #endif
          > #ifspec ptselect31 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y31
          > linedetails: @linedet31
          > #ifspec fill31 fill
          > #ifspec ptselect31 select
          >
          > #endif
          > legendlabel: @name31
          > #endif
          >
          > // optional 32th curve or set of bars..
          > #if @y32 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y32
          > color: @color32
          > #if @barwidth = line
          > thinbarline: color=@color32
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 32 / @ncluster
          > #endif
          > #ifspec ptselect32 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y32
          > linedetails: @linedet32
          > #ifspec fill32 fill
          > #ifspec ptselect32 select
          >
          > #endif
          > legendlabel: @name32
          > #endif
          >
          > // optional 33th curve or set of bars..
          > #if @y33 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y33
          > color: @color33
          > #if @barwidth = line
          > thinbarline: color=@color33
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 33 / @ncluster
          > #endif
          > #ifspec ptselect33 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y33
          > linedetails: @linedet33
          > #ifspec fill33 fill
          > #ifspec ptselect33 select
          >
          > #endif
          > legendlabel: @name33
          > #endif
          >
          > // optional 34th curve or set of bars..
          > #if @y34 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y34
          > color: @color34
          > #if @barwidth = line
          > thinbarline: color=@color34
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 34 / @ncluster
          > #endif
          > #ifspec ptselect34 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y34
          > linedetails: @linedet34
          > #ifspec fill34 fill
          > #ifspec ptselect34 select
          >
          > #endif
          > legendlabel: @name34
          > #endif
          >
          > // optional 35th curve or set of bars..
          > #if @y35 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y35
          > color: @color35
          > #if @barwidth = line
          > thinbarline: color=@color35
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 35 / @ncluster
          > #endif
          > #ifspec ptselect35 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y35
          > linedetails: @linedet35
          > #ifspec fill35 fill
          > #ifspec ptselect35 select
          >
          > #endif
          > legendlabel: @name35
          > #endif
          >
          > // optional 36th curve or set of bars..
          > #if @y36 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y36
          > color: @color36
          > #if @barwidth = line
          > thinbarline: color=@color36
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 36 / @ncluster
          > #endif
          > #ifspec ptselect36 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y36
          > linedetails: @linedet36
          > #ifspec fill36 fill
          > #ifspec ptselect36 select
          >
          > #endif
          > legendlabel: @name36
          > #endif
          >
          > // optional 37th curve or set of bars..
          > #if @y37 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y37
          > color: @color37
          > #if @barwidth = line
          > thinbarline: color=@color37
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 37 / @ncluster
          > #endif
          > #ifspec ptselect37 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y37
          > linedetails: @linedet37
          > #ifspec fill37 fill
          > #ifspec ptselect37 select
          >
          > #endif
          > legendlabel: @name37
          > #endif
          >
          > // optional 38th curve or set of bars..
          > #if @y38 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y38
          > color: @color38
          > #if @barwidth = line
          > thinbarline: color=@color38
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 38 / @ncluster
          > #endif
          > #ifspec ptselect38 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y38
          > linedetails: @linedet38
          > #ifspec fill38 fill
          > #ifspec ptselect38 select
          >
          > #endif
          > legendlabel: @name38
          > #endif
          >
          > // optional 39th curve or set of bars..
          > #if @y39 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y39
          > color: @color39
          > #if @barwidth = line
          > thinbarline: color=@color39
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 39 / @ncluster
          > #endif
          > #ifspec ptselect39 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y39
          > linedetails: @linedet39
          > #ifspec fill39 fill
          > #ifspec ptselect39 select
          >
          > #endif
          > legendlabel: @name39
          > #endif
          >
          > // optional 40th curve or set of bars..
          > #if @y40 != ""
          > #if @mode = bars
          > #proc bars
          > #clone B
          > lenfield: @y40
          > color: @color40
          > #if @barwidth = line
          > thinbarline: color=@color40
          > #else
          > #ifspec barwidth
          > #endif
          > #if @stack = yes
          > stackfields: *
          > #else
          > cluster: 40 / @ncluster
          > #endif
          > #ifspec ptselect40 select
          >
          > #elseif @mode = line
          > #proc lineplot
          > #clone L
          > yfield: @y40
          > linedetails: @linedet40
          > #ifspec fill40 fill
          > #ifspec ptselect40 select
          >
          > #endif
          > legendlabel: @name40
          > #endif
          >
          > //// crossover line..
          > #if @crossover != ""
          > #proc line
          > linedetails: width=0.5
          > points: min @crossover(s) max @crossover(s)
          > #endif
          >
          >
          > // do legend
          > #if @tab = yes && @header = yes && @name = "#usefname"
          > // field names not valid after tabulate filter..
          > #set header = no
          > #endif
          > #if @name != "#usefname" || @header = yes
          > #proc legend
          > location: @legend
          > #ifspec legendfmt format
          > #ifspec legendsep sep
          > #ifspec legwrap wraplen
          > #ifspec legbreak extent
          > #ifspec legtitle title
          > #ifspec legbox backcolor
          > #ifspec legframe frame
          > #ifspec legtextdet textdetails
          >
          > #endif
          >
          >
          > //// user post-plot include
          > #if @include2 != ""
          > #include @include2
          > #endif
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          > Yahoo! Groups Links
          >
          >
          >
          >
          >
          >
          >
          >


          Stephen C. Grubb scg@... x-6633
          Scientific Software Engineer, The Jackson Laboratory
          600 Main Street Bar Harbor, Maine 04609 USA
        Your message has been successfully submitted and would be delivered to recipients shortly.