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

Re: multiple data files for one graph

Expand Messages
  • javaring
    10000000 THX!! It works now!! -Bee ... try to ... assumes that ... that all 3 ... delimited and ... this, I ... http://docs.yahoo.com/info/terms/
    Message 1 of 3 , Jul 7, 2002
    • 0 Attachment
      10000000 THX!! It works now!!
      -Bee

      --- In ploticus@y..., "Stephen C. Grubb" <scg@j...> wrote:
      > With some effort I think I can tell what you are asking, but please
      try to
      > be more clear in future..
      >
      > The script shown below should be close to what you want. It
      assumes that
      > your 3 files are named mult1.dat, mult2.dat, and mult3.dat, and
      that all 3
      > files use the same date & time range as mult1.dat.
      >
      > Note that your data files are a funny combination of space-
      delimited and
      > comma-delimited.. best to stick with one or the other. Because of
      this, I
      > had to comment out the first line in each of your data files like
      this:
      > // Date, CPU Utilization
      >
      > Here's the script:
      >
      > // get 1st file
      > #proc getdata
      > file: mult1.dat
      > // process data to concatenate date and time into a datetime field
      > // and omit the 3rd field..
      > filter: @@1.@@2 @@4
      >
      >
      > // set up plotting area..
      > #proc areadef
      > xscaletype: datetime mm/dd/yy.hh:mm:ss
      > rectangle: 1 4 4 6
      > xautorange: datafield=1
      > yrange: 0 100
      > xaxis.stubs: inc 1 day
      > xaxis.stubformat: MMMdd
      > yaxis.stubs: inc
      > yaxis.label: % utilized
      > #saveas A
      >
      > // plot red line..
      > #proc lineplot
      > xfield: 1
      > yfield: 2
      > linedetails: color=red
      > legendlabel: CPU
      >
      >
      > // get 2nd file..
      > #proc getdata
      > file: mult2.dat
      > filter: @@1.@@2 @@4
      >
      > // plot blue line..
      > #proc lineplot
      > xfield: 1
      > yfield: 2
      > linedetails: color=blue
      > legendlabel: Disk C:
      >
      > // get 2nd file..
      > #proc getdata
      > file: mult3.dat
      > filter: @@1.@@2 @@4
      >
      > // plot blue line..
      > #proc lineplot
      > xfield: 1
      > yfield: 2
      > linedetails: color=green
      > legendlabel: Disk D:
      >
      >
      > // finally, render the legend
      > #proc legend
      > location: min min-0.4
      > format: singleline
      > sep: 0.6
      > seglen: 0.2
      >
      >
      > On Thu, 4 Jul 2002, javaring wrote:
      >
      > > I have no idea how to do so. Please kindly help...
      > > Thx
      > > -Bee
      > >
      > > here are the input files:
      > > ------------------
      > > Date, CPU Utilization
      > > 06/28/02 06:25:00 TAIST, 24.2853
      > > 06/28/02 07:25:00 TAIST, 45.8785
      > > 06/28/02 08:25:00 TAIST, 54.3584
      > > 06/28/02 09:25:00 TAIST, 53.8865
      > > 06/28/02 10:25:00 TAIST, 12.4755
      > > 06/28/02 11:25:00 TAIST, 15.248
      > > 06/28/02 12:25:00 TAIST, 12.3643
      > > 06/28/02 13:25:00 TAIST, 10.9273
      > > 06/28/02 14:25:00 TAIST, 9.25486
      > > 06/28/02 15:25:00 TAIST, 8.75351
      > > 06/28/02 16:25:00 TAIST, 4.60802
      > > 06/28/02 17:25:00 TAIST, 5.74377
      > > 06/28/02 18:25:00 TAIST, 5.33255
      > > 06/28/02 19:25:00 TAIST, 4.04277
      > > 06/28/02 20:25:00 TAIST, 3.87871
      > > 06/28/02 21:25:00 TAIST, 4.41642
      > > 06/28/02 22:25:00 TAIST, 6.62098
      > > 06/28/02 23:25:00 TAIST, 8.00684
      > > 06/29/02 00:25:00 TAIST, 16.8315
      > > 06/29/02 02:25:05 TAIST, 35.9957
      > > 06/29/02 03:25:05 TAIST, 41.3081
      > > 06/29/02 04:25:06 TAIST, 35.9919
      > > 06/29/02 05:25:07 TAIST, 35.2267
      > > 06/29/02 06:25:05 TAIST, 32.512
      > > 06/29/02 07:25:05 TAIST, 32.7664
      > > 06/29/02 08:25:05 TAIST, 33.929
      > > 06/29/02 09:25:05 TAIST, 26.9022
      > > 06/29/02 10:25:05 TAIST, 19.976
      > > 06/29/02 11:25:05 TAIST, 14.1478
      > > 06/29/02 12:25:04 TAIST, 9.32016
      > > 06/29/02 13:25:05 TAIST, 9.2538
      > > 06/29/02 14:25:04 TAIST, 9.36381
      > > 06/29/02 15:25:04 TAIST, 9.4996
      > > 06/29/02 16:25:05 TAIST, 9.86887
      > > 06/29/02 17:25:05 TAIST, 9.84526
      > > 06/29/02 18:25:06 TAIST, 11.7074
      > > 06/29/02 19:25:04 TAIST, 10.1805
      > > 06/29/02 20:25:05 TAIST, 7.771
      > > 06/29/02 21:25:05 TAIST, 14.3205
      > > 06/29/02 22:25:06 TAIST, 13.204
      > > 06/29/02 23:25:05 TAIST, 9.17933
      > > 06/30/02 00:25:05 TAIST, 7.77695
      > > 06/30/02 01:25:05 TAIST, 8.81374
      > > 06/30/02 02:25:05 TAIST, 7.93454
      > > 06/30/02 03:25:04 TAIST, 10.0147
      > > 06/30/02 04:25:05 TAIST, 9.03254
      > > 06/30/02 05:25:05 TAIST, 11.6035
      > > 06/30/02 06:25:04 TAIST, 8.68308
      > > 06/30/02 07:25:04 TAIST, 11.1303
      > > 06/30/02 08:25:04 TAIST, 9.27427
      > > 06/30/02 09:25:05 TAIST, 6.85343
      > > 06/30/02 10:25:05 TAIST, 6.9153
      > > 06/30/02 11:25:04 TAIST, 7.1942
      > > 06/30/02 12:25:04 TAIST, 7.1085
      > > 06/30/02 13:25:05 TAIST, 8.03998
      > > 06/30/02 14:25:04 TAIST, 7.97053
      > > ------------------
      > > Date, Disk Usage on C:\
      > > 06/29/02 02:25:06 TAIST, 74.0
      > > 06/29/02 03:25:06 TAIST, 74.0
      > > 06/29/02 04:25:08 TAIST, 74.0
      > > 06/29/02 05:25:08 TAIST, 74.0
      > > 06/29/02 06:25:07 TAIST, 74.0
      > > 06/29/02 07:25:06 TAIST, 74.0
      > > 06/29/02 08:25:06 TAIST, 74.0
      > > 06/29/02 09:25:07 TAIST, 74.0
      > > 06/29/02 10:25:07 TAIST, 74.0
      > > 06/29/02 11:25:07 TAIST, 74.0
      > > 06/29/02 12:25:05 TAIST, 74.0
      > > 06/29/02 13:25:06 TAIST, 74.0
      > > 06/29/02 14:25:06 TAIST, 74.0
      > > 06/29/02 15:25:05 TAIST, 74.0
      > > 06/29/02 16:25:06 TAIST, 74.0
      > > 06/29/02 17:25:07 TAIST, 74.0
      > > 06/29/02 18:25:08 TAIST, 74.0
      > > 06/29/02 19:25:06 TAIST, 74.0
      > > 06/29/02 20:25:06 TAIST, 74.0
      > > 06/29/02 21:25:07 TAIST, 74.0
      > > 06/29/02 22:25:08 TAIST, 74.0
      > > 06/29/02 23:25:06 TAIST, 74.0
      > > 06/30/02 00:25:06 TAIST, 74.0
      > > 06/30/02 01:25:07 TAIST, 74.0
      > > 06/30/02 02:25:06 TAIST, 74.0
      > > 06/30/02 03:25:06 TAIST, 74.0
      > > 06/30/02 04:25:06 TAIST, 74.0
      > > 06/30/02 05:25:06 TAIST, 74.0
      > > 06/30/02 06:25:06 TAIST, 74.0
      > > 06/30/02 07:25:05 TAIST, 74.0
      > > 06/30/02 08:25:05 TAIST, 74.0
      > > 06/30/02 09:25:06 TAIST, 74.0
      > > 06/30/02 10:25:07 TAIST, 74.0
      > > 06/30/02 11:25:06 TAIST, 74.0
      > > 06/30/02 12:25:05 TAIST, 74.0
      > > 06/30/02 13:25:06 TAIST, 74.0
      > > 06/30/02 14:25:06 TAIST, 74.0
      > > ------------------
      > > Date, Disk Usage on D:\
      > > 06/28/02 06:25:03 TAIST, 95.0
      > > 06/28/02 07:25:03 TAIST, 95.0
      > > 06/28/02 08:25:03 TAIST, 95.0
      > > 06/28/02 09:25:03 TAIST, 96.0
      > > 06/28/02 10:25:04 TAIST, 96.0
      > > 06/28/02 11:25:04 TAIST, 96.0
      > > 06/28/02 12:25:04 TAIST, 96.0
      > > 06/28/02 13:25:03 TAIST, 96.0
      > > 06/28/02 14:25:03 TAIST, 96.0
      > > 06/28/02 15:25:03 TAIST, 96.0
      > > 06/28/02 16:25:02 TAIST, 96.0
      > > 06/28/02 17:25:04 TAIST, 96.0
      > > 06/28/02 18:25:03 TAIST, 95.0
      > > 06/28/02 19:25:04 TAIST, 95.0
      > > 06/28/02 20:25:04 TAIST, 95.0
      > > 06/28/02 21:25:03 TAIST, 95.0
      > > 06/28/02 22:25:03 TAIST, 95.0
      > > 06/28/02 23:25:03 TAIST, 95.0
      > > 06/29/02 00:25:03 TAIST, 95.0
      > > 06/29/02 02:25:08 TAIST, 95.0
      > > 06/29/02 03:25:08 TAIST, 95.0
      > > 06/29/02 04:25:09 TAIST, 95.0
      > > 06/29/02 05:25:10 TAIST, 95.0
      > > 06/29/02 06:25:08 TAIST, 93.0
      > > 06/29/02 07:25:08 TAIST, 93.0
      > > 06/29/02 08:25:08 TAIST, 93.0
      > > 06/29/02 09:25:09 TAIST, 94.0
      > > 06/29/02 10:25:08 TAIST, 94.0
      > > 06/29/02 11:25:08 TAIST, 94.0
      > > 06/29/02 12:25:07 TAIST, 94.0
      > > 06/29/02 13:25:07 TAIST, 94.0
      > > 06/29/02 14:25:09 TAIST, 94.0
      > > 06/29/02 15:25:07 TAIST, 94.0
      > > 06/29/02 16:25:08 TAIST, 94.0
      > > 06/29/02 17:25:08 TAIST, 94.0
      > > 06/29/02 18:25:10 TAIST, 94.0
      > > 06/29/02 19:25:08 TAIST, 94.0
      > > 06/29/02 20:25:08 TAIST, 94.0
      > > 06/29/02 21:25:09 TAIST, 94.0
      > > 06/29/02 22:25:10 TAIST, 94.0
      > > 06/29/02 23:25:07 TAIST, 94.0
      > > 06/30/02 00:25:08 TAIST, 94.0
      > > 06/30/02 01:25:08 TAIST, 94.0
      > > 06/30/02 02:25:07 TAIST, 94.0
      > > 06/30/02 03:25:07 TAIST, 94.0
      > > 06/30/02 04:25:08 TAIST, 94.0
      > > 06/30/02 05:25:08 TAIST, 94.0
      > > 06/30/02 06:25:07 TAIST, 94.0
      > > 06/30/02 07:25:07 TAIST, 94.0
      > > 06/30/02 08:25:07 TAIST, 94.0
      > > 06/30/02 09:25:07 TAIST, 94.0
      > > 06/30/02 10:25:08 TAIST, 94.0
      > > 06/30/02 11:25:07 TAIST, 94.0
      > > 06/30/02 12:25:07 TAIST, 94.0
      > > 06/30/02 13:25:09 TAIST, 94.0
      > > 06/30/02 14:25:08 TAIST, 94.0
      > > ------------------
      > >
      > >
      > >
      > >
      > > To unsubscribe from this group, send an email to:
      > > ploticus-unsubscribe@y...
      > >
      > >
      > >
      > > Your use of Yahoo! Groups is subject to
      http://docs.yahoo.com/info/terms/
      > >
      > >
      > >
      >
      >
      > Stephen C. Grubb scg@j...
      > 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.