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

309Re: [ploticus] xrange for a relative date window?

Expand Messages
  • Stephen C. Grubb
    Feb 5, 2003
      Robin,

      This should do it:

      #call $setdatefmt( mm/dd/yyyy ) [or whatever..]
      #set xmax = $todaysdate()
      #set xmin = $dateadd( @xmax, -7 )

      #proc areadef
      xscaletype: date
      xrange: @xmin @xmax
      rectangle: 1 1 7 3
      yrange: 0 10
      xaxis.stubs: inc
      xaxis.stubformat: MMMdd [or whatever..]


      -Steve

      On Wed, 5 Feb 2003, Robin Duggar <rduggar@...> wrote:

      > Is it possible to define xrange in proc areadef for either last 7
      > days or even just 7 days, instead of using specific dates (rather not
      > use even day of week names)? I'm trying to write the script so it
      > can be reused on a daily basis without reformulating it.
      >
      > Thanks!
      > - Robin
      >
      >
      >
      > To unsubscribe from this group, send an email to:
      > ploticus-unsubscribe@yahoogroups.com
      >
      >
      >
      > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
      >
      >
      >


      Stephen C. Grubb scg@...
      Scientific Software Engineer, The Jackson Laboratory
      600 Main Street Bar Harbor, Maine 04609 USA
    • Show all 9 messages in this topic