home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / next / software / 3669 < prev    next >
Encoding:
Text File  |  1993-01-28  |  4.0 KB  |  96 lines

  1. Newsgroups: comp.sys.next.software
  2. Path: sparky!uunet!ukma!bogus.sura.net!howland.reston.ans.net!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!news.cs.columbia.edu!korz
  3. From: korz@cs.columbia.edu (Frederick Korz)
  4. Subject: Re: Bar graphs w/ error bars ?
  5. Message-ID: <C1KJ4F.4o3@cs.columbia.edu>
  6. Sender: korz@cs.columbia.edu
  7. Organization: Columbia University Department of Computer Science
  8. References: <PFKEB.93Jan26194847@kaon.SLAC.Stanford.EDU> <1k6a6hINN9gc@controversy.math.lsa.umich.edu>
  9. Date: Thu, 28 Jan 1993 14:33:50 GMT
  10. Lines: 84
  11.  
  12. In article <1k6a6hINN9gc@controversy.math.lsa.umich.edu> Hal.Varian@umich.edu writes:
  13. >> >>>>> On 14 Jan 1993 16:28:19 GMT, schreine@byron.u.washington.edu (Robert  
  14. >Schreiner) said:
  15. >> > NNTP-Posting-Host: byron.u.washington.edu
  16. >> 
  17. >> > Greetings,
  18. >> 
  19. >> > I have a number of very wonderful and useful plotting apps that do
  20. >> > great things, but cannot find a app that allows me to make bargraphs with
  21. >> > error bars.  Does anyone know of an app for the NeXT with this capability
  22. >> > (preferably shareware) ?
  23. >
  24. >You probably want to use HippoDraw, but it is also worth pointing out the  
  25. >Mathematica routine ErrorListPlot.  See index to Wolfram's book for  
  26. >documentation.
  27.  
  28. Yet another possibility is GNUplot-3.2, or the about-to-be-released
  29. 3.3.  Copyrighted but freely redistributable.  (The name is a
  30. historical accident. GNUplot is not a Free SOftware Foundation
  31. product.)
  32.  
  33. Driven by a command line interface or optional command files, GNUplot
  34. has all sorts of output modes including a NeXT and X-11 screen drivers
  35. and ability to save postscript, encapsulated postscript, latex, ... to
  36. files.  (Can you say "good for research papers"?)
  37.  
  38. It does many things, including, I think, what you ask.  Here's the
  39. builtin help item for errorbars from a beta version of 3.3 but it is
  40. essentially unchanged from the commonly available 3.2 version.
  41.  
  42. The only thing it lacks is a GUI (graphical user interface) although I
  43. seem to recall someone has wedded a GUI to an old gnuplot (3.1 or
  44. earlier).
  45.  
  46. ================
  47. gnuplot> help errorbars
  48.  Error bars are supported for 2-d data file plots by reading one or
  49.  two additional columns specifying ydelta or ylow and yhigh
  50.  respectively. No support exists for x error bars or any error bars
  51.  for `splot`s.
  52.  
  53.  In the default situation, GNUPLOT expects to see three or four
  54.  numbers on each line of the data file, either (x, y, ydelta) or
  55.  (x, y, ylow, yhigh). The x coordinate must be specified. The order
  56.  of the numbers must be exactly as given above. Data files in this
  57.  format can easily be plotted with error bars:
  58.  
  59.          plot "data.dat" with errorbars
  60.  
  61.  The error bar is a vertical line plotted from (x, ylow) to (x,
  62.  yhigh). If ydelta is specified instead of ylow and yhigh,
  63.  ylow=y-ydelta and yhigh=y+ydelta are derived. If there
  64.  are only two numbers on the line, yhigh and ylow are both set to
  65.  y. To get lines plotted between the data points, `plot` the
  66.  data file twice, once with errorbars and once with lines.
  67.  
  68.  If y autoscaling is on, the y range will be adjusted to fit the
  69.  error bars.
  70.  
  71.  The `using` option may be used to specify how columns of the data file
  72.  are to be assigned to x, y, ydelta, ylow, and yhigh. The x column must
  73.  be provided and both the x and y columns must appear before the
  74.  errorbar columns. If three column numbers are given, they are x, y,
  75.  and ydelta. If four columns are given, they are x, y, ylow, and
  76.  yhigh.
  77.  
  78.  Examples:
  79.  
  80.          plot "data.dat" using 1:2:3:4 with errorbars
  81.          plot "data.dat" using 3:2:6 with errorbars
  82.          plot "data.dat" using 3:4:8:7 with errorbars
  83.  
  84.  The first example reads, x, y, ylow, and yhigh, from columns 1, 2, 3,
  85.  and 4. This is equivalent to the default.  The second example reads x
  86.  from the third column, y from second and ydelta from the sixth column.
  87.  The third example reads x from the third column, y from the fourth,
  88.  ylow from the eighth, and yhigh from seventh columns.
  89.  
  90.  See also `plot using` and `plot style`.
  91. =========================
  92.  
  93. Fred Korz            450 Computer Science Building
  94. korz@cs.columbia.edu        Columbia University
  95. (212) 939-7068            NY, NY  10027 (USA)
  96.