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

controlling the plot title via the data file

Expand Messages
  • Stephen C. Grubb
    Joel, you can set variables from within plot data files ... #proc getdata file: example.dat #proc areadef title: @mytitle rectangle: 1 1 4 3 xrange: 0 10
    Message 1 of 4 , Jul 29, 2003
    • 0 Attachment
      Joel, you can set variables from within plot data files


      ------- Example script:

      #proc getdata
      file: example.dat

      #proc areadef
      title: @mytitle
      rectangle: 1 1 4 3
      xrange: 0 10
      yrange: 0 10
      frame: yes

      ------- Example data:
      #set mytitle = orders processed on tue 8 Jul '03
      A 5 7
      B 7 8
      C 4 5
      D 8 10

      -----------
      this is described here:
      http://ploticus.sourceforge.net/doc/dataformat.html (near the bottom)


      Steve


      > >
      > >one way is to use the proc bars 'exactcolorfield' attribute.. here's an
      > >example
      >
      >
      > Cool!
      >
      > That will really help!
      >
      > Is there also a way to have the data file -- or at least something outside
      > of the
      > plot description file itself -- provide the title for a chart?
      >
      > I've got about 100 similar charts I need to make automatically every day,
      > but they've
      > all got to have different titles (as one might expect). The title is set
      > up in proc areadef
      > right now, and I'm looking at using a template system to crank out
      > identical-except-
      > for-the-title plot description files for each one each time (the title will
      > have the day's
      > date in it).
      >
      > I'm suspecting you've got a better way, though.
      >
      >
      > Joel Noble
      > jnoble@...
      >
      >
      >
      > 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
    Your message has been successfully submitted and would be delivered to recipients shortly.