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

Dates in .dat files and then in xscaletype

Expand Messages
  • l8gravely
    Hi Steve, I m trying to to a time plot (using version 2.31 of ploticus) of some data where I have it in the following format: start end total num failed kb
    Message 1 of 2 , Feb 3, 2006
      Hi Steve,

      I'm trying to to a time plot (using version 2.31 of ploticus) of some
      data where I have it in the following format:

      start end total num failed kb level

      yes, it's for reports on backups. I have put my datetime data into
      the following format, which I think should be accepted:

      Jan-1-2006.23:00:00 Jan-2-2006.02:11:25 3.18 8 0 68423740.00 incr

      But when I run my script on it, I get errors like this:

      > pl ploticus-bars.plt
      // proc getdata has read & parsed these data:
      [#proc][getdata][][][][][]
      [nfields:][7][][][][][]
      [fieldnames:][xstart][xend][elapsed][nclient][nfail][ykilo]
      [file:][ploticus-bars.plt][][][][][]
      [showresults:][yes][][][][][]
      [#proc][areadef][][][][][]
      [title:][Backup][Sessions][][][][]
      [rectangle:][1][1][8][6][][]
      [frame:][yes][][][][][]
      [xscaletype:][datetime][Mmm-dd-yyyy.hh:mm:ss][][][][]
      [xautorange:][datafield=xstart,xend][][][][][]
      [yscaletype:][log][][][][][]
      [yautorange:][datafield=ykilo][][][][][]
      [#proc][yaxis][][][][][]
      [grid:][color=powderblue][][][][][]
      [label:][Kilobytes][][][][][]
      [#proc][xaxis][][][][][]
      [stubs:][datematic][][][][][]
      [xaxis.stubs:][inc][1][day][][][]
      [grid:][color=orange][style=2][][][][]
      [label:][Hour][of][Day][][][]
      [#proc][bars][][][][][]
      [axis:][x][][][][][]
      [locfield:][4][][][][][]
      [segmentfields:][1][2][][][][]
      [barwidth:][0.035][][][][][]
      [tails:][0.05][][][][][]
      pl proc areadef: error 5709: autorange: all data out of range
      pl proc areadef: error 205: range low value has invalid format (nan)
      pl proc areadef: error 205: range hi value has invalid format (nan)
      pl proc areadef: error 100: x range is invalid .. likely culprits:
      xautorange, or invalid date format
      pl proc areadef: error 10: cannot set up plotting area .. likely
      culprits: bad xrange or yrange, or bad area rectangle



      Here's the script I'm trying to make work. Do I just really need to
      massage my datetime data into a different format to have it work?
      #proc getdata
      //delim: whitespace
      nfields: 7
      fieldnames: xstart xend elapsed nclient nfail ykilo level
      file: ploticus-bars.plt
      showresults: yes

      #proc areadef
      title: Backup Sessions
      rectangle: 1 1 8 6
      frame: yes

      xscaletype: datetime Mmm-dd-yyyy.hh:mm:ss
      xautorange: datafield=xstart,xend

      yscaletype: log
      yautorange: datafield=ykilo
      //yrange: 0 10000000000

      #proc yaxis
      grid: color=powderblue
      label: Kilobytes

      #proc xaxis
      stubs: datematic
      xaxis.stubs: inc 1 day
      //stubformat: hh:mm
      grid: color=orange style=2
      label: Hour of Day

      #proc bars
      axis: x
      locfield: 4
      segmentfields: 1 2
      barwidth: 0.035
      tails: 0.05


      Any help would be appreciated!

      Thanks,
      John
    • Stephen C. Grubb
      Hi, you are specifying your script file ploticus-bars.plt as your input data file. Change the file name in proc getdata to something else. -Steve ... Stephen
      Message 2 of 2 , Feb 6, 2006
        Hi,

        you are specifying your script file ploticus-bars.plt as your input data
        file. Change the file name in proc getdata to something else. -Steve

        > pl ploticus-bars.plt

        > #proc getdata
        > file: ploticus-bars.plt


        On Fri, 3 Feb 2006, l8gravely wrote:

        >
        > Hi Steve,
        >
        > I'm trying to to a time plot (using version 2.31 of ploticus) of some
        > data where I have it in the following format:
        >
        > start end total num failed kb level
        >
        > yes, it's for reports on backups. I have put my datetime data into
        > the following format, which I think should be accepted:
        >
        > Jan-1-2006.23:00:00 Jan-2-2006.02:11:25 3.18 8 0 68423740.00 incr
        >
        > But when I run my script on it, I get errors like this:
        >
        > > pl ploticus-bars.plt
        > // proc getdata has read & parsed these data:
        > [#proc][getdata][][][][][]
        > [nfields:][7][][][][][]
        > [fieldnames:][xstart][xend][elapsed][nclient][nfail][ykilo]
        > [file:][ploticus-bars.plt][][][][][]
        > [showresults:][yes][][][][][]
        > [#proc][areadef][][][][][]
        > [title:][Backup][Sessions][][][][]
        > [rectangle:][1][1][8][6][][]
        > [frame:][yes][][][][][]
        > [xscaletype:][datetime][Mmm-dd-yyyy.hh:mm:ss][][][][]
        > [xautorange:][datafield=xstart,xend][][][][][]
        > [yscaletype:][log][][][][][]
        > [yautorange:][datafield=ykilo][][][][][]
        > [#proc][yaxis][][][][][]
        > [grid:][color=powderblue][][][][][]
        > [label:][Kilobytes][][][][][]
        > [#proc][xaxis][][][][][]
        > [stubs:][datematic][][][][][]
        > [xaxis.stubs:][inc][1][day][][][]
        > [grid:][color=orange][style=2][][][][]
        > [label:][Hour][of][Day][][][]
        > [#proc][bars][][][][][]
        > [axis:][x][][][][][]
        > [locfield:][4][][][][][]
        > [segmentfields:][1][2][][][][]
        > [barwidth:][0.035][][][][][]
        > [tails:][0.05][][][][][]
        > pl proc areadef: error 5709: autorange: all data out of range
        > pl proc areadef: error 205: range low value has invalid format (nan)
        > pl proc areadef: error 205: range hi value has invalid format (nan)
        > pl proc areadef: error 100: x range is invalid .. likely culprits:
        > xautorange, or invalid date format
        > pl proc areadef: error 10: cannot set up plotting area .. likely
        > culprits: bad xrange or yrange, or bad area rectangle
        >
        >
        >
        > Here's the script I'm trying to make work. Do I just really need to
        > massage my datetime data into a different format to have it work?
        > #proc getdata
        > //delim: whitespace
        > nfields: 7
        > fieldnames: xstart xend elapsed nclient nfail ykilo level
        > file: ploticus-bars.plt
        > showresults: yes
        >
        > #proc areadef
        > title: Backup Sessions
        > rectangle: 1 1 8 6
        > frame: yes
        >
        > xscaletype: datetime Mmm-dd-yyyy.hh:mm:ss
        > xautorange: datafield=xstart,xend
        >
        > yscaletype: log
        > yautorange: datafield=ykilo
        > //yrange: 0 10000000000
        >
        > #proc yaxis
        > grid: color=powderblue
        > label: Kilobytes
        >
        > #proc xaxis
        > stubs: datematic
        > xaxis.stubs: inc 1 day
        > //stubformat: hh:mm
        > grid: color=orange style=2
        > label: Hour of Day
        >
        > #proc bars
        > axis: x
        > locfield: 4
        > segmentfields: 1 2
        > barwidth: 0.035
        > tails: 0.05
        >
        >
        > Any help would be appreciated!
        >
        > Thanks,
        > John
        >
        >
        >
        >
        >
        >
        >
        >
        >
        >
        >
        > 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.