home *** CD-ROM | disk | FTP | other *** search
/ c't freeware shareware 1999 February / CT_SW9902.ISO / pc / software / wissen / daten / gnuplot.hqx / gnuplot.2.0b4 / docs / gnuplot.gih next >
Text File  |  1997-07-08  |  220KB  |  5,400 lines

  1. ?copyright
  2.        Copyright (C) 1986 - 1993, 1996   Thomas Williams, Colin Kelley
  3.  
  4.  Permission to use, copy, and distribute this software and its documentation
  5.  for any purpose with or without fee is hereby granted, provided that the
  6.  above copyright notice appears in all copies and that both that copyright
  7.  notice and this permission notice appear in supporting documentation.
  8.  
  9.  Permission to modify the software is granted, but not the right to distribute
  10.  the modified code.  Modifications are to be distributed as patches to the
  11.  released version.
  12.  
  13.  This software is provided "as is" without express or implied warranty.
  14.  
  15.  
  16.        AUTHORS
  17.  
  18.        Original Software:
  19.           Thomas Williams,  Colin Kelley.
  20.  
  21.        Gnuplot 2.0 additions:
  22.           Russell Lang, Dave Kotz, John Campbell.
  23.  
  24.        Gnuplot 3.0 additions:
  25.           Gershon Elber and many others.
  26. ?introduction
  27. ?
  28.  `gnuplot` is a command-driven interactive function and data plotting program.
  29.  It is case sensitive (commands and function names written in lowercase are
  30.  not the same as those written in CAPS).  All command names may be abbreviated
  31.  as long as the abbreviation is not ambiguous.  Any number of commands may
  32.  appear on a line (with the exception that `load` or `call` must be the final
  33.  command), separated by semicolons (;).  Strings are indicated with quotes.
  34.  They may be either single or double quotation marks, e.g.,
  35.  
  36.        load "filename"
  37.        cd 'dir'
  38.  
  39.  although there are some subtle differences (see `syntax` for more details).
  40.  
  41.  Any command-line arguments are assumed to be names of files containing
  42.  `gnuplot` commands, with the exception of standard X11 arguments, which are
  43.  processed first.  Each file is loaded with the `load` command, in the order
  44.  specified.  `gnuplot` exits after the last file is processed.  When no load
  45.  files are named, `gnuplot` enters into an interactive mode.
  46.  
  47.  Many `gnuplot` commands have multiple options.  These options must appear in
  48.  the proper order, although unwanted ones may be omitted in most cases.  Thus
  49.  if the entire command is "command a b c", then "command a c" will probably
  50.  work, but "command c a" will fail.
  51.  
  52.  Commands may extend over several input lines by ending each line but the last
  53.  with a backslash (\).  The backslash must be the _last_ character on each
  54.  line.  The effect is as if the backslash and newline were not there.  That
  55.  is, no white space is implied, nor is a comment terminated.  Therefore, 
  56.  commenting out a continued line comments out the entire command (see 
  57.  `comment`).  But note that if an error occurs somewhere on a multi-line
  58.  command, the parser may not be able to locate precisely where the error is
  59.  and in that case will not necessarily point to the correct line.
  60.  
  61.  In this document, curly braces ({}) denote optional arguments and a vertical
  62.  bar (|) separates mutually exclusive choices.  `gnuplot` keywords or `help`
  63.  topics are indicated by backquotes or `boldface` (where available).  Angle
  64.  brackets (<>) are used to mark replaceable tokens.
  65.  
  66.  For on-line help on any topic, type `help` followed by the name of the topic
  67.  or just `help` or `?` to get a menu of available topics.
  68.  
  69.  The new `gnuplot` user should begin by reading about the `plot` command (if
  70.  on-line, type `help plot`).
  71. ?seeking-assistance
  72.  There is a mailing list for `gnuplot` users.  Note, however, that the
  73.  newsgroup
  74.        comp.graphics.apps.gnuplot
  75.  is identical to the mailing list (they both carry the same set of messages).
  76.  We prefer that you read the messages through the newsgroup rather than
  77.  subscribing to the mailing list.  Administrative requests should be sent to
  78.        majordomo@dartmouth.edu
  79.  Send a message with the body (not the subject) consisting of the single word
  80.  "help" (without the quotes) for more details.
  81.  
  82.  The address for mailing to list members is:
  83.        info-gnuplot@dartmouth.edu
  84.  
  85.  Bug reports and code contributions should be mailed to:
  86.        bug-gnuplot@dartmouth.edu
  87.  
  88.  The list of those interested in beta-test versions is:
  89.        info-gnuplot-beta@dartmouth.edu
  90.  
  91.  There is also a World Wide Web page with up-to-date information, including
  92.  known bugs:
  93.        http://www.cs.dartmouth.edu/gnuplot
  94.  
  95.  Before seeking help, please check the 
  96.  FAQ (Frequently Asked Questions) list.
  97.  If you do not have a copy of the FAQ, you may request a copy by email from
  98.  the Majordomo address above, or see the WWW `gnuplot` page.
  99.  
  100.  When posting a question, please include full details of the version of
  101.  `gnuplot`, the machine, and operating system you are using.  A _small_ script
  102.  demonstrating the problem may be useful.  Function plots are preferable to
  103.  datafile plots.  If email-ing to info-gnuplot, please state whether or not
  104.  you are subscribed to the list, so that users who use news will know to email
  105.  a reply to you.  There is a form for such postings on the WWW site.
  106. ?what's-new
  107.  Gnuplot version 3.6 contains many new features.  This section gives a partial
  108.  list and links to the new items in no particular order.
  109.  
  110.  1. `fit f(x) 'file' via` uses the Marquardt-Levenberg method to fit data.
  111.  (This is only slightly different from the `gnufit` patch available for 3.5.)
  112.  
  113.  2. Greatly expanded `using` command.  See `plot using`.
  114.  
  115.  3. `set timefmt` allows for the use of dates as input and output for time
  116.  series plots.  See `Time/Date data` and
  117.  timedat.dem.
  118.  
  119.  4. Multiline labels and font selection in some drivers.
  120.  
  121.  5. Minor (unlabeled) tics.  See `set mxtics`.
  122.  
  123.  6. `key` options for moving the key box in the page (and even outside of the
  124.  plot), putting a title on it and a box around it, and more.  See `set key`.
  125.  
  126.  7. Multiplots on a single logical page with `set multiplot`.
  127.  
  128.  8. Enhanced `postscript` driver with super/subscripts and font changes.
  129.  (This was a separate driver (`enhpost`) that was available as a patch for
  130.  3.5.)
  131.  
  132.  9. Second axes:  use the top and right axes independently of the bottom and
  133.  left, both for plotting and labels.  See `plot`.
  134.  
  135.  10. Special datafile names `'-'` and `""`.  See `plot special-filenames`.
  136.  
  137.  11. Additional coordinate systems for labels and arrows.  See `coordinates`.
  138.  
  139.  12. `set size` can try to plot with a specified aspect ratio.
  140.  
  141.  13. `set missing` now treats missing data correctly.
  142.  
  143.  14. The `call` command: `load` with arguments.
  144.  
  145.  15. More flexible `range` commands with `reverse` and `writeback` keywords.
  146.  
  147.  16. `set encoding` for multi-lingual encoding.
  148.  
  149.  17. New `x11` driver with persistent and multiple windows.
  150.  
  151.  18. New plotting styles: `xerrorbars`, `histeps`, `financebars` and more.
  152.  See `set style`.
  153.  
  154.  19. New tic label formats, including `"%l %L"` which uses the mantissa and
  155.  exponents to a given base for labels.  See `set format`.
  156.  
  157.  20. New drivers, including `cgm` for inclusion into MS-Office applications
  158.  and `gif` for serving plots to the WEB.
  159.  
  160.  21. Smoothing and spline-fitting options for `plot`.  See `plot smooth`.
  161.  
  162.  22. `set margin` and `set origin` give much better control over where a
  163.  graph appears on the page.
  164.  
  165.  23. `set border` now controls each border individually.
  166.  
  167.  24. The new commands `if` and `reread` allow command loops.
  168.  
  169.  25. Point styles and sizes, line types and widths can be specified on the
  170.  `plot` command.  Line types and widths can also be specified for grids,
  171.  borders, tics and arrows.  See `plot with`.  Furthermore these types may be
  172.  combined and stored for further use.  See `set linestyle`.
  173.  
  174.  26. Text (labels, tic labels, and the time stamp) can be written vertically
  175.  by those terminals capable of doing so.
  176. ?line-editing
  177. ?editing
  178. ?history
  179. ?command-line-editing
  180.  Command-line editing is supported by the Unix, Atari, VMS, MS-DOS and OS/2
  181.  versions of `gnuplot`.  Also, a history mechanism allows previous commands to
  182.  be edited and re-executed.  After the command line has been edited, a newline
  183.  or carriage return will enter the entire line without regard to where the
  184.  cursor is positioned.
  185.  
  186.  (The readline function in `gnuplot` is not the same as the readline used in
  187.  GNU Bash and GNU Emacs.  If the GNU version is desired, it may be selected
  188.  instead of the `gnuplot` version at compile time.)
  189.  
  190.  
  191.  The editing commands are as follows:
  192.  
  193.        `Line-editing`:
  194.  
  195.        ^B    moves back a single character.
  196.        ^F    moves forward a single character.
  197.        ^A    moves to the beginning of the line.
  198.        ^E    moves to the end of the line.
  199.        ^H    and DEL delete the previous character.
  200.        ^D    deletes the current character.
  201.        ^K    deletes from current position to the end of line.
  202.        ^L,^R redraws line in case it gets trashed.
  203.        ^U    deletes the entire line.
  204.        ^W    deletes the last word.
  205.  
  206.        `History`:
  207.  
  208.        ^P    moves back through history.
  209.        ^N    moves forward through history.
  210.  
  211.  On the IBM PC, the use of a TSR program such as DOSEDIT or CED may be desired
  212.  for line editing.  The default makefile assumes that this is the case;  by
  213.  default `gnuplot` will be compiled with no line-editing capability.  If you
  214.  want to use `gnuplot`'s line editing, set READLINE in the makefile and add
  215.  readline.obj to the link file.  The following arrow keys may be used on the
  216.  IBM PC and Atari versions if readline is used:
  217.  
  218.        Left  Arrow      - same as ^B.
  219.        Right Arrow      - same as ^F.
  220.        Ctrl Left  Arrow - same as ^A.
  221.        Ctrl Right Arrow - same as ^E.
  222.        Up    Arrow      - same as ^P.
  223.        Down  Arrow      - same as ^N.
  224.  
  225.  The Atari version of readline defines some additional key aliases:
  226.  
  227.        Undo            - same as ^L.
  228.        Home            - same as ^A.
  229.        Ctrl Home       - same as ^E.
  230.        Esc             - same as ^U.
  231.        Help            - `help' plus return.
  232.        Ctrl Help       - `help '.
  233. ?comments
  234.  Comments are supported as follows: a # may appear in most places in a line
  235.  and `gnuplot` will ignore the rest of the line.  It will not have this effect
  236.  inside quotes, inside numbers (including complex numbers), inside command
  237.  substitutions, etc.  In short, it works anywhere it makes sense to work.
  238. ?coordinates
  239.  The commands `set arrow`, `set key`, and `set label` allow you to draw
  240.  something at an arbitrary position on the graph.  This position is specified
  241.  by the syntax:
  242.  
  243.        {<system>} <x>, {<system>} <y> {,{<system>} <z>}
  244.  
  245.  Each <system> can either be `first`, `second`, `graph` or `screen`.
  246.  
  247.  `first` places the x, y, or z coordinate in the system defined by the left
  248.  and bottom axes; `second` places it in the system defined by the second axes
  249.  (top and right); `graph` specifies the area within the axes---0,0 is bottom
  250.  left and 1,1 is top right (for splot, 0,0,0 is bottom left of plotting area;
  251.  use negative z to get to the base---see `set ticslevel`); and `screen`
  252.  specifies the screen area (the entire area---not just the portion selected by
  253.  `set size`), with 0,0 at bottom left and 1,1 at top right.
  254.  
  255.  If the coordinate system for x is not specified, `first` is used.  If the
  256.  system for y is not specified, the one used for x is adopted.
  257.  
  258.  If one (or more) axis is timeseries, the appropriate coordinate should
  259.  be given as a quoted time string according to the `timefmt` format string.
  260.  See `set xdata` and `set timefmt`.  `gnuplot` will also accept an integer
  261.  expression, which will be interpreted as seconds from 1 January 2000.
  262. ?environment
  263.  A number of shell environment variables are understood by `gnuplot`.  None of
  264.  these are required, but may be useful.
  265.  
  266.  If GNUTERM is defined, it is used as the name of the terminal type to be
  267.  used.  This overrides any terminal type sensed by `gnuplot` on start-up, but
  268.  is itself overridden by the .gnuplot (or equivalent) start-up file (see
  269.  `start-up`) and, of course, by later explicit changes.
  270.  
  271.  On Unix, AmigaDOS, AtariTOS, MS-DOS and OS/2, GNUHELP may be defined to be
  272.  the pathname of the HELP file (gnuplot.gih).
  273.  
  274.  On VMS, the logical name gnuplot$HELP should be defined as the name of the
  275.  help library for `gnuplot`.  The `gnuplot` help can be put inside any system
  276.  help library, allowing access to help from both within and outside `gnuplot`
  277.  if desired.
  278.  
  279.  On Unix, HOME is used as the name of a directory to search for a .gnuplot
  280.  file if none is found in the current directory.  On AmigaDOS, AtariTOS,
  281.  MS-DOS and OS/2, gnuplot is used.  On VMS, SYS$LOGIN: is used. See `help
  282.  start-up`.
  283.  
  284.  On Unix, PAGER is used as an output filter for help messages.
  285.  
  286.  On Unix, AtariTOS and AmigaDOS, SHELL is used for the `shell` command.  On
  287.  MS-DOS and OS/2, COMSPEC is used for the `shell` command.
  288.  
  289.  On AmigaDOS, GNUFONT is used for the screen font.  For example:
  290.        setenv GNUFONT sapphire/14
  291.  
  292.  On MS-DOS, if the BGI interface is used, BGI is used to point to the full
  293.  path of the BGI drivers directory.  Furthermore, SVGA is used to name the
  294.  Super VGA BGI driver in 800x600 resolution and its mode of operation is
  295.  Name.Mode.  E.g., if the Super VGA driver is
  296.        C:\TC\BGI\SVGADRV.BGI
  297.  and mode 3 is used for 800x600 resolution, then use the following:
  298.        set BGI=C:\TC\BGI
  299.        set SVGA=SVGADRV.3
  300.  
  301.  FIT_SCRIPT may be used to specify a `gnuplot` command to be executed when a
  302.  fit is interrupted---see `fit`.  FIT_LOG specifies the filename of the
  303.  logfile maintained by fit.
  304. ?expressions
  305.  In general, any mathematical expression accepted by C, FORTRAN, Pascal, or
  306.  BASIC is valid.  The precedence of these operators is determined by the
  307.  specifications of the C programming language.  White space (spaces and tabs)
  308.  is ignored inside expressions.
  309.  
  310.  Complex constants are expressed as {<real>,<imag>}, where <real> and <imag>
  311.  must be numerical constants.  For example, {3,2} represents 3 + 2i; {0,1}
  312.  represents 'i' itself.  The curly braces are explicitly required here.
  313.  
  314.  Note that gnuplot uses both "real" and "integer" arithmetic, like FORTRAN and
  315.  C.  Integers are entered as "1", "-10", etc; reals as "1.0", "-10.0", "1e1",
  316.  3.5e-1, etc.  The most important difference between the two forms is in
  317.  division: division of integers truncates: 5/2 = 2; division of reals does
  318.  not: 5.0/2.0 = 2.5.  In mixed expressions, integers are "promoted" to reals
  319.  before evaluation: 5/2e0 = 2.5.  The result of division of a negative integer
  320.  by a positive one may vary among compilers.  Try a test like "print -5/2" to
  321.  determine if your system chooses -2 or -3 as the answer.
  322.  
  323.  The real and imaginary parts of complex expressions are always real, whatever
  324.  the form in which they are entered: in {3,2} the "3" and "2" are reals, not
  325.  integers.
  326. ?expressions functions
  327. ?functions
  328.  The functions in `gnuplot` are the same as the corresponding functions in
  329.  the Unix math library, except that all functions accept integer, real, and
  330.  complex arguments, unless otherwise noted.
  331.  
  332.  For those functions that accept or return angles that may be given in either
  333.  degrees or radians (sin(x), cos(x), tan(x), asin(x), acos(x), atan(x),
  334.  atan2(x) and arg(z)), the unit may be selected by `set angles`, which
  335.  defaults to radians.
  336.  
  337. ?expressions functions abs
  338. ?functions abs
  339. ?abs
  340.  The `abs` function returns the absolute value of its argument.  The returned
  341.  value is of the same type as the argument.
  342.  
  343.  For complex arguments, abs(x) is defined as the length of x in the complex
  344.  plane [i.e.,  sqrt(real(x)**2 + imag(x)**2) ].
  345. ?expressions functions acos
  346. ?functions acos
  347. ?acos
  348.  The `acos` function returns the arc cosine (inverse cosine) of its argument.
  349.  `acos` returns its argument in radians or degrees, as selected by `set
  350.  angles`.
  351. ?expressions functions acosh
  352. ?functions acosh
  353. ?acosh
  354.  The `acosh` function returns the inverse hyperbolic cosine of its argument in
  355.  radians.
  356. ?expressions functions arg
  357. ?functions arg
  358. ?arg
  359.  The `arg` function returns the phase of a complex number in radians or
  360.  degrees, as selected by `set angles`.
  361. ?expressions functions asin
  362. ?functions asin
  363. ?asin
  364.  The `asin` function returns the arc sin (inverse sin) of its argument.
  365.  `asin` returns its argument in radians or degrees, as selected by `set
  366.  angles`.
  367. ?expressions functions asinh
  368. ?functions asinh
  369. ?asinh
  370.  The `asinh` function returns the inverse hyperbolic sin of its argument in
  371.  radians.
  372. ?expressions functions atan
  373. ?functions atan
  374. ?atan
  375.  The `atan` function returns the arc tangent (inverse tangent) of its
  376.  argument.  `atan` returns its argument in radians or degrees, as selected by
  377.  `set angles`.
  378. ?expressions functions atan2
  379. ?functions atan2
  380. ?atan2
  381.  The `atan2` function returns the arc tangent (inverse tangent) of the ratio
  382.  of the real parts of its arguments.  `atan2` returns its argument in radians
  383.  or degrees, as selected by `set angles`, in the correct quadrant.
  384. ?expressions functions atanh
  385. ?functions atanh
  386. ?atan
  387.  The `atanh` function returns the inverse hyperbolic tangent of its argument
  388.  in radians.
  389. ?expressions functions besj0
  390. ?functions besj0
  391. ?besj0
  392.  The `besj0` function returns the j0th Bessel function of its argument.
  393.  `besj0` expects its argument to be in radians.
  394. ?expressions functions besj1
  395. ?functions besj1
  396. ?besj1
  397.  The `besj1` function returns the j1st Bessel function of its argument.
  398.  `besj1` expects its argument to be in radians.
  399. ?expressions functions besy0
  400. ?functions besy0
  401. ?besy0
  402.  The `besy0` function returns the y0th Bessel function of its argument.
  403.  `besy0` expects its argument to be in radians.
  404. ?expressions functions besy1
  405. ?functions besy1
  406. ?besy1
  407.  The `besy1` function returns the y1st Bessel function of its argument.
  408.  `besy1` expects its argument to be in radians.
  409. ?expressions functions ceil
  410. ?functions ceil
  411. ?ceil
  412.  The `ceil` function returns the smallest integer that is not less than its
  413.  argument.  For complex numbers, `ceil` returns the smallest integer not less
  414.  than the real part of its argument.
  415. ?expressions functions cos
  416. ?functions cos
  417. ?cos
  418.  The `cos` function returns the cosine of its argument.  `cos` accepts its
  419.  argument in radians or degrees, as selected by `set angles`.
  420. ?expressions functions cosh
  421. ?functions cosh
  422. ?cosh
  423.  The `cosh` function returns the hyperbolic cosine of its argument.  `cosh`
  424.  expects its argument to be in radians.
  425. ?expressions functions erf
  426. ?functions erf
  427. ?erf
  428.  The `erf` function returns the error function of the real part of its
  429.  argument.  If the argument is a complex value, the imaginary component is
  430.  ignored.
  431. ?expressions functions erfc
  432. ?functions erfc
  433. ?erfc
  434.  The `erfc` function returns 1.0 - the error function of the real part of its
  435.  argument.  If the argument is a complex value, the imaginary component is
  436.  ignored.
  437. ?expressions functions exp
  438. ?functions exp
  439. ?exp
  440.  The `exp` function returns the exponential function of its argument (`e`
  441.  raised to the power of its argument).  On some implementations (notably
  442.  suns), exp(-x) returns undefined for very large x.  A user-defined function
  443.  like safe(x) = x<-100 ? 0 : exp(x) might prove useful in these cases.
  444. ?expressions functions floor
  445. ?functions floor
  446. ?floor
  447.  The `floor` function returns the largest integer not greater than its
  448.  argument.  For complex numbers, `floor` returns the largest integer not
  449.  greater than the real part of its argument.
  450. ?expressions functions gamma
  451. ?functions gamma
  452. ?gamma
  453.  The `gamma` function returns the gamma function of the real part of its
  454.  argument.  For integer n, gamma(n+1) = n!.  If the argument is a complex
  455.  value, the imaginary component is ignored.
  456. ?expressions functions ibeta
  457. ?functions ibeta
  458. ?ibeta
  459.  The `ibeta` function returns the incomplete beta function of the real parts
  460.  of its arguments. p, q > 0 and x in [0:1].  If the arguments are complex,
  461.  the imaginary components are ignored.
  462. ?expressions functions inverf
  463. ?functions inverf
  464. ?inverf
  465.  The `inverf` function returns the inverse error function of the real part
  466.  of its argument.
  467. ?expressions functions igamma
  468. ?functions igamma
  469. ?igamma
  470.  The `igamma` function returns the incomplete gamma function of the real
  471.  parts of its arguments.  a > 0 and x >= 0.  If the arguments are complex,
  472.  the imaginary components are ignored.
  473. ?expressions functions imag
  474. ?functions imag
  475. ?imag
  476.  The `imag` function returns the imaginary part of its argument as a real
  477.  number.
  478. ?expressions functions invnorm
  479. ?functions invnorm
  480. ?invnorm
  481.  The `invnorm` function returns the inverse normal distribution function of
  482.  the real part of its argument.
  483. ?expressions functions int
  484. ?functions int
  485. ?int
  486.  The `int` function returns the integer part of its argument, truncated
  487.  toward zero.
  488. ?expressions functions lgamma
  489. ?functions lgamma
  490. ?lgamma
  491.  The `lgamma` function returns the natural logarithm of the gamma function
  492.  of the real part of its argument.  If the argument is a complex value, the
  493.  imaginary component is ignored.
  494. ?expressions functions log
  495. ?functions log
  496. ?log
  497.  The `log` function returns the natural logarithm (base `e`) of its argument.
  498. ?expressions functions log10
  499. ?functions log10
  500. ?log10
  501.  The `log10` function returns the logarithm (base 10) of its argument.
  502. ?expressions functions norm
  503. ?functions norm
  504. ?norm
  505.  The `norm` function returns the normal distribution function (or Gaussian)
  506.  of the real part of its argument.
  507. ?expressions functions rand
  508. ?functions rand
  509. ?rand
  510.  The `rand` function returns a pseudo random number in the interval [0:1]
  511.  using the real part of its argument as a seed.  If seed < 0, the sequence
  512.  is (re)initialized.  If the argument is a complex value, the imaginary
  513.  component is ignored.
  514. ?expressions functions real
  515. ?functions real
  516. ?real
  517.  The `real` function returns the real part of its argument.
  518. ?expressions functions sgn
  519. ?functions sgn
  520. ?sgn
  521.  The `sgn` function returns 1 if its argument is positive, -1 if its argument
  522.  is negative, and 0 if its argument is 0.  If the argument is a complex value,
  523.  the imaginary component is ignored.
  524. ?expressions functions sin
  525. ?functions sin
  526. ?sin
  527.  The `sin` function returns the sine of its argument.  `sin` expects its
  528.  argument to be in radians or degrees, as selected by `set angles`.
  529. ?expressions functions sinh
  530. ?functions sinh
  531. ?sinh
  532.  The `sinh` function returns the hyperbolic sine of its argument.  `sinh`
  533.  expects its argument to be in radians.
  534. ?expressions functions sqrt
  535. ?functions sqrt
  536. ?sqrt
  537.  The `sqrt` function returns the square root of its argument.
  538. ?expressions functions tan
  539. ?functions tan
  540. ?tan
  541.  The `tan` function returns the tangent of its argument.  `tan` expects
  542.  its argument to be in radians or degrees, as selected by `set angles`.
  543. ?expressions functions tanh
  544. ?functions tanh
  545. ?tanh
  546.  The `tanh` function returns the hyperbolic tangent of its argument.  `tanh`
  547.  expects its argument to be in radians.
  548.  
  549.  A few additional functions are also available.
  550.  
  551. ?expressions functions column
  552. ?functions column
  553. ?column
  554.  `column(x)` may be used only in expressions as part of `using` manipulations
  555.  to fits or datafile plots.  See `plot datafile using`.
  556. ?expressions tm_hour
  557. ?functions tm_hour
  558.  The `tm_hour` function interprets its argument as a time, in seconds from 
  559.  1 Jan 2000.  It returns the hour (an integer in the range 0--23) as a real.
  560. ?expressions tm_mday
  561. ?functions tm_mday
  562.  The `tm_mday` function interprets its argument as a time, in seconds from 
  563.  1 Jan 2000.  It returns the day of the month (an integer in the range 1--31)
  564.  as a real.
  565. ?expressions tm_min
  566. ?functions tm_min
  567.  The `tm_min` function interprets its argument as a time, in seconds from
  568.  1 Jan 2000.  It returns the minute (an integer in the range 0--59) as a real.
  569. ?expressions tm_mon
  570. ?functions tm_mon
  571.  The `tm_mon` function interprets its argument as a time, in seconds from
  572.  1 Jan 2000.  It returns the month (an integer in the range 1--12) as a real.
  573. ?expressions tm_sec
  574. ?functions tm_sec
  575.  The `tm_sec` function interprets its argument as a time, in seconds from
  576.  1 Jan 2000.  It returns the second (an integer in the range 0--59) as a real.
  577. ?expressions tm_wday
  578. ?functions tm_wday
  579.  The `tm_wday` function interprets its argument as a time, in seconds from
  580.  1 Jan 2000.  It returns the day of the week (an integer in the range 1--7) as
  581.  a real.
  582. ?expressions tm_yday
  583. ?functions tm_yday
  584.  The `tm_yday` function interprets its argument as a time, in seconds from
  585.  1 Jan 2000.  It returns the day of the year (an integer in the range 1--366)
  586.  as a real.
  587. ?expressions tm_year
  588. ?functions tm_year
  589.  The `tm_year` function interprets its argument as a time, in seconds from
  590.  1 Jan 2000.  It returns the year (an integer) as a real.
  591. ?expressions functions valid
  592. ?functions valid
  593. ?valid
  594.  `valid(x)` may be used only in expressions as part of `using` manipulations
  595.  to fits or datafile plots.  See `plot datafile using`.
  596. ?expressions operators
  597. ?operators
  598.  The operators in `gnuplot` are the same as the corresponding operators in the
  599.  C programming language, except that all operators accept integer, real, and
  600.  complex arguments, unless otherwise noted.  The ** operator (exponentiation)
  601.  is supported, as in FORTRAN.
  602.  
  603.  Parentheses may be used to change order of evaluation.
  604. ?expressions operators unary
  605. ?operators unary
  606. ?unary
  607.  The following is a list of all the unary operators and their usages:
  608.  
  609.      Symbol      Example    Explanation
  610.        -           -a          unary minus
  611.        +           +a          unary plus (no-operation)
  612.        ~           ~a        * one's complement
  613.        !           !a        * logical negation
  614.        !           a!        * factorial
  615.        $           $3        * call arg/column during `using` manipulation
  616.  (*) Starred explanations indicate that the operator requires an integer
  617.  argument.
  618.  
  619.  Operator precedence is the same as in Fortran and C.  As in those languages,
  620.  parantheses may be used to change the order of operation.  Thus -2**2 = -4,
  621.  but (-2)**2 = 4.
  622.  
  623.  The factorial operator returns a real number to allow a greater range.
  624. ?expressions operators binary
  625. ?operators binary
  626. ?binary
  627.  The following is a list of all the binary operators and their usages:
  628.  
  629.      Symbol       Example      Explanation
  630.        **          a**b          exponentiation
  631.        *           a*b           multiplication
  632.        /           a/b           division
  633.        %           a%b         * modulo
  634.        +           a+b           addition
  635.        -           a-b           subtraction
  636.        ==          a==b          equality
  637.        !=          a!=b          inequality
  638.        <           a<b           less than
  639.        <=          a<=b          less than or equal to
  640.        >           a>b           greater than
  641.        >=          a>=b          greater than or equal to
  642.        &           a&b         * bitwise AND
  643.        ^           a^b         * bitwise exclusive OR
  644.        |           a|b         * bitwise inclusive OR
  645.        &&          a&&b        * logical AND
  646.        ||          a||b        * logical OR
  647.  
  648.  (*) Starred explanations indicate that the operator requires integer
  649.  arguments.
  650.  
  651.  Logical AND (&&) and OR (||) short-circuit the way they do in C.  That is,
  652.  the second `&&` operand is not evaluated if the first is false; the second
  653.  `||` operand is not evaluated if the first is true.
  654. ?expressions operators ternary
  655. ?operators ternary
  656. ?ternary
  657.  There is a single ternary operator:
  658.  
  659.      Symbol       Example      Explanation
  660.        ?:          a?b:c     ternary operation
  661.  
  662.  The ternary operator behaves as it does in C.  The first argument (a), which
  663.  must be an integer, is evaluated.  If it is true (non-zero), the second
  664.  argument (b) is evaluated and returned; otherwise the third argument (c) is
  665.  evaluated and returned.
  666.  
  667.  The ternary operator is very useful both in constructing piecewise functions
  668.  and in plotting points only when certain conditions are met.
  669.  
  670.  Examples:
  671.  
  672.  Plot a function that is to equal sin(x) for 0 <= x < 1, 1/x for 1 <= x < 2,
  673.  and undefined elsewhere:
  674.        f(x) = 0<=x && x<1 ? sin(x) : 1<=x && x<2 ? 1/x : 1/0
  675.        plot f(x)
  676.  Note that `gnuplot` quietly ignores undefined values, so the final branch of
  677.  the function (1/0) will produce no plottable points.  Note also that f(x)
  678.  will be plotted as a continuous function across the discontinuity if a line
  679.  style is used.  To plot it discontinuously, create separate functions for the
  680.  two pieces.  (Parametric functions are also useful for this purpose.)
  681.  
  682.  For data in a file, plot the average of the data in columns 2 and 3 against
  683.  the datum in column 1, but only if the datum in column 4 is non-negative:
  684.  
  685.        plot 'file' using 1:( $4<0 ? 1/0 : ($2+$3)/2 )
  686.  
  687.  Please see `plot data-file using` for an explanation of the `using` syntax.
  688. ?expressions user-defined
  689. ?user-defined
  690. ?variables
  691.  New user-defined variables and functions of one through five variables may
  692.  be declared and used anywhere, including on the `plot` command itself.
  693.  
  694.  User-defined function syntax:
  695.        <func-name>( <dummy1> {,<dummy2>} ... {,<dummy5>} ) = <expression>
  696.  
  697.  where <expression> is defined in terms of <dummy1> through <dummy5>.
  698.  
  699.  User-defined variable syntax:
  700.        <variable-name> = <constant-expression>
  701.  
  702.  Examples:
  703.        w = 2
  704.        q = floor(tan(pi/2 - 0.1))
  705.        f(x) = sin(w*x)
  706.        sinc(x) = sin(pi*x)/(pi*x)
  707.        delta(t) = (t == 0)
  708.        ramp(t) = (t > 0) ? t : 0
  709.        min(a,b) = (a < b) ? a : b
  710.        comb(n,k) = n!/(k!*(n-k)!)
  711.        len3d(x,y,z) = sqrt(x*x+y*y+z*z)
  712.        plot f(x) = sin(x*a), a = 0.2, f(x), a = 0.4, f(x)
  713.  
  714.  Note that the variable `pi` is already defined.  But it is in no way magic;
  715.  you may redefine it to be whatever you like.
  716.  
  717.  Valid names are the same as in most programming languages: they must begin
  718.  with a letter, but subsequent characters may be letters, digits, "$", or "_".
  719.  Note, however, that the `fit` mechanism uses several variables with names
  720.  that begin "FIT_".  It is safest to avoid using such names.  "FIT_LIMIT",
  721.  however, is one that you may wish to redefine.
  722.  
  723.  See `show functions` and `show variables`.
  724. ?glossary
  725.  Throughout this document an attempt has been made to maintain consistency of
  726.  nomenclature.  This cannot be wholly successful because as `gnuplot` has
  727.  evolved over time, certain command and keyword names have been adopted that
  728.  preclude such perfection.  This section contains explanations of the way
  729.  some of these terms are used.
  730.  
  731.  A "page" or "screen" is the entire area addressable by `gnuplot`.  On a
  732.  monitor, it is the full screen; on a plotter, it is a single sheet of
  733.  paper.
  734.  
  735.  A screen may contain one or more "graphs".  A graph is defined by an
  736.  abscissa and an ordinate, although these need not actually appear on it.
  737.  
  738.  A graph may contain one or more "plots".  A plot is a single function or
  739.  data set.
  740.  
  741.  The plots on a graph may have individual names.  These may be listed together
  742.  with a sample of the line and/or point style used to represent them in the
  743.  "key", sometimes also called the "legend".
  744.  
  745.  The word "title" occurs with multiple meanings in `gnuplot`.  In this
  746.  document, it will always be preceded by the adjective "graph", "plot", or
  747.  "key" to differentiate among them.
  748.  
  749.  A graph may have up to four labelled axes.  Various commands have the name of
  750.  an axis built into their names, such as `set xlabel`.  Other commands have
  751.  one or more axis names as options, such as `set logscale xy`.  The names of
  752.  the four axes for these usages are "x" for the axis along the bottom border
  753.  of the plot, "y" for the left border, "x2" for the top border, and "y2" for
  754.  the right border.  "z" also occurs in commands used with 3-d plotting.
  755. ?plotting
  756.  There are three `gnuplot` commands which actually create a graph: `plot`,
  757.  `splot` and `replot`.  `plot` generates 2-d graphs, `splot` generates 3-d
  758.  graphs (actually 2-d projections, of course), and `replot` appends its
  759.  arguments to the previous `plot` or `splot` and executes the modified
  760.  command.
  761.  
  762.  Much of the general information about plotting can be found in the discussion
  763.  of `plot`; information specific to 3-d can be found in the `splot` section.
  764.  
  765.  `plot` operates in either rectangular or polar coordinates -- see `set polar`
  766.  for details of the latter.  `splot` operates only in rectangular coordinates,
  767.  but the `set mapping` command allows for a few other coordinate systems to be
  768.  treated.  In addition, the `using` option allows both `plot` and `splot` to
  769.  treat almost any coordinate system you'd care to define.
  770.  
  771.  `splot` can graph surfaces and contours in addition to lines.  See `splot
  772.  datafile` for information about the requisite file structure for both of
  773.  these; see `set isosamples` for information about defining the grid for a 3-d
  774.  function.  See `set contour` and `set cntrparam` for information about
  775.  contours.
  776. ?startup
  777. ?start
  778. ?.gnuplot
  779.  When `gnuplot` is run, it looks for an initialization file to load.  This
  780.  file is called `.gnuplot` on Unix and AmigaDOS systems, and `GNUPLOT.INI`
  781.  on other systems.  If this file is not found in the current directory, the
  782.  program will look for it in the home directory (under AmigaDOS,
  783.  Atari(single)TOS, MS-DOS and OS/2, the environment variable `gnuplot` should
  784.  contain the name of this directory).  Note: if NOCWDRC is defined during the
  785.  installation, `gnuplot` will not read from the current directory.
  786.  
  787.  If the initialization file is found, `gnuplot` executes the commands in it.
  788.  These may be any legal `gnuplot` commands, but typically they are limited to
  789.  setting the terminal and defining frequently-used functions or variables.
  790. ?substitution
  791.  Command-line substitution is specified by a system command enclosed in
  792.  backquotes.  This command is spawned and the output it produces replaces
  793.  the name of the command (and backquotes) on the command line.
  794.  
  795.  Newlines in the output produced by the spawned command are replaced with
  796.  blanks.
  797.  
  798.  Command-line substitution can be used anywhere on the `gnuplot` command
  799.  line.
  800.  
  801.  Example:
  802.  
  803.  This will run the program `leastsq` and replace `leastsq` (including
  804.  backquotes) on the command line with its output:
  805.        f(x) = `leastsq`
  806.  
  807.  or, in VMS
  808.        f(x) = `run leastsq`
  809. ?syntax
  810. ?specify
  811. ?punctuation
  812.  The general rules of syntax and punctuation in `gnuplot` are that keywords
  813.  and options are order-dependent.  Options and any accompanying parameters are
  814.  separated by spaces whereas lists and coordinates are separated by commas.
  815.  Ranges are separated by colons and enclosed in braces [], text and file names
  816.  are enclosed in quotes, and a few miscellaneous things are enclosed in
  817.  parentheses.  Brackets {} are used for a few special purposes.
  818.  
  819.  Commas are used to separate coordinates on the `set` commands `arrow`,
  820.  `key`, and `label`; the list of variables being fitted (the list after the
  821.  `via` keyword on the `fit` command); lists of discrete contours or the loop
  822.  parameters which specify them on the `set cntrparam` command; the arguments
  823.  of the `set` commands `dgrid3d`, `dummy`, `isosamples`, `offsets`, `origin`,
  824.  `samples`, `size`, `time`, and `view`; lists of tics or the loop parameters
  825.  which specify them; the offsets for titles and axis labels; parametric
  826.  functions to be used to calculate the x, y, and z coordinates on the `plot`,
  827.  `replot` and `splot` commands; and the complete sets of keywords specifying
  828.  individual plots (data sets or functions) on the `plot`, `replot` and `splot`
  829.  commands.
  830.  
  831.  Parentheses are used to delimit sets of explicit tics (as opposed to loop
  832.  parameters) and to indicate computations in the `using` filter of the `fit`,
  833.  `plot`, `replot` and `splot` commands.
  834.  
  835.  (Parentheses and commas are also used as usual in function notation.)
  836.  
  837.  Braces are used to delimit ranges, whether they are given on `set`, `plot` or
  838.  `splot` commands.
  839.  
  840.  Colons are used to separate extrema in `range` specifications (whether they
  841.  are given on `set`, `plot` or `splot` commands) and to separate entries in
  842.  the `using` filter of the `plot`, `replot`, `splot` and `fit` commands.
  843.  
  844.  Semicolons are used to separate commands given on a single line.
  845.  
  846.  Brackets are used in text to be specially processed by some terminals, like
  847.  `postscript`.  They are also used to denote complex numbers: {3,2} = 3 + 2i.
  848.  
  849.  Text may be enclosed in single- or double-quotes.  Backslash processing of
  850.  sequences like \n (newline) and \345 (octal character code) is performed for
  851.  double-quoted strings, but not for single-quoted strings.
  852.  
  853.  The justification is the same for each line of a multi-line string.  Thus the
  854.  center-justified string
  855.        "This is the first line of text.\nThis is the second line."
  856.  will produce
  857.                         This is the first line of text.
  858.                            This is the second line.
  859.  but
  860.        'This is the first line of text.\nThis is the second line.'
  861.  will produce
  862.            This is the first line of text.\nThis is the second line.
  863.  
  864.  At present you should not embed \n inside {} when using the enhanced option
  865.  of the postscript terminal.
  866.  
  867.  The EEPIC, Imagen, Uniplex, LaTeX, and TPIC drivers allow a newline to be
  868.  specified by \\ in a single-quoted string or \\\\ in a double-quoted string.
  869.  
  870.  Back-quotes are used to enclose system commands for substitution.
  871. ?time/date
  872.  `gnuplot` supports the use of time and/or date information as input data.
  873.  This feature is activated by the commands `set xdata time`, `set ydata time`,
  874.  etc.
  875.  
  876.  Internally all times and dates are converted to the number of seconds from
  877.  the year 2000.  The command `set timefmt` defines the format for all inputs:
  878.  data files, ranges, tics, label positions---in short, anything that accepts a
  879.  data value must receive it in this format.  Since only one input format can
  880.  be in force at a given time, all time/date quantities being input at the same
  881.  time must be presented in the same format.  Thus if both x and y data in a
  882.  file are time/date, they must be in the same format.
  883.  
  884.  Commands like `show xrange` will re-interpret the integer according to
  885.  `timefmt`.  If you change `timefmt`, and then `show` the quantity again, it
  886.  will be displayed in the new `timefmt`.  For that matter, if you give the
  887.  deactivation command (like `set xdata`), the quantity will be shown in its
  888.  numerical form.
  889.  
  890.  The command `set format` defines the format that will be used for tic labels,
  891.  whether or not the specified axis is time/date.
  892.  
  893.  If time/date information is to be plotted from a file, the `using` option
  894.  _must_ be used on the `plot` or `splot` command.  These commands simply use
  895.  white space to separate columns, but white space may be embedded within the
  896.  time/date string.  If you use tabs as a separator, some trial-and-error may
  897.  be necessary to discover how your system treats them.
  898.  
  899.  The following example demonstrates time/date plotting.
  900.  
  901.  Suppose the file "data" contains records like
  902.  
  903.        03/21/95 10:00  6.02e23
  904.  
  905.  This file can be plotted by
  906.  
  907.        set xdata time
  908.        set timefmt "%m/%d"
  909.        set xrange ["03/21":"03/22"]
  910.        set format x "%m/%d"
  911.        set timefmt "%m/%d/%y %H:%M"
  912.        plot "data" using 1:3
  913.  
  914.  which will produce xtic labels that look like "03/21".
  915.  
  916.  See the descriptions of each command for more details.
  917. ?cd
  918.  The `cd` command changes the working directory.
  919.  
  920.  Syntax:
  921.        cd '<directory-name>'
  922.  
  923.  The directory name must be enclosed in quotes.
  924.  
  925.  Examples:
  926.        cd 'subdir'
  927.        cd ".."
  928.  
  929.  DOS users _must_ use single-quotes---backslash [\] has special significance
  930.  inside double-quotes.  For example,
  931.        cd "c:\newdata"
  932.  fails, but
  933.        cd 'c:\newdata'
  934.  works as expected.
  935. ?call
  936.  The `call` command is identical to the load command with one exception: you
  937.  can have up to ten additional parameters to the command (delimited according
  938.  to the standard parser rules) which can be substituted into the lines read
  939.  from the file.  As each line is read from the `call`ed input file, it is
  940.  scanned for the sequence `$` (dollar-sign) followed by a digit (0--9).  If
  941.  found, the sequence is replaced by the corresponding parameter from the
  942.  `call` command line.  If the parameter was specified as a string in the
  943.  `call` line, it is substituted without its enclosing quotes.  `$` followed by
  944.  any character other than a digit will be that character.  E.g. use `$$` to
  945.  get a single `$`.  Providing more than ten parameters on the `call` command
  946.  line will cause an error.  A parameter that was not provided substitutes as
  947.  nothing.  Files being `call`ed may themselves contain `call` or `load`
  948.  commands.
  949.  
  950.  The `call` command _must_ be the last command on a multi-command line.
  951.  
  952.  Syntax:
  953.        call "<input-file>" <parameter-0> <parm-1> ... <parm-9>
  954.  
  955.  The name of the input file must be enclosed in quotes, and it is recommended
  956.  that parameters are similarly enclosed in quotes (future versions of gnuplot
  957.  may treat quoted and unquoted arguments differently).
  958.  
  959.  Example:
  960.  
  961.  If the file 'calltest.gp' contains the line:
  962.        print "p0=$0 p1=$1 p2=$2 p3=$3 p4=$4 p5=$5 p6=$6 p7=x$7x"
  963.  
  964.  entering the command:
  965.        call 'calltest.gp' "abcd" 1.2 + "'quoted'" -- "$2"
  966.  
  967.  will display:
  968.        p0=abcd p1=1.2 p2=+ p3='quoted' p4=- p5=- p6=$2 p7=xx
  969.  
  970.  NOTE: there is a clash in syntax with the datafile `using` callback
  971.  operator.  Use `$$n` or `column(n)` to access column n from a datafile inside
  972.  a `call`ed datafile plot.
  973. ?clear
  974.  The `clear` command erases the current screen or output device as specified
  975.  by `set output`.  This usually generates a formfeed on hardcopy devices.  Use
  976.  `set terminal` to set the device type.
  977.  
  978.  For some terminals `clear` erases only the portion of the plotting surface
  979.  defined by `set size`, so for these it can be used in conjunction with `set
  980.  multiplot` to create an inset.
  981.  
  982.  Example:
  983.        set multiplot
  984.        plot sin(x)
  985.        set origin 0.5,0.5
  986.        set size 0.4,0.4
  987.        clear
  988.        plot cos(x)
  989.        set nomultiplot
  990.  
  991.  Please see `set multiplot`, `set size`, and `set origin` for details of these
  992.  commands.
  993. ?exit
  994. ?quit
  995.  The commands `exit` and `quit` and the END-OF-FILE character will exit
  996.  `gnuplot`.  Each of these commands will clear the output device (as does
  997.  the `clear` command) before exiting.
  998. ?fit
  999.  This implementation incorporates the capability of nonlinear least squares
  1000.  fitting using the Marquardt-Levenberg Algorithm.  It may fit any user-defined
  1001.  function to any set of data points (x,y) or (x,y,z).  x, y, z and the
  1002.  function's return type _must_ be real!  Any variable occurring in the
  1003.  function body may serve as a fit parameter (fitting functions without
  1004.  adjustable parameters make no sense).
  1005.  
  1006.  Syntax:
  1007.        fit {[xrange]} {[yrange]} <function>
  1008.            '<datafile>' {datafile-modifiers}
  1009.             via {'<parameter file>' | <var1>,<var2>,...}
  1010.  
  1011.  Notice that `via` is now a required keyword, to distinguish it from a 'scanf'
  1012.  format string.
  1013.  
  1014.  [xrange] and [yrange] are of the form [{variable=}{<min>}{:<max>}], allowing
  1015.  the range of the fit to be limited temporarily in a manner analogous to
  1016.  `plot`.  <function> is any valid `gnuplot` expression, although it is usual
  1017.  to use a previously user-defined function of the form f(x) or f(x,y).
  1018.  <datafile> is treated as in the `plot` command.  All the modifiers for
  1019.  datafiles (`using`, `every`,...) in `plot` are available here (except
  1020.  `smooth`)---see `plot datafile` for full details.  The default columns for x
  1021.  and y are 1 and 2.  These may be changed by the `using x:y` mechanism.  If
  1022.  `using` has a third entry (a column or an expression), it will be interpreted
  1023.  as the standard deviation of each y value and will be used to compute the
  1024.  weight; otherwise all data will be weighted equally.  If four columns are
  1025.  specified, they are x:y:z:error---note that an error _must_ be specified in
  1026.  order to perform a 3-d fit.  If errors are not available, a constant value
  1027.  can be specified, e.g., `using ...:(1)`.
  1028.  
  1029.  Initial values for the parameters to be fit may be specified in a (load-)file
  1030.  wherein each line is of the form:
  1031.  
  1032.        varname = value
  1033.  
  1034.  Comments, marked by '#', and blank lines are permissible.  The special form
  1035.  
  1036.        varname = value       # FIXED
  1037.  
  1038.  means that the variable is treated as a `fixed parameter` that is initialized
  1039.  but will not be adjusted.  It is not necessary (but sometimes useful for
  1040.  clarity) to specify them at all.  The keyword `# FIXED` has to appear in
  1041.  exactly this form.
  1042.  
  1043.  The other means of specifying the adjustable parameters is to provide a
  1044.  comma-separated list of variable names after the `via` keyword.  If any of
  1045.  these variables do not yet exist within the current `gnuplot` session, they
  1046.  are created with an initial value of 1.0, but the fit is more likely to
  1047.  converge if a more appropriate starting value is given.  If this form is
  1048.  used, it may prove beneficial to iterate the fit, allowing only one or two
  1049.  variables to be adjusted at a time until a reasonably close fit is obtained,
  1050.  before allowing `fit` to vary all parameters.
  1051.  
  1052.  After each iteration step, detailed information is given about the fit's
  1053.  state, both on the screen and on a logfile "fit.log".  This file will never be
  1054.  erased but always appended to so that the fit's history isn't lost.  After
  1055.  each iteration step, the fit may be interrupted by pressing Ctrl-C (any key
  1056.  _but_ Ctrl-C under MSDOS and Atari Multitasking Systems).  Then you have the
  1057.  options of stopping (and accepting the current parameter values), continuing
  1058.  the iteration of the fit, or executing a `gnuplot` command specified by an
  1059.  environment variable FIT_SCRIPT.  A `plot` or `load` command may be useful in
  1060.  this context.
  1061.  
  1062.  Special `gnuplot` variable:
  1063.  
  1064.        FIT_LIMIT
  1065.  may be specified to change the default epsilon limit (1e-5).  When the sum
  1066.  of squared residuals changes between two iteration steps by less than a
  1067.  factor of this number, the fit is considered to have 'converged'.
  1068.  
  1069.  Once the fit is converged, the final values may be stored in (load-)file
  1070.  suitable for use as an initial-value file, as discussed above.  Please see
  1071.  `update` for details.
  1072.  
  1073.        FIT_MAXITER
  1074.  may be specified to limit the number of iterations performed without
  1075.  convergence by FIT_LIMIT.  A value of 0 (or not defining it at all) means
  1076.  that there is no limit.
  1077.  
  1078.  [FIT_SKIP was available in previous releases of gnufit.  Its functionality
  1079.  is now obtained using the `every` modifier for datafiles.  FIT_INDEX was
  1080.  previously available in order to allow multi-branch fitting.  Multi-branch
  1081.  fitting in 2-d can now be done as a pseudo-3-d fit in which the y values are
  1082.  the dataline number (`using 1:-1:...`) or index (`using 1:-2:...`).]
  1083.  
  1084.  Environment variables:
  1085.  
  1086.        FIT_LOG
  1087.  changes the logfile's path from './fit.log' (write permission is necessary).
  1088.  
  1089.        FIT_SCRIPT
  1090.  specifies a command to be executed after an user interrupt.
  1091.  
  1092.  Examples:
  1093.        f(x) = a*x**2 + b*x + c
  1094.        fit f(x) 'measured.dat' via 'start.par'
  1095.        fit f(x) 'measured.dat' using 3:($7-5) via 'start.par'
  1096.        fit f(x) './data/trash.dat' using 1:2:3 via a, b, c
  1097.        fit f(x,y) 'surface.dat' using 1:2:3:(1) via a, b, c
  1098. ?help
  1099.  The `help` command displays on-line help. To specify information on a
  1100.  particular topic use the syntax:
  1101.  
  1102.        help {<topic>}
  1103.  
  1104.  If <topic> is not specified, a short message is printed about `gnuplot`.
  1105.  After help for the requested topic is given, a menu of subtopics is given;
  1106.  help for a subtopic may be requested by typing its name, extending the help
  1107.  request.  After that subtopic has been printed, the request may be extended
  1108.  again or you may go back one level to the previous topic.  Eventually, the
  1109.  `gnuplot` command line will return.
  1110.  
  1111.  If a question mark (?) is given as the topic, the list of topics currently
  1112.  available is printed on the screen.
  1113. ?if
  1114.  The `if` command allows commands to be executed conditionally.
  1115.  
  1116.  Syntax:
  1117.        if (<condition>) <command-line>
  1118.  
  1119.  <condition> will be evaluated.  If it is true (non-zero), then the command(s)
  1120.  of the <command-line> will be executed.  If <condition> is false (zero), then
  1121.  the entire <command-line> is ignored.  Note that use of `;` to allow multiple
  1122.  commands on the same line will _not_ end the conditionalized commands.
  1123.  
  1124.  Examples:
  1125.        pi=3
  1126.        if (pi!=acos(-1)) print "?Fixing pi!"; pi=acos(-1); print pi
  1127.  will display:
  1128.        ?Fixing pi!
  1129.        3.14159265358979
  1130.  but
  1131.        if (1==2) print "Never see this"; print "Or this either"
  1132.  will not display anything.
  1133.  
  1134.  See `reread` for an example of how `if` and `reread` can be used together to
  1135.  perform a loop.
  1136. ?load
  1137.  The `load` command executes each line of the specified input file as if it
  1138.  had been typed in interactively.  Files created by the `save` command can
  1139.  later be `load`ed.  Any text file containing valid commands can be created
  1140.  and then executed by the `load` command.  Files being `load`ed may themselves
  1141.  contain `load` or `call` commands.  See `comment` for information about
  1142.  comments in commands.
  1143.  
  1144.  The `load` command _must_ be the last command on a multi-command line.
  1145.  
  1146.  Syntax:
  1147.        load "<input-file>"
  1148.  
  1149.  The name of the input file must be enclosed in quotes.
  1150.  
  1151.  Examples:
  1152.        load 'work.gnu'
  1153.        load "func.dat"
  1154.  
  1155.  The `load` command is performed implicitly on any file names given as
  1156.  arguments to `gnuplot`.  These are loaded in the order specified, and
  1157.  then `gnuplot` exits.  See also `call`.
  1158. ?pause
  1159.  The `pause` command displays any text associated with the command and then
  1160.  waits a specified amount of time or until the carriage return is pressed.
  1161.  `pause` is especially useful in conjunction with `load` files.
  1162.  
  1163.  Syntax:
  1164.        pause <time> {"<string>"}
  1165.  
  1166.  <time> may be any integer constant or expression.  Choosing -1 will wait
  1167.  until a carriage return is hit, zero (0) won't pause at all, and a positive
  1168.  integer will wait the specified number of seconds.  `pause 0` is synonymous
  1169.  with `print`.
  1170.  
  1171.  Note: Since `pause` communicates with the operating system rather than the
  1172.  graphics, it may behave differently with different device drivers (depending
  1173.  upon how text and graphics are mixed).
  1174.  
  1175.  Examples:
  1176.        pause -1    # Wait until a carriage return is hit
  1177.        pause 3     # Wait three seconds
  1178.        pause -1  "Hit return to continue"
  1179.        pause 10  "Isn't this pretty?  It's a cubic spline."
  1180.  
  1181. ?plot
  1182.  `plot` is the primary command for drawing graphs with `gnuplot`.  It creates
  1183.  graphs of functions and data in many, many ways.  `plot` is used to draw 2-d
  1184.  functions and data; `splot` draws 2-d projections of 3-d surfaces and data.
  1185.  `plot` and `splot` contain many common features; see `splot` for differences.
  1186.  
  1187.  Syntax:
  1188.        plot {<ranges>}
  1189.             {<function> | {"<datafile>" {datafile-modifiers}}}
  1190.             {axes <axes>} {<title-spec>} {with <style>} 
  1191.             {, {definitions,} <function> ...}
  1192.  
  1193.  where either a <function> or the name of a data file enclosed in quotes is
  1194.  supplied.  A function is a mathematical expression or a pair of mathematical
  1195.  expressions in parametric mode.  The expressions may be defined completely or
  1196.  in part earlier in the stream of `gnuplot` commands (see `user-defined`).
  1197.  
  1198.  It is also possible to define functions and parameters on the `plot` command
  1199.  itself.  This is done merely by isolating them from other items with commas. 
  1200.  
  1201.  There are four possible sets of axes available; the keyword <axes> is used to
  1202.  select the axes for which a particular plot should be scaled.  `x1y1` refers
  1203.  to the axes on the bottom and left; `x2y2` to those on the top and right;
  1204.  `x1y2` to those on the bottom and right; and `x2y1` to those on the top and
  1205.  left.  Ranges specified on the `plot` command apply only to the first set of
  1206.  axes (bottom left).
  1207.  
  1208.  Examples:
  1209.        plot sin(x)
  1210.        plot f(x) = sin(x*a), a = .2, f(x), a = .4, f(x)
  1211.        plot [t=1:10] [-pi:pi*2] tan(t), \
  1212.             "data.1" axes x1y2 using (tan($2)):($3/$4) \
  1213.                      smooth csplines notitle with lines 5
  1214.  
  1215. ?plot data-file
  1216. ?plot datafile
  1217. ?data-file
  1218. ?datafile
  1219. ?data
  1220.  Discrete data contained in a file can be displayed by specifying the name of
  1221.  the data file (enclosed in quotes) on the `plot` or `splot` command line.
  1222.  
  1223.  Syntax:
  1224.        {s}plot '<file_name>' {index <index list>}
  1225.                              {every <every list>}
  1226.                              {thru <thru expression>}
  1227.                              {using <using list>}
  1228.                              {smooth <option>}
  1229.  
  1230.  The modifiers `index`, `every`, `thru`, `using`, and
  1231.  `smooth` are discussed separately.  In brief, `index` selects which data sets
  1232.  in a multi-data-set file are to be plotted, `every` specifies which lines
  1233.  within a single data set are to be plotted, `using` determines how the
  1234.  columns within a single line are to be interpreted (`thru` is a special case
  1235.  of `using`), and `smooth` allows for simple interpolation and approximation.
  1236.  
  1237.  Data files should contain one data point per line.  Lines beginning with #
  1238.  (or ! on VMS) will be treated as comments and ignored.  Each data point
  1239.  represents an (x,y) pair.  For `plot`s with error bars (see `set style
  1240.  errorbars`), each data point is (x,y,ydelta), (x,y,ylow,yhigh), (x,y,xdelta),
  1241.  (x,y,xlow,xhigh), or (x,y,xlow,xhigh,ylow,yhigh).  In all cases, the numbers
  1242.  on each line of a data file must be separated by white space (one or more
  1243.  blanks or tabs), unless a format specifier is provided by the `using` option.
  1244.  This white space divides each line into columns.
  1245.  
  1246.  Data may be written in exponential format with the exponent preceded by the
  1247.  letter e, E, d, D, q, or Q.
  1248.  
  1249.  Only one column (the y value) need be provided.  If x is omitted, `gnuplot`
  1250.  provides integer values starting at 0.
  1251.  
  1252.  In datafiles, blank lines (lines with no characters other than blanks and a
  1253.  line feed or carriage return) are significant---pairs of blank lines separate
  1254.  `index`es (see `plot datafile index`).  Data separated by double blank lines
  1255.  are treated as if they were in separate data files.
  1256.  
  1257.  Single blank lines designate biscontinuities in a `plot`; no line will join
  1258.  points separated by a blank line.
  1259.  
  1260.  If autoscaling has been enabled (`set autoscale`), the axes are automatically
  1261.  extended to include all datapoints, with a whole number of tic marks if tics
  1262.  are being drawn.  This has two consequences: i) For `splot`, the corner of
  1263.  the surface may not coincide with the corner of the base.  In this case, no
  1264.  vertical line is drawn.  ii) When plotting data with the same x range on a
  1265.  dual-axis graph, the x coordinates may not coincide if the x2tics are not
  1266.  being drawn.  This is because the x axis has been autoextended to a whole
  1267.  number of tics, but the x2 axis has not.  The following example illustrates
  1268.  the problem:
  1269.  
  1270.        reset; plot '-', '-'
  1271.        1 1
  1272.        19 19
  1273.        e
  1274.        1 1
  1275.        19 19
  1276.        e
  1277. ?plot data-file every
  1278. ?plot datafile every
  1279. ?plot every
  1280. ?data-file every
  1281. ?datafile every
  1282. ?every
  1283.  The `every` keyword allows a periodic sampling of a data set to be plotted.
  1284.  
  1285.  Syntax:
  1286.        plot 'file' every {<point_incr>}
  1287.                            {:{<line_incr>}
  1288.                              {:{<start_point>}
  1289.                                {:{<start_line>}
  1290.                                  {:{<end_point>}
  1291.                                    {:<end_line>}}}}}
  1292.  
  1293.  The data points to be plotted are selected according to a loop from
  1294.  <`start_point`> to <`end_point`> with increment <`point_incr`> and the lines
  1295.  according to a loop from <`start_line`> to <`end_line`> with increment
  1296.  <`line_incr`>.  (Here a "point" is a datum defined by a single record in the
  1297.  file, and a "line" is a set of records bounded by one or more blank records
  1298.  on each end.)
  1299.  
  1300.  The first datum in each line is numbered '0', as is the first line in the
  1301.  file.
  1302.  
  1303.  Note that lines containing unplottable information are counted nonetheless.
  1304.  
  1305.  Any of the numbers can be omitted; the increments default to unity, the start
  1306.  values to the first point or line, and the end values to the last point or
  1307.  line.  If `every` is not specified, all points in all lines are plotted.
  1308.  
  1309.  Examples:
  1310.        every :::3::3    # selects just the fourth line ('0'is first)
  1311.        every :::::9     # selects the first 10 lines
  1312.        every 2:2        # selects every other point in every other line
  1313.        every ::5::15    # selects points 5 through 15 in each line
  1314. ?plot data-file example
  1315. ?plot datafile example
  1316. ?plot example
  1317. ?datafile example
  1318. ?data-file example
  1319. ?example
  1320.  This example compares the data in the file population.dat to a theoretical
  1321.  curve:
  1322.  
  1323.        pop(x) = 103*exp((1965-x)/10)
  1324.        plot [1960:1990] 'population.dat', pop(x)
  1325.  
  1326.  The file "population.dat" might contain:
  1327.  
  1328.        # Gnu population in Antarctica since 1965
  1329.           1965   103
  1330.           1970   55
  1331.           1975   34
  1332.           1980   24
  1333.           1985   10
  1334.  
  1335. ?plot data-file index
  1336. ?plot datafile index
  1337. ?plot index
  1338. ?data-file index
  1339. ?datafile index
  1340. ?index
  1341.  The `index` keyword allows only some of the data sets in a multi-data-set
  1342.  file to be plotted.
  1343.  
  1344.  Syntax:
  1345.        plot 'file' index <m>{{:<n>}:<p>}
  1346.  
  1347.  Data sets are separated by pairs of blank lines.  `index <m>` selects only
  1348.  set <m>; `index <m>:<n>` selects sets in the range <m> to <n>; and `index
  1349.  <m>:<n>:<p>` selects indices <m>, <m>+<p>, <m>+2<p>, etc., but stopping at
  1350.  <n>.  Following C indexing, the index 0 is assigned to the first data set in
  1351.  the file.  Specifying too large an index results in an error message.  If
  1352.  `index` is not specified, all sets are plotted as a single data set.
  1353.  
  1354.  Example:
  1355.        plot 'file' index 4:5
  1356. ?plot data-file smooth
  1357. ?plot datafile smooth
  1358. ?plot smooth
  1359. ?data-file smooth
  1360. ?datafile smooth
  1361. ?smooth
  1362.  `gnuplot` includes a few general-purpose routines for interpolation and
  1363.  approximation of data; these are grouped under the `smooth` option.  More
  1364.  sophisticated data processing may be performed by preprocessing the data
  1365.  externally or by using `fit` with an appropriate model.
  1366.  
  1367.  Syntax:
  1368.        smooth {unique | csplines | acsplines | bezier | sbezier}
  1369.  
  1370.  `unique` plots the data after making them monotonic.  Each of the other
  1371.  routines uses the data to determine the coefficients of a continuous curve
  1372.  between the endpoints of the data.  This curve is then plotted in the same
  1373.  manner as a function, that is, by finding its value at uniform intervals
  1374.  along the abscissa (see `set samples`) and connecting these points with
  1375.  straight line segments (if a line style is chosen).
  1376.  
  1377.  If `autoscale` is in effect, the ranges will be computed such that the
  1378.  plotted curve lies within the borders of the graph.
  1379.  
  1380.  If too few points are available to allow the selected option to be applied,
  1381.  an error message is produced.  The minimum number is one for `unique`, four
  1382.  for `acsplines`, and three for the others.
  1383.  
  1384.  The `smooth` options have no effect on function plots.
  1385. ?plot data-file smooth acsplines
  1386. ?plot datafile smooth acsplines
  1387. ?data-file smooth acsplines
  1388. ?datafile smooth acsplines
  1389. ?plot smooth acsplines
  1390. ?plot acsplines
  1391. ?smooth acsplines
  1392. ?acsplines
  1393.  `acsplines` approximates the data with a "natural smoothing spline".  After
  1394.  the data are made monotonic in x (see `smooth unique`), a curve is piecewise
  1395.  constructed from segments of cubic polynomials whose coefficients are found
  1396.  by the weighting the data points; the weights are taken from the third column
  1397.  in the data file.  That default can be modified by the third entry in the
  1398.  `using` list, e.g.,
  1399.        plot 'data-file' using 1:2:(1.0) smooth acsplines
  1400.  
  1401.  Qualitatively, the absolute magnitude of the weights determines the number
  1402.  of segments used to construct the curve.  If the weights are large, the
  1403.  effect of each datum is large and the curve approaches that produced by
  1404.  connecting consecutive points with natural cubic splines.  If the weights are
  1405.  small, the curve is composed of fewer segments and thus is smoother; the
  1406.  limiting case is the single segment produced by a weighted linear least
  1407.  squares fit to all the data.  The smoothing weight can be expressed in terms
  1408.  of errors as a statistical weight for a point divided by a "smoothing factor"
  1409.  for the curve so that (standard) errors in the file can be used as smoothing
  1410.  weights.
  1411.  
  1412.  Example:
  1413.        sw(x,S)=1/(x*x*S)
  1414.        plot 'data_file' using 1:2:(sw($3,100)) smooth acsplines
  1415. ?plot data-file smooth bezier
  1416. ?plot datafile smooth bezier
  1417. ?plot smooth bezier
  1418. ?data-file smooth bezier
  1419. ?dat-file smooth bezier
  1420. ?plot bezier
  1421. ?smooth bezier
  1422. ?bezier
  1423.  The `bezier` option approximates the data with a Bezier curve of degree n
  1424.  (the number of data points) that connects the endpoints.
  1425. ?plot data-file smooth csplines
  1426. ?plot datafile smooth csplines
  1427. ?plot smooth csplines
  1428. ?data-file smooth csplines
  1429. ?datafile smooth csplines
  1430. ?plot csplines
  1431. ?smooth csplines
  1432. ?csplines
  1433.  The `csplines` option connects consecutive points by natural cubic splines
  1434.  after rendering the data monotonic (see `smooth unique`).
  1435. ?plot data-file smooth sbezier
  1436. ?plot datafile smooth sbezier
  1437. ?plot smooth sbezier
  1438. ?data-file smooth sbezier
  1439. ?datafile smooth sbezier
  1440. ?plot sbezier
  1441. ?smooth sbezier
  1442. ?sbezier
  1443.  The `sbezier` option first renders the data monotonic (`unique`) and then
  1444.  applies the `bezier` algorithm.
  1445. ?plot data-file smooth unique
  1446. ?plot datafile smooth unique
  1447. ?plot smooth unique
  1448. ?data-file smooth unique
  1449. ?datafile smooth unique
  1450. ?plot unique
  1451. ?smooth unique
  1452. ?unique
  1453.  The `unique` option makes the data monotonic in x; points with the same
  1454.  x-value are replaced by a single point having the average y-value.  The
  1455.  resulting points are then connected by straight line segments.
  1456. ?plot data-file special-filenames
  1457. ?plot datafile special-filenames
  1458. ?plot special-filenames
  1459. ?datafile special-filenames
  1460. ?special-filenames
  1461.  A special filename of `'-'` specifies that the data are inline; i.e., they
  1462.  follow the command.  Only the data follow the command; `plot` options like
  1463.  filters, titles, and line styles remain on the 'plot' command line.  This is
  1464.  similar to << in unix shell script, and $DECK in VMS DCL.  The data are
  1465.  entered as though they are being read from a file, one data point per record.
  1466.  The letter "e" at the start of the first column terminates data entry.  The
  1467.  `using` option can be applied to these data---using it to filter them through
  1468.  a function might make sense, but selecting columns probably doesn't!
  1469.  
  1470.  `'-'` is intended for situations where it is useful to have data and commands
  1471.  together, e.g., when `gnuplot` is run as a sub-process of some front-end
  1472.  application.  Some of the demos, for example, might use this feature.  While
  1473.  `plot` options such as `index` and `every` are recognized, their use forces
  1474.  you to enter data that won't be used.  For example, while
  1475.  
  1476.        plot '-' index 0, '-' index 1
  1477.        2
  1478.        4
  1479.        6
  1480.  
  1481.  
  1482.        10
  1483.        12
  1484.        14
  1485.        e
  1486.        2
  1487.        4
  1488.        6
  1489.  
  1490.  
  1491.        10
  1492.        12
  1493.        14
  1494.        e
  1495.  
  1496.  does indeed work,
  1497.  
  1498.        plot '-', '-'
  1499.        2
  1500.        4
  1501.        6
  1502.        e
  1503.        10
  1504.        12
  1505.        14
  1506.        e
  1507.  
  1508.  is a lot easier to type.
  1509.  
  1510.  If you use `'-'` with `replot`, you may need to enter the data more than once
  1511.  (see `replot`).
  1512.  
  1513.  A blank filename ('') specifies that the previous filename should be reused.
  1514.  This can be useful with things like
  1515.  
  1516.        plot 'a/very/long/filename' using 1:2, '' using 1:3, '' using 1:4
  1517.  
  1518.  (If you use both `'-'` and `''` on the same `plot` command, you'll need to
  1519.  have two sets of inline data, as in the example above.)
  1520.  
  1521.  On some computer systems with a popen function (Unix), the datafile can be
  1522.  piped through a shell command by starting the file name with a '<'.  For
  1523.  example,
  1524.  
  1525.        pop(x) = 103*exp(-x/10)
  1526.        plot "< awk '{print $1-1965, $2}' population.dat", pop(x)
  1527.  
  1528.  would plot the same information as the first population example but with
  1529.  years since 1965 as the x axis.  If you want to execute this example, you
  1530.  have to delete all comments from the data file above or substitute the
  1531.  following command for the first part of the command above (the part up to
  1532.  the comma):
  1533.  
  1534.        plot "< awk '$0 !~ /^#/ {print $1-1965, $2}' population.dat"
  1535.  
  1536.  While this approach is most flexible, it is possible to achieve simple
  1537.  filtering with the `using` or `thru` keywords.
  1538. ?plot data-file thru
  1539. ?plot datafile thru
  1540. ?plot thru
  1541. ?data-file thru
  1542. ?datafile thru
  1543. ?thru
  1544.  The `thru` function is provided for backward compatibility.
  1545.  
  1546.  Syntax:
  1547.        plot 'file' thru f(x)
  1548.  
  1549.  It is equivalent to:
  1550.  
  1551.        plot 'file' using 1:(f($2))
  1552.  
  1553.  While the latter appears more complex, it is much more flexible.  The more
  1554.  natural
  1555.  
  1556.        plot 'file' thru f(y)
  1557.  
  1558.  also works (i.e. you can use y as the dummy variable).
  1559.  
  1560.  `thru` is parsed for `splot` and `fit` but has no effect.
  1561. ?plot data-file using
  1562. ?plot datafile using
  1563. ?plot using
  1564. ?data-file using
  1565. ?datafile using
  1566. ?using
  1567.  The most common datafile modifier is `using`.
  1568.  
  1569.  Syntax:
  1570.        plot 'file' using {<entry> {:<entry> {:<entry> ...}}} {'format'}
  1571.  
  1572.  If a format is specified, each datafile line is read using the C library's
  1573.  'scanf' function, with the specified format string.  Otherwise the line is
  1574.  read and broken into columns at spaces or tabs.  A format cannot be specified
  1575.  if time-format data is being used (this must be done by `set data time`).
  1576.  
  1577.  The resulting array of data is then sorted into columns according to the
  1578.  entries.  Each <entry> may be a simple column number, which selects the
  1579.  datum, an expression enclosed in parentheses, or empty.  The expression can
  1580.  use $1 to access the first item read, $2 for the second item, and so on.  It
  1581.  can also use `column(x)` and `valid(x)` where x is an arbitrary expression
  1582.  resulting in an integer.  `column(x)` returns the x'th datum; `valid(x)`
  1583.  tests that the datum in the x'th column is a valid number.  A column number
  1584.  of 0 generates a number increasing (from zero) with each point, and is reset
  1585.  upon encountering two blank lines.  A column number of -1 gives the data line
  1586.  number, which starts at 0, increments at single blank lines, and is reset at
  1587.  double blank lines.  A column number of -2 gives the index number, which is
  1588.  incremented only when two blank lines are found.  An empty <entry> will
  1589.  default to its order in the list of entries.  For example, `using ::4` is
  1590.  interpreted as `using 1:2:4`.
  1591.  
  1592.  N.B.---the `call` command also uses $'s as a special character.  See `call`
  1593.  for details about how to include a column number in a `call` argument list.
  1594.  
  1595.  If the `using` list has but a single entry, that <entry> will be used for y
  1596.  and the data point number is used for x; for example, "`plot 'file' using 1`"
  1597.  is identical to "`plot 'file' using 0:1`".  If it has two entries, these will
  1598.  be used for x and y.  Additional entries are usually errors in x and/or y.
  1599.  See `set style` for details about plotting styles that make use of error
  1600.  information, and `fit` for use of error information in curve fitting.
  1601.  
  1602.  'scanf' accepts several numerical specifications but `gnuplot` requires all
  1603.  inputs to be double-precision floating-point variables, so `lf` is the only
  1604.  permissible specifier.  'scanf' expects to see white space---a blank, tab
  1605.  ("\t"), newline ("\n"), or formfeed ("\f")---between numbers; anything else
  1606.  in the input stream must be explicitly skipped.
  1607.  
  1608.  Note that the use of "\t", "\n", or "\f" or requires use of double-quotes
  1609.  rather than single-quotes.
  1610.  
  1611.  Examples:
  1612.  
  1613.  This creates a plot of the sum of the 2nd and 3rd data against the first:
  1614.  (The format string specifies comma- rather than space-separated columns.)
  1615.        plot 'file' using 1:($2+$3) '%lf,%lf,%lf'
  1616.  
  1617.  In this example the data are read from the file "MyData" using a more
  1618.  complicated format:
  1619.        plot "MyData" using "%*lf%lf%*20[^\n]%lf"
  1620.  
  1621.  The meaning of this format is:
  1622.  
  1623.        %*lf        ignore a number
  1624.        %lf         read a double-precision number (x by default)
  1625.        %*20[^\n]   ignore 20 non-newline characters
  1626.        %lf         read a double-precision number (y by default)
  1627.  
  1628.  One trick is to use the ternary `?:` operator to filter data:
  1629.  
  1630.        plot 'file' using 1:($3>10 ? $2 : 1/0)
  1631.  
  1632.  which plots the datum in column two against that in column one provided
  1633.  the datum in column three exceeds ten.  `1/0` is undefined; `gnuplot`
  1634.  quietly ignores undefined points, so unsuitable points are suppressed.
  1635.  
  1636.  In fact, you can use a constant expression for the column number, provided it
  1637.  doesn't start with an opening parenthesis; constructs like `using
  1638.  0+(complicated expression)` can be used.  The crucial point is that the
  1639.  expression is evaluated once if it doesn't start with a left parenthesis, or
  1640.  once for each data point read if it does.
  1641.  
  1642.  If timeseries data are being used, the time can span multiple columns.  The
  1643.  starting column should be specified.  Note that the spaces within the time
  1644.  must be included when calculating starting columns for other data.  E.g., if
  1645.  the first element on a line is a time with an embedded space, the y value
  1646.  should be specified as column three.
  1647.  
  1648.  It should be noted that `plot 'file'`, `plot 'file' using 1:2`, and `plot
  1649.  'file' using ($1):($2)` can be subtly different: 1) if `file` has some lines
  1650.  with one column and some with two, the first will invent x values when they
  1651.  are missing, the second will quietly ignore the lines with one column, and
  1652.  the third will store an undefined value for lines with one point (so that in
  1653.  a plot with lines, no line joins points across the bad point); 2) if a line
  1654.  contains text at the first column, the first will abort the plot on an error,
  1655.  but the second and third should quietly skip the garbage.
  1656.  
  1657.  In fact, it is often possible to plot a file with lots of lines of garbage at
  1658.  the top simply by specifying
  1659.  
  1660.        plot 'file' using 1:2
  1661.  
  1662.  If you want to leave text in your data files, it is always safe to put the
  1663.  comment character (#) in the first column of the text lines.
  1664. ?plot errorbars
  1665. ?splot errorbars
  1666. ?errorbars
  1667.  Error bars are supported for 2-d data file plots by reading one to four
  1668.  additional columns (or `using` entries); these additional values are used in
  1669.  different ways by the various errorbar styles.
  1670.  
  1671.  In the default situation, `gnuplot` expects to see three, four, or six
  1672.  numbers on each line of the data file---either
  1673.  
  1674.        (x, y, ydelta),
  1675.        (x, y, ylow, yhigh),
  1676.        (x, y, xdelta),
  1677.        (x, y, xlow, xhigh),
  1678.        (x, y, xdelta, ydelta), or
  1679.        (x, y, xlow, xhigh, ylow, yhigh).
  1680.  
  1681.  The x coordinate must be specified.  The order of the numbers must be
  1682.  exactly as given above, though the `using` qualifier can manipulate the order
  1683.  and provide values for missing columns.  For example,
  1684.  
  1685.        plot 'file' with errorbars
  1686.        plot 'file' using 1:2:(sqrt($1)) with xerrorbars
  1687.        plot 'file' using 1:2:($1-$3):($1+$3):4:5 with xyerrorbars
  1688.  
  1689.  The last plot is for a file with an unsupported combination of relative x and
  1690.  absolute y errors. The `using` entry generates absolute x min and max from
  1691.  the relative error.
  1692.  
  1693.  The y error bar is a vertical line plotted from (x, ylow) to (x, yhigh).
  1694.  If ydelta is specified instead of ylow and yhigh, ylow = y - ydelta and
  1695.  yhigh = y + ydelta are derived.  If there are only two numbers on the line,
  1696.  yhigh and ylow are both set to y.  The x error bar is a horizontal line
  1697.  computed in the same fashion.  To get lines plotted between the data points,
  1698.  `plot` the data file twice, once with errorbars and once with lines (but
  1699.  remember to use the `notitle` option on one to avoid two entries in the key).
  1700.  
  1701.  The error bars have crossbars at each end unless `set bar` is used (see `set
  1702.  bar` for details).
  1703.  
  1704.  If autoscaling is on, the ranges will be adjusted to include the error bars.
  1705.  
  1706.  See `plot using`, `plot with`, and `set style` for more information.
  1707. ?plot parametric
  1708. ?splot parametric
  1709. ?parametric
  1710.  When in parametric mode (`set parametric`) mathematical expressions must be
  1711.  given in pairs for `plot` and in triplets for `splot`.
  1712.  
  1713.  Examples:
  1714.        plot sin(t),t**2
  1715.        splot cos(u)*cos(v),cos(u)*sin(v),sin(u)
  1716.  
  1717.  Data files are plotted as before, except any preceding parametric function
  1718.  must be fully specified before a data file is given as a plot.  In other
  1719.  words, the x parametric function (`sin(t)` above) and the y parametric
  1720.  function (`t**2` above) must not be interrupted with any modifiers or data
  1721.  functions; doing so will generate a syntax error stating that the parametric
  1722.  function is not fully specified.
  1723.  
  1724.  Other modifiers, such as `with` and `title`, may be specified only after the
  1725.  parametric function has been completed:
  1726.  
  1727.        plot sin(t),t**2 title 'Parametric example' with linespoints
  1728. ?splot ranges
  1729. ?plot ranges
  1730. ?ranges
  1731.  The optional ranges specify the region of the graph that will be displayed.
  1732.  
  1733.  Syntax:
  1734.        [{<dummy-var>=}{{<min>}:{<max>}}]
  1735.        [{{<min>}:{<max>}}]
  1736.  
  1737.  The first form applies to the independent variable (`xrange` or `trange`, if
  1738.  in parametric mode).  The second form applies to the dependent variable
  1739.  `yrange` (and `xrange`, too, if in parametric mode).  <dummy-var> is a new
  1740.  name for the independent variable.  (The defaults may be changed with `set
  1741.  dummy`.)  The optional <min> and <max> terms can be constant expressions or *.
  1742.  
  1743.  In non-parametric mode, the order in which ranges must be given is `xrange`
  1744.  and `yrange`.
  1745.  
  1746.  In parametric mode, the order for the `plot` command is `trange`, `xrange`,
  1747.  and `yrange`.  The following `plot` command shows setting the `trange` to
  1748.  [-pi:pi], the `xrange` to [-1.3:1.3] and the `yrange` to [-1:1] for the
  1749.  duration of the graph:
  1750.  
  1751.        plot [-pi:pi] [-1.3:1.3] [-1:1] sin(t),t**2
  1752.  
  1753.  Note that the x2range and y2range cannot be specified here---`set x2range`
  1754.  and `set y2range` must be used.
  1755.  
  1756.  Ranges are interpreted in the order listed above for the appropriate mode.
  1757.  Once all those needed are specified, no further ones must be listed, but
  1758.  unneeded ones cannot be skipped---use an empty range `[]` as a placeholder.
  1759.  
  1760.  `*` can be used to allow autoscaling of either of min and max.  See also
  1761.  `set autoscale`.
  1762.  
  1763.  Ranges specified on the `plot` or `splot` command line affect only that
  1764.  graph; use the `set xrange`, `set yrange`, etc., commands to change the
  1765.  default ranges for future graphs.
  1766.  
  1767.  With time data, you must provide the range (in the same manner as the time
  1768.  appears in the datafile) within quotes.  `gnuplot` uses the `timefmt` string
  1769.  to read the value---see `set timefmt`.
  1770.  
  1771.  Examples:
  1772.  
  1773.  This uses the current ranges:
  1774.        plot cos(x)
  1775.  
  1776.  This sets the x range only:
  1777.        plot [-10:30] sin(pi*x)/(pi*x)
  1778.  
  1779.  This is the same, but uses t as the dummy-variable:
  1780.        plot [t = -10 :30]  sin(pi*t)/(pi*t)
  1781.  
  1782.  This sets both the x and y ranges:
  1783.        plot [-pi:pi] [-3:3]  tan(x), 1/x
  1784.  
  1785.  This sets only the y range, and turns off autoscaling on both axes:
  1786.        plot [ ] [-2:sin(5)*-8] sin(x)**besj0(x)
  1787.  
  1788.  This sets xmax and ymin only:
  1789.        plot [:200] [-pi:]  exp(sin(x))
  1790.  
  1791.  This sets the x range for a timeseries:
  1792.        set timefmt "%d/%m/%y %H:%M"
  1793.        plot ["1/6/93 12:00":"5/6/93 12:00"] 'timedata.dat'
  1794.  
  1795. ?plot title
  1796. ?splot title
  1797.  A title for each function and data set appears in the key, accompanied by a
  1798.  sample of the line and/or symbol used to represent it.  It can be changed by
  1799.  using the `title` option.
  1800.  
  1801.  Syntax:
  1802.        title "<title>" | notitle
  1803.  
  1804.  where <title> is the new title of the plot and must be enclosed in quotes.
  1805.  The quotes will not be shown in the key.  A special character may be given as
  1806.  a backslash followed by its octal value ("\345").  The tab character "\t" is
  1807.  understood.  Note that backslash processing occurs only for strings enclosed
  1808.  in double quotes---use single quotes to prevent such processing.  The newline
  1809.  character "\n" is not processed in key entries in either type of string.
  1810.  
  1811.  The plot title and sample can be omitted from the key by using the keyword
  1812.  `notitle`.  A null title (`title ''`) is equivalent to `notitle`.  If only
  1813.  the sample is wanted, use one or more blanks (`title ' '`).
  1814.  
  1815.  By default the plot title is the function or file name as it appears on the
  1816.  `plot` command.  If it is a file name, any datafile modifiers specified will
  1817.  be included in the default title.
  1818.  
  1819.  The layout of the key itself (position, title justification, etc.) can be
  1820.  controlled by `set key`.  Please see `set key` for details.
  1821.  
  1822.  Examples:
  1823.  
  1824.  This plots y=x with the title 'x':
  1825.        plot x
  1826.  
  1827.  This plots x squared with title "x^2" and "data.1" with title 'measured
  1828.  data':
  1829.        plot x**2 title "x^2", "data.1" t 'measured data'
  1830.  
  1831.  This puts an untitled circular border around a polar graph:
  1832.        set polar; plot my_function(t), 1 notitle
  1833. ?plot with
  1834. ?plot style
  1835. ?splot with
  1836. ?splot style
  1837. ?style
  1838. ?with
  1839.  Functions and data may be displayed in one of a large number of styles.
  1840.  The `with` keyword provides the means of selection.
  1841.  
  1842.  Syntax:
  1843.        with <style> { {linestyle | ls <line_style>}
  1844.                       | {{linetype | lt <line_type>}
  1845.                          {linewidth | lw <line_width>}
  1846.                          {pointtype | pt <point_type>}
  1847.                          {pointsize | ps <point_size>}} }
  1848.  
  1849.  where <style> is either `lines`, `points`, `linespoints`, `impulses`, `dots`,
  1850.  `steps`, `fsteps`, `histeps`, `errorbars`, `xerrorbars`, `yerrorbars`,
  1851.  `xyerrorbars`, `boxes`, `boxerrorbars`, `boxxyerrorbars`, `financebars`,
  1852.  `candlesticks` or `vector`.  Some of these styles require additional
  1853.  information.  See `set style <style>` for details of each style.
  1854.  
  1855.  Default styles are chosen with the `set function style` and `set data style`
  1856.  commands.
  1857.  
  1858.  By default, each function and data file will use a different line type and
  1859.  point type, up to the maximum number of available types.  All terminal
  1860.  drivers support at least six different point types, and re-use them, in
  1861.  order, if more than six are required.  The LaTeX driver supplies an
  1862.  additional six point types (all variants of a circle), and thus will only
  1863.  repeat after 12 curves are plotted with points.  The PostScript drivers
  1864.  (`postscript`) supplies a total of 64.
  1865.  
  1866.  If you wish to choose the line or point type for a single plot, <line_type>
  1867.  and <point_type> may be specified.  These are positive integer constants (or
  1868.  expressions) that specify the line type and point type to be used for the
  1869.  plot.  Use `test` to display the types available for your terminal.
  1870.  
  1871.  You may also scale the line width and point size for a plot by using
  1872.  <line_width> and <point_size>, which are specified relative to the default
  1873.  values for each terminal.  The pointsize may also be altered globally---see
  1874.  `set pointsize` for details.  But note that both <point_size> as set here and
  1875.  as set by `set pointsize` multiply the default point size---their effects are
  1876.  not cumulative.  That is, `set pointsize 2; plot x w p ps 3` will use points
  1877.  three times default size, not six.
  1878.  
  1879.  If you have defined specific line type/width and point type/size combinations
  1880.  with `set linestyle`, one of these may be selected by setting <line_style> to
  1881.  the index of the desired style.
  1882.  
  1883.  The keywords may be abbreviated as indicated.
  1884.  
  1885.  Note that the linewidth and pointsize options are not supported by all
  1886.  terminals.
  1887.  
  1888.  Examples:
  1889.  
  1890.  This plots sin(x) with impulses:
  1891.        plot sin(x) with impulses
  1892.  
  1893.  This plots x with points, x**2 with the default:
  1894.        plot x*y w points, x**2 + y**2
  1895.  
  1896.  This plots tan(x) with the default function style, "data.1" with lines:
  1897.        plot [ ] [-2:5] tan(x), "data.1" with l
  1898.  
  1899.  This plots "leastsq.dat" with impulses:
  1900.        plot 'leastsq.dat' w i
  1901.  
  1902.  This plots the data file 'population' with boxes:
  1903.        plot "population" with boxes
  1904.  
  1905.  This plots "exper.dat" with errorbars and lines connecting the points
  1906.  ('exper.dat' should have three or four data columns):
  1907.        plot 'exper.dat' w lines, 'exper.dat' notitle w errorbars
  1908.  
  1909.  This plots sin(x) and cos(x) with linespoints, using the same line type but
  1910.  different point types:
  1911.        plot sin(x) with linesp lt 1 pt 3, cos(x) with linesp lt 1 pt 4
  1912.  
  1913.  This plots file "data" with points of type 3 and twice usual size:
  1914.        plot "data" with points pointtype 3 pointsize 2
  1915.  
  1916.  This plots two data sets with lines differing only by weight:
  1917.        plot "d1" t "good" w l lt 2 lw 3, "d2" t "bad" w l lt 2 lw 1
  1918.  
  1919.  See `set style` to change the default styles.
  1920. ?print
  1921.  The `print` command prints the value of <expression> to the screen.  It is
  1922.  synonymous with `pause 0`.  <expression> may be anything that `gnuplot` can
  1923.  evaluate that produces a number, or it can be a string.
  1924.  
  1925.  Syntax:
  1926.        print <expression> {, <expression>, ...}
  1927.  
  1928.  See `expressions`.
  1929. ?pwd
  1930.  The `pwd` command prints the name of the working directory to the screen.
  1931. ?quit
  1932.  The `exit` and `quit` commands and END-OF-FILE character will exit `gnuplot`.
  1933.  Each of these commands will clear the output device (as does the `clear`
  1934.  command) before exiting.
  1935. ?replot
  1936.  The `replot` command without arguments repeats the last `plot` or `splot`
  1937.  command.  This can be useful for viewing a graph with different `set`
  1938.  options, or when generating the same graph for several devices.
  1939.  
  1940.  Arguments specified after a `replot` command will be added onto the last
  1941.  `plot` or `splot` command (with an implied ',' separator) before it is
  1942.  repeated.  `replot` accepts the same arguments as the `plot` and `splot`
  1943.  commands except that ranges cannot be specified.  Thus you can use `replot`
  1944.  to plot a function against the second axes if the previous command was `plot`
  1945.  but not if it was `splot`, and similarly you can use `replot` to add a plot
  1946.  from a binary file only if the previous command was `splot`.
  1947.  
  1948.  N.B.---use of
  1949.  
  1950.        plot '-' ; ... ; replot
  1951.  
  1952.  is not recommended.  `gnuplot` does not store the inline data internally, so
  1953.  since `replot` appends new information to the previous `plot` and then
  1954.  executes the modified command, the `'-'` from the initial `plot` will expect
  1955.  to read inline data again. 
  1956.  
  1957.  See `command-line-editing` for ways to edit the last `plot`
  1958.  (`splot`) command.
  1959. ?reread
  1960.  The `reread` command causes the current `gnuplot` command file, as specified
  1961.  by a `load` command or on the command line, to be reset to its starting
  1962.  point before further commands are read from it.  This essentially implements
  1963.  an endless loop of the commands from the beginning of the command file to
  1964.  the `reread` command.  (But this is not necessarily a disaster---`reread` can
  1965.  be very useful when used in conjunction with `if`.  See `if` for details.)
  1966.  The `reread` command has no effect if input from standard input.
  1967.  
  1968.  Examples:
  1969.  
  1970.  Suppose the file "looper" contains the commands
  1971.        a=a+1
  1972.        plot sin(x*a)
  1973.        pause -1
  1974.        if(a<5) reread
  1975.  and from within `gnuplot` you submit the commands
  1976.        a=0
  1977.        load 'looper'
  1978.  The result will be four plots (separated by the `pause` message).
  1979.  
  1980.  Suppose the file "data" contains six columns of numbers with a total yrange
  1981.  from 0 to 10; the first is x and the next are five different functions of x.
  1982.  Suppose also that the file "plotter" contains the commands
  1983.        c_p = c_p+1
  1984.        plot "$0" using 1:c_p with lines linetype c_p
  1985.        if(c_p <  n_p) reread
  1986.  and from within `gnuplot` you submit the commands
  1987.        n_p=6
  1988.        c_p=1
  1989.        set nokey
  1990.        set yrange [0:10]
  1991.        set multiplot
  1992.        call 'plotter' 'data'
  1993.        set nomultiplot
  1994.  The result is a single graph consisting of five plots.  The yrange must be
  1995.  set explicitly to guarantee that the five separate graphs (drawn on top of
  1996.  each other in multiplot mode) will have exactly the same axes.  The linetype
  1997.  must be specified; otherwise all the plots would be drawn with the same type.
  1998. ?reset
  1999.  The `reset` command causes all options that can be set with the `set`
  2000.  command to take on their default values.  The only exceptions are that the
  2001.  terminal set with `set term` and the output file set with `set output` are
  2002.  left unchanged.  This command is useful, e.g., to restore the default
  2003.  settings at the end of a command file, or to return to a defined state after
  2004.  lots of settings have been changed within a command file.  Please refer to
  2005.  the `set` command to see the default values that the various options take.
  2006. ?save
  2007.  The `save` command saves user-defined functions, variables, `set` options,
  2008.  or all three, plus the last `plot` (`splot`) command to the specified file.
  2009.  
  2010.  Syntax:
  2011.        save  {<option>} "<filename>"
  2012.  
  2013.  where <option> is `functions`, `variables` or `set`. If no option is used,
  2014.  `gnuplot` saves functions, variables, `set` options and the last `plot`
  2015.  (`splot`) command.
  2016.  
  2017.  `save`d files are written in text format and may be read by the `load`
  2018.  command.
  2019.  
  2020.  The filename must be enclosed in quotes.
  2021.  
  2022.  Examples:
  2023.        save "work.gnu"
  2024.        save functions 'func.dat'
  2025.        save var 'var.dat'
  2026.        save set "options.dat"
  2027. ?set
  2028. ?show
  2029. ?show all
  2030.  The `set` command sets _lots_ of options.  No screen is drawn, however, until
  2031.  a `plot`, `splot`, or `replot` command is given.
  2032.  
  2033.  The `show` command shows their settings.  `show all` shows all the
  2034.  settings.
  2035.  
  2036.  If a variable contains time/date data, `show` will display it according to
  2037.  the format currently defined by `set timefmt`, even if that was not in effect
  2038.  when the variable was initially defined.
  2039. ?set angles
  2040. ?show angles
  2041. ?angles
  2042. ?set angles degrees
  2043.  By default, `gnuplot` assumes the independent variable in polar graphs is in
  2044.  units of radians.  If `set angles degrees` is specified before `set polar`,
  2045.  then the default range is [0:360] and the independent variable has units of
  2046.  degrees.  This is particularly useful for plots of data files.  The angle
  2047.  setting also applies to 3-d mapping as set via the `set mapping` command.
  2048.  
  2049.  Syntax:
  2050.        set angles {degrees | radians}
  2051.        show angles
  2052.  
  2053.  The angle specified in `set grid polar` is also read and displayed in the
  2054.  units specified by `set angles`.
  2055.  
  2056.  `set angles` also affects the arguments of the machine-defined functions
  2057.  sin(x), cos(x) and tan(x), and the outputs of asin(x), acos(x), atan(x),
  2058.  atan2(x), and arg(x).  It has no effect on the arguments of hyperbolic
  2059.  functions or Bessel functions.  Note that the output of inverse hyperbolic
  2060.  functions of complex arguments are effected, however; if these functions are
  2061.  used, `set angles radians` must be in effect:
  2062.  
  2063.        x={1.0,0.1}
  2064.        set angles radians
  2065.        y=sinh(x)
  2066.        print y         #prints {1.16933, 0.154051}
  2067.        print asinh(y)  #prints {1.0, 0.1}
  2068.  but
  2069.        set angles degrees
  2070.        y=sinh(x)
  2071.        print y         #prints {1.16933, 0.154051}
  2072.        print asinh(y)  #prints {57.29578, 5.729578}
  2073. ?set arrow
  2074. ?set noarrow
  2075. ?show arrow
  2076. ?arrow
  2077. ?noarrow
  2078.  Arbitrary arrows can be placed on a graph using the `set arrow` command.
  2079.  
  2080.  Syntax:
  2081.        set arrow {<tag>} {from <position>} {to <position>} {{no}head}
  2082.                  { {linestyle | ls <line_style>}
  2083.                    | {linetype | lt <line_type>}
  2084.                      {linewidth | lw <line_width} }
  2085.        set noarrow {<tag>}
  2086.        show arrow
  2087.  
  2088.  <tag> is an integer that identifies the arrow.  If no tag is given, the
  2089.  lowest unused tag value is assigned automatically.  The tag can be used to
  2090.  delete or change a specific arrow.  To change any attribute of an existing
  2091.  arrow, use the `set arrow` command with the appropriate tag and specify the
  2092.  parts of the arrow to be changed.
  2093.  
  2094.  The <position>s are specified by either x,y or x,y,z, and may be preceded by
  2095.  `first`, `second`, `graph`, or `screen` to select the coordinate system.
  2096.  Unspecified coordinates default to 0.  The endpoints can be specified in
  2097.  one of four coordinate systems---`first` or `second` axes, `graph` or
  2098.  `screen`.  See `coordinates` for details.  A coordinate system specifier
  2099.  does not carry over from the "from" position to the "to" position.  Arrows
  2100.  outside the screen boundaries are permitted but may cause device errors.
  2101.  
  2102.  Specifying `nohead` produces an arrow drawn without a head---a line segment.
  2103.  This gives you yet another way to draw a line segment on the graph.  By
  2104.  default, arrows have heads.
  2105.  
  2106.  The line style may be selected from a user-defined list of line styles (see
  2107.  `set linestyle`) or may be defined here by providing values for <line_type>
  2108.  (an index from the default list of styles) and/or <line_width> (which is a
  2109.  multiplier for the default width).
  2110.  
  2111.  Note, however, that if a user-defined line style has been selected, its
  2112.  properties (type and width) cannot be altered merely by issuing another
  2113.  `set arrow` command with the appropriate index and `lt` or `lw`.
  2114.  
  2115.  Examples:
  2116.  
  2117.  To set an arrow pointing from the origin to (1,2) with user-defined style 5,
  2118.  use:
  2119.        set arrow to 1,2 ls 5
  2120.  
  2121.  To set an arrow from bottom left of plotting area to (-5,5,3), and tag the
  2122.  arrow number 3, use:
  2123.        set arrow 3 from graph 0,0 to -5,5,3
  2124.  
  2125.  To change the preceding arrow to end at 1,1,1, without an arrow head and
  2126.  double its width, use:
  2127.        set arrow 3 to 1,1,1 nohead lw 2
  2128.  
  2129.  To draw a vertical line from the bottom to the top of the graph at x=3, use:
  2130.        set arrow from 3, graph 0 to 3, graph 1 nohead
  2131.  
  2132.  To delete arrow number 2, use:
  2133.        set noarrow 2
  2134.  
  2135.  To delete all arrows, use:
  2136.        set noarrow
  2137.  
  2138.  To show all arrows (in tag order), use:
  2139.        show arrow
  2140. ?set autoscale
  2141. ?set noautoscale
  2142. ?show autoscale
  2143. ?autoscale
  2144. ?noautoscale
  2145.  Autoscaling may be set individually on the x, y or z axis or globally on all
  2146.  axes. The default is to autoscale all axes.
  2147.  
  2148.  Syntax:
  2149.        set autoscale {<axes>{min|max}}
  2150.        set noautoscale {<axes>{min|max}}
  2151.        show autoscale
  2152.  
  2153.  where <axes> is either `x`, `y`, `z`, `x2`, `y2` or `xy`.  A keyword with
  2154.  `min` or `max` appended (this cannot be done with `xy`) tells `gnuplot` to
  2155.  autoscale just the minimum or maximum of that axis.  If no keyword is given,
  2156.  all axes are autoscaled.
  2157.  
  2158.  When autoscaling, the axis range is automatically computed and the dependent
  2159.  axis (y for a `plot` and z for `splot`) is scaled to include the range of the
  2160.  function or data being plotted.
  2161.  
  2162.  If autoscaling of the dependent axis (y or z) is not set, the current y or z
  2163.  range is used.
  2164.  
  2165.  Autoscaling the independent variables (x for `plot` and x,y for `splot`) is a
  2166.  request to set the domain to match any data file being plotted.  If there are
  2167.  no data files, autoscaling an independent variable has no effect.  In other
  2168.  words, in the absence of a data file, functions alone do not affect the x
  2169.  range (or the y range if plotting z = f(x,y)).
  2170.  
  2171.  Please see `set xrange` for additional information about ranges.
  2172.  
  2173.  The behavior of autoscaling remains consistent in parametric mode, (see `set
  2174.  parametric`).  However, there are more dependent variables and hence more
  2175.  control over x, y, and z axis scales.  In parametric mode, the independent or
  2176.  dummy variable is t for `plot`s and u,v for `splot`s.  `autoscale` in
  2177.  parametric mode, then, controls all ranges (t, u, v, x, y, and z) and allows
  2178.  x, y, and z to be fully autoscaled.
  2179.  
  2180.  Autoscaling works the same way for polar mode as it does for parametric mode
  2181.  for `plot`, with the extension that in polar mode `set dummy` can be used to
  2182.  change the independent variable from t (see `set dummy`).
  2183.  
  2184.  When tics are displayed on second axes but no plot has been specified for
  2185.  those axes, x2range and y2range are inherited from xrange and yrange.  This
  2186.  is done _before_ xrange and yrange are autoextended to a whole number of
  2187.  tics, which can cause unexpected results.
  2188.  
  2189.  Examples:
  2190.  
  2191.  This sets autoscaling of the y axis (other axes are not affected):
  2192.        set autoscale y
  2193.  
  2194.  This sets autoscaling only for the minimum of the y axis (the maximum of the
  2195.  y axis and the other axes are not affected):
  2196.        set autoscale ymin
  2197.  
  2198.  This sets autoscaling of the x and y axes:
  2199.        set autoscale xy
  2200.  
  2201.  This sets autoscaling of the x, y, z, x2 and y2 axes:
  2202.        set autoscale
  2203.  
  2204.  This disables autoscaling of the x, y, z, x2 and y2 axes:
  2205.        set noautoscale
  2206.  
  2207.  This disables autoscaling of the z axis only:
  2208.        set noautoscale z
  2209. ?set autoscale parametric
  2210. ?set autoscale t
  2211.  When in parametric mode (`set parametric`), the xrange is as fully scalable
  2212.  as the y range.  In other words, in parametric mode the x axis can be
  2213.  automatically scaled to fit the range of the parametric function that is
  2214.  being plotted.  Of course, the y axis can also be automatically scaled just
  2215.  as in the non-parametric case.  If autoscaling on the x axis is not set, the
  2216.  current x range is used.
  2217.  
  2218.  Data files are plotted the same in parametric and non-parametric mode.
  2219.  However, there is a difference in mixed function and data plots: in
  2220.  non-parametric mode with autoscaled x, the x range of the datafile controls
  2221.  the x range of the functions; in parametric mode it has no influence.
  2222.  
  2223.  For completeness a last command `set autoscale t` is accepted.  However, the
  2224.  effect of this "scaling" is very minor.  When `gnuplot` determines that the
  2225.  t range would be empty, it makes a small adjustment if autoscaling is true.
  2226.  Otherwise, `gnuplot` gives an error.  Such behavior may, in fact, not be very
  2227.  useful and the command `set autoscale t` is certainly questionable.
  2228.  
  2229.  `splot` extends the above ideas as you would expect.  If autoscaling is set,
  2230.  then x, y, and z ranges are computed and each axis scaled to fit the
  2231.  resulting data.
  2232. ?set autoscale polar
  2233. ?set autoscale t
  2234.  When in polar mode (`set polar`), the xrange and the yrange are both found
  2235.  from the polar coordinates, and thus they can both be automatically scaled.
  2236.  In other words, in polar mode both the x and y axes can be automatically
  2237.  scaled to fit the ranges of the polar function that is being plotted.
  2238.  
  2239.  When plotting functions in polar mode, the rrange may be autoscaled.  When
  2240.  plotting data files in polar mode, the trange may also be autoscaled.  Note
  2241.  that if the trange is contained within one quadrant, autoscaling will produce
  2242.  a polar plot of only that single quadrant.
  2243.  
  2244.  Explicitly setting one or two ranges but not others may lead to unexpected
  2245.  results.
  2246. ?set bar
  2247. ?show bar
  2248.  The `set bar` command controls the tics at the ends of errorbars.
  2249.  
  2250.  Syntax:
  2251.        set bar {small | large | <size>}
  2252.        show bar
  2253.  
  2254.  `small` is a synonym for 0.0, and `large` for 1.0.
  2255.  The default is 1.0 if no size is given.
  2256. ?set bmargin
  2257. ?bmargin
  2258.  The command `set bmargin` sets the size of the bottom margin.  Please see
  2259.  `set margin` for details.
  2260. ?set border
  2261. ?set noborder
  2262. ?show border
  2263. ?border
  2264. ?noborder
  2265.  The `set border` and `set noborder` commands control the display of the graph  
  2266.  borders for the `plot` and `splot` commands.
  2267.  
  2268.  Syntax:
  2269.        set border {<integer>}
  2270.        set noborder
  2271.        show border
  2272.  
  2273.  The borders are encoded in a 12-bit integer: the bottom four bits control the
  2274.  border for `plot` and the sides of the base for `splot`; The next four bits
  2275.  control the verticals in `splot`; the top four bits control the edges on top
  2276.  of the `splot`.  The default is 31, which is all four sides for `plot`, and
  2277.  base and z axis for `splot`.  
  2278.  
  2279.  Various axes or combinations of axes may be added together on the command.
  2280.  
  2281.  To have tics on edges other than bottom and left, disable the usual tics and
  2282.  enable the second axes.
  2283.  
  2284.  Examples:
  2285.  
  2286.  Draw all borders:
  2287.        set border
  2288.  
  2289.  Draw only the SOUTHWEST borders:
  2290.        set border 3
  2291.  
  2292.  Draw a complete box around a `splot`:
  2293.        set border 4095
  2294.  
  2295.  Draw a partial box, omitting the front vertical:
  2296.        set border 127+256+512
  2297.  
  2298.  Draw only the NORTHEAST borders:
  2299.        set noxtics; set noytics; set x2tics; set y2tics; set border 12
  2300.  
  2301. ?set boxwidth
  2302. ?show boxwidth
  2303. ?boxwidth
  2304.  The `set boxwidth` command is used to set the default width of boxes in the
  2305.  `boxes` and `boxerrorbars` styles.
  2306.  
  2307.  Syntax:
  2308.        set boxwidth {<width>}
  2309.        show boxwidth
  2310.  
  2311.  If a data file is plotted without the width being specified in the third,
  2312.  fourth, or fifth column (or `using` entry), or if a function is plotted, the
  2313.  width of each box is set by the `set boxwidth` command.  (If a width is given
  2314.  both in the file and by the `set boxwidth` command, the one in the file is
  2315.  used.)  If the width is not specified in one of these ways, the width of each
  2316.  box will be calculated automatically so that it touches the adjacent boxes.
  2317.  In a four-column data set, the fourth column will be interpreted as the box
  2318.  width unless the width is set to -2.0, in which case the width will be
  2319.  calculated automatically.  See `set style boxerrorbars` for more details.
  2320.  
  2321.  To set the box width to automatic use the command
  2322.        set boxwidth
  2323.  or, for four-column data,
  2324.        set boxwidth -2
  2325.  
  2326.  The same effect can be achieved with the `using` keyword in `plot`:
  2327.        plot 'file' using 1:2:3:4:(-2)
  2328. ?set clabel
  2329. ?set noclabel
  2330. ?show clabel
  2331. ?clabel
  2332. ?noclabel
  2333.  `gnuplot` will vary the linetype used for each contour level when clabel is
  2334.  set.  When this option on (the default), a legend labels each linestyle with
  2335.  the z level it represents.  It is not possible at present to separate the
  2336.  contour labels from the surface key.
  2337.  
  2338.  Syntax:
  2339.        set clabel {'<format>'}
  2340.        set noclabel
  2341.        show clabel
  2342.  
  2343.  The default for the format string is %8.3g, which gives three decimal places.
  2344.  This may produce poor label alignment if the key is altered from its default
  2345.  configuration.
  2346.  
  2347.  See also `set contour`.
  2348. ?set clip
  2349. ?set noclip
  2350. ?show clip
  2351. ?clip
  2352. ?noclip
  2353.  `gnuplot` can clip data points and lines that are near the boundaries of a
  2354.  graph.
  2355.  
  2356.  Syntax:
  2357.        set clip <clip-type>
  2358.        set noclip <clip-type>
  2359.        show clip
  2360.  
  2361.  Three clip types are supported by `gnuplot`: `points`, `one`, and `two`.
  2362.  One, two, or all three clip types may be active for a single graph.
  2363.  
  2364.  The `points` clip type forces `gnuplot` to clip (actually, not plot at all)
  2365.  data points that fall within but too close to the boundaries.  This is done
  2366.  so that large symbols used for points will not extend outside the boundary
  2367.  lines.  Without clipping points near the boundaries, the graph may look bad.
  2368.  Adjusting the x and y ranges may give similar results.
  2369.  
  2370.  Setting the `one` clip type causes `gnuplot` to draw a line segment which has
  2371.  only one of its two endpoints within the graph.  Only the in-range portion of
  2372.  the line is drawn.  The alternative is to not draw any portion of the line
  2373.  segment.
  2374.  
  2375.  Some lines may have both endpoints out of range, but pass through the graph.
  2376.  Setting the `two` clip-type allows the visible portion of these lines to be
  2377.  drawn.
  2378.  
  2379.  In no case is a line drawn outside the graph.
  2380.  
  2381.  The defaults are `noclip points`, `clip one`, and `noclip two`.
  2382.  
  2383.  To check the state of all forms of clipping, use
  2384.        show clip
  2385.  
  2386.  For backward compatibility with older versions, the following forms are also
  2387.  permitted:
  2388.        set clip
  2389.        set noclip
  2390.  
  2391.  `set clip` is synonymous with `set clip points`; `set noclip` turns off all
  2392.  three types of clipping.
  2393. ?set cntrparam
  2394. ?show cntrparam
  2395. ?cntrparam
  2396.  `set cntrparam` controls the generation of contours and their smoothness for
  2397.  a contour plot.
  2398.  
  2399.  Syntax:
  2400.        set cntrparam {  {linear | cubicspline | bspline}
  2401.                       | points <n> | order <n> 
  2402.                       | levels  {auto} {<n>} 
  2403.                               | discrete <z1> {,<z2>} ... 
  2404.                               | incremental {<start>, <incr> {,<end>}} }
  2405.        show cntrparam      
  2406.  
  2407.  This command controls the way contours are plotted.  <n> should be an
  2408.  integral constant expression and <z1>, <z2> ... any constant expressions.
  2409.  The parameters are:
  2410.  
  2411.  `linear`, `cubicspline`, `bspline`---Controls type of approximation or
  2412.  interpolation.  If `linear`, then the contours are drawn piecewise linear, as
  2413.  extracted from the surface directly.  If `cubicspline`, then piecewise linear
  2414.  contours are interpolated to form somewhat smoother contours, but which may
  2415.  undulate.  If `bspline`, a guaranteed-smoother curve is drawn, which only
  2416.  approximates the piecewise linear data.
  2417.  
  2418.  `points`---Eventually all drawings are done with piecewise linear strokes.
  2419.  This number controls the number of points used to approximate a curve.
  2420.  It is relevant only for `cubicspline` and `bspline` modes.
  2421.  
  2422.  `order`---Order of the bspline approximation to be used.  The bigger this
  2423.  order is, the smoother the resulting contour.  (Of course, higher order
  2424.  bspline curves will move further away from the original piecewise linear
  2425.  data.)  This option is relevant for `bspline` mode only.  Allowed values are
  2426.  integers in the range from 2 (linear) to 10.
  2427.  
  2428.  `levels`---Approximate number of contour levels.  Selection of the levels is
  2429.  controlled by `auto` (default), `discrete`, and `incremental`.  For `auto`,
  2430.  if the surface is bounded by zmin and zmax, contours will be generated at
  2431.  integer multiples of dz between zmin and zmax, where dz is 1, 2, or 5 times
  2432.  some power of ten (like the step between two tic marks).  For `discrete`,
  2433.  contours will be generated at z = <z1>, <z2> ... as specified.  The number of
  2434.  discrete levels is limited to MAX_DISCRETE_LEVELS, defined in plot.h to be
  2435.  30.  If `incremental`, contours are generated at values of z beginning at
  2436.  <start> and increasing by <increment> until <end> is reached.  If <end> is
  2437.  not specified, MAX_DISCRETE_LEVELS will be generated.
  2438.  
  2439.  If the command `set cntrparam` is given without any arguments specified,  the
  2440.  defaults are used: linear, 5 points, order 4, 5 `auto` levels.
  2441.  
  2442.  Examples:
  2443.        set cntrparam bspline
  2444.        set cntrparam points 7
  2445.        set cntrparam order 10
  2446.  
  2447.  To select 5 levels automatically:
  2448.        set cntrparam levels auto 5
  2449.  
  2450.  To specify discrete levels at .1, .37, and .9:
  2451.        set cntrparam levels discrete .1,1/exp(1),.9
  2452.  
  2453.  To specify levels from 0 to 4 with increment 1:
  2454.        set cntrparam levels incremental  0,1,4
  2455.  
  2456.  To set the number of levels to 10 (retaining the current settings of auto,
  2457.  discr. and increment's start and increment value, while changing its end):
  2458.        set cntrparam levels 10
  2459.  
  2460.  To set the start and increment while retaining the number of levels:
  2461.        set cntrparam levels incremental 100,50
  2462.  
  2463.  See also `set contour` for control of where the contours are drawn, and `set
  2464.  clabel` for control of the format of the contour labels.
  2465. ?set contour
  2466. ?set nocontour
  2467. ?show contour
  2468. ?contour
  2469. ?nocontour
  2470.  `set contour` enables contour drawing for surfaces. This option is available
  2471.  for `splot` only.
  2472.  
  2473.  Syntax:
  2474.        set contour {base | surface | both}
  2475.        set nocontour
  2476.        show contour
  2477.  
  2478.  The three options specify where to draw the contours: `base` draws the
  2479.  contours on the grid base where the x/ytics are placed, `surface` draws the
  2480.  contours on the surfaces themselves, and `both` draws the contours on both
  2481.  the base and the surface.  If no option is provided, the default is `base`.
  2482.  
  2483.  See also `set cntrparam` for the parameters that affect the drawing of
  2484.  contours, and `set clabel` for control of labelling of the contours.
  2485.  
  2486.  The surface can be switched off (see `set surface`), giving a contour-only
  2487.  graph.  Though it is possible to use `set view` to enlarge the graph to fill
  2488.  the screen, better results can be obtained by writing the contour information
  2489.  out to a file, and rereading it as a 2-d datafile plot:
  2490.  
  2491.        set nosurface
  2492.        set contour
  2493.        set cntrparam ...
  2494.        set term table
  2495.        set out 'filename'
  2496.        splot ...
  2497.        set out
  2498.        # contour info now in filename
  2499.        set term <whatever>
  2500.        plot 'filename'
  2501.  
  2502.  In order to draw contours, the data must be organized as "grid data".  In
  2503.  such a file all of the points for a single y value are listed, then all the
  2504.  points for the next y, and so on.  A single blank line (a line containing no
  2505.  characters other than blank spaces and a carriage return and/or a line feed)
  2506.  separates one y value group from the next.  See also `plot datafile`.
  2507.  
  2508.  If contours are desired from non-grid data, `set dgrid3d` can be used to
  2509.  create an appropriate grid.  See `set dgrid3d` for more information.
  2510. ?set data style
  2511. ?show data style
  2512. ?data style
  2513.  The `set data style` command changes the default plotting style for data
  2514.  plots.
  2515.  
  2516.  Syntax:
  2517.        set data style <style-choice>
  2518.        show data style
  2519.  
  2520.  See `set style` for the choices.  If no choice is given, the choices are
  2521.  listed.  `show data style` shows the current default data plotting style.
  2522. ?set dgrid3d
  2523. ?set nodgrid3d
  2524. ?show dgrid3d
  2525. ?dgrid3d
  2526. ?nodgrid3d
  2527.  The `set dgrid3d` command enables and sets the different parameters for
  2528.  non-grid to grid data mapping.
  2529.  
  2530.  Syntax:
  2531.        set dgrid3d {<row_size>} {,{<col_size>} {,<norm>}}
  2532.        set nodgrid3d
  2533.        show dgrid3d
  2534.  
  2535.  By default `dgrid3d` is disabled.  When enabled, 3-d data read from a file
  2536.  are always treated as a scattered data set.  A grid with dimensions derived
  2537.  from a bounding box of the scattered data and size as specified by the
  2538.  row/col_size parameters is created for plotting and contouring.  The grid is
  2539.  equally spaced in x and y; the z values are computed as weighted averages of
  2540.  the scattered points' values.
  2541.  
  2542.  The third parameter, norm, controls the weighting: each point is weighted
  2543.  inversely by its distance (from the grid point) raised to the norm power.
  2544.  (Actually it's not quite the distance: the weights are given by the inverse
  2545.  of dx^norm + dy^norm, where dx and dy are the components of the separation
  2546.  of the grid point from each data point.)  Thus the closer the data point is
  2547.  to a grid point, the more effect it has on that grid point.  In `gnuplot`,
  2548.  this distance computation is optimized for norms that are powers of 2,
  2549.  specifically 1, 2, 4, 8, and 16, but any non-negative integer can be used.
  2550.  
  2551.  The `dgrid3d` option is a simple low pass filter that converts scattered data
  2552.  to a grid data set.  More sophisticated approaches to this problem exist and
  2553.  should be used to preprocess the data outside `gnuplot` if this simple
  2554.  solution is found inadequate.
  2555.  
  2556.  Examples:
  2557.        set dgrid3d 10,10,1     # defaults
  2558.        set dgrid3d ,,4
  2559.  
  2560.  The first specifies that a grid of size 10 by 10 is to be constructed using
  2561.  the L2 norm (a norm of 2 is to be used in the distance computation).  The
  2562.  second only modifies the norm to be used to L4.
  2563.  
  2564. ?set dummy
  2565. ?show dummy
  2566. ?dummy
  2567.  The `set dummy` command changes the default dummy variable names.
  2568.  
  2569.  Syntax:
  2570.        set dummy {<dummy-var>} {,<dummy-var>}
  2571.        show dummy
  2572.  
  2573.  By default, `gnuplot` assumes that the independent, or "dummy", variable for
  2574.  the `plot` command is "t" if in parametric or polar mode, or "x" otherwise.
  2575.  Similarly the independent variables for the `splot` command are "u" and "v"
  2576.  in parametric mode (`splot` cannot be used in polar mode), or "x" and "y"
  2577.  otherwise.
  2578.  
  2579.  It may be more convenient to call a dummy variable by a more physically
  2580.  meaningful or conventional name.  For example, when plotting time functions:
  2581.  
  2582.        set dummy t
  2583.        plot sin(t), cos(t)
  2584.  
  2585.  At least one dummy variable must be set on the command; `set dummy` by itself
  2586.  will generate an error message.
  2587.  
  2588.  Examples:
  2589.        set dummy u,v
  2590.        set dummy ,s
  2591.  
  2592.  The second example sets the second variable to s.
  2593. ?set encoding
  2594. ?show encoding
  2595. ?encoding
  2596.  The `set encoding` command selects a character encoding.  Valid values are
  2597.  `default`, which does nothing; `iso_8859_1` (known in the PostScript world as
  2598.  `ISO-Latin1`), which is used on many Unix workstations and with MS-Windows;
  2599.  `cp850`, for OS/2; and `cp437`, for MS-DOS.
  2600.  
  2601.  Syntax:
  2602.        set encoding <value>
  2603.        show encoding
  2604.  
  2605.  Please note that this is not supported on all terminal types.  Note also that
  2606.  the device must be able to produce the non-standard characters.
  2607. ?set format
  2608. ?show format
  2609. ?format
  2610.  The format of the tic-mark labels can be set with the `set format` command.
  2611.  
  2612.  Syntax:
  2613.        set format {<axes>} {"<format-string>"}
  2614.        set format {<axes>} {'<format-string>'}
  2615.        show format
  2616.  
  2617.  where <axes> is either `x`, `y`, `z`, `xy`, `x2`, `y2` or nothing (which is
  2618.  the same as `xy`).  The length of the string representing a ticmark (after
  2619.  formatting with 'printf') is restricted to 100 characters.  If the format
  2620.  string is omitted, the format will be returned to the default "%g".  For
  2621.  LaTeX users, the format "$%g$" is often desirable.  If the empty string "" is
  2622.  used, no label will be plotted with each tic, though the tic mark will still
  2623.  be plotted.  To eliminate all tic marks, use `set noxtics` or `set noytics`.
  2624.  
  2625.  The default format for both axes is "%g", but other formats such as "%.2f" or
  2626.  "%3.0em" are often desirable.  Anything accepted by 'printf' when given a
  2627.  double precision number, and accepted by the terminal, will work.  Some other
  2628.  options have been added.  If the format string looks like a floating point
  2629.  format, then `gnuplot` tries to construct a reasonable format.
  2630.  
  2631.  If the data type for the axis is date/time, the format string must contain
  2632.  valid codes for the 'strftime' function (outside of `gnuplot`, type "man
  2633.  strftime").  It is best to stick to the conversion codes accepted by the `set
  2634.  timefmt` command.
  2635.  
  2636.  The acceptible formats are:
  2637.  
  2638.        Format       Explanation
  2639.        %f           floating point notation
  2640.        %e or %E     exponential notation; an "e" or "E" before the power
  2641.        %g or %G     the shorter of %e (or %E) and %f
  2642.        %x or %X     hex
  2643.        %o or %O     octal
  2644.        %t           mantissa to base 10
  2645.        %l           mantissa to base of current logscale
  2646.        %s           mantissa to base of current logscale; scientific power
  2647.        %T           power to base 10
  2648.        %L           power to base of current logscale
  2649.        %S           scientific power
  2650.        %c           character replacement for scientific power
  2651.        %P           multiple of pi
  2652.  
  2653.  A 'scientific' power is one such that the exponent is a multiple of three.
  2654.  Character replacement of scientific powers (`"%c"`) has been implemented
  2655.  for powers in the range -18 to +18.  For numbers outside of this range the
  2656.  format reverts to exponential.
  2657.  
  2658.  Other acceptible modifiers (which come after the "%" but before the format
  2659.  specifier) are "-", which left-justifies the number; "+", which forces all
  2660.  numbers to be explicitly signed; "#", which places a decimal point after
  2661.  floats that have only zeroes following the decimal point; a positive integer,
  2662.  which defines the field width; "0" (the digit, not the letter) immediately
  2663.  preceding the field width, which indicates that leading zeroes are to be used
  2664.  instead of leading blanks; and a decimal point followed by a non-negative
  2665.  integer, which defines the precision (the minimum number of digits of an
  2666.  integer, or the number of digits following the decimal point of a float).
  2667.  
  2668.  Some releases of 'printf' may not support all of these modifiers but may also
  2669.  support others; in case of doubt, check the appropriate documentation and
  2670.  then experiment.
  2671.  
  2672.  Examples:
  2673.        set format y "%t"; set ytics (5,10)          # "5.0" and "1.0"
  2674.        set format y "%s"; set ytics (500,1000)      # "500" and "1.0"
  2675.        set format y "+-12.3f"; set ytics(12345)     # "+12345.000  "
  2676.        set format y "%.2t*10^%+03T"; set ytic(12345)# "1.23*10^+04"
  2677.        set format y "%s*10^{%S}"; set ytic(12345)   # "12.345*10^{3}"
  2678.        set format y "%s %cg"; set ytic(12345)       # "12.345 kg"
  2679.        set format y "%.0P pi"; set ytic(6.283185)   # "2 pi"
  2680.  
  2681.        set log y 2; set format y '%l'; set ytics (1,2,3)
  2682.        #displays "1.0", "1.0" and "1.5" (since 3 is 1.5 * 2^1)
  2683.  
  2684.  There are some problem cases that arise when numbers like 9.999 are printed
  2685.  with a format that requires both rounding and a power.
  2686.  
  2687.  Newline (\n) is accepted in the format string.  Use double-quotes rather than
  2688.  single-quotes to enable such interpretation.  See also `syntax`.
  2689.  
  2690.  See also `set xtics` and `set ytics` for more control over tic labels.
  2691. ?set function style
  2692. ?show function style
  2693. ?function style
  2694.  The `set function style` command changes the default plotting style for
  2695.  function plots.
  2696.  
  2697.  Syntax:
  2698.        set function style <style-choice>
  2699.        show function style
  2700.  
  2701.  See `set style` for the choices.  If no choice is given, the choices are
  2702.  listed.  `show function style` shows the current default function plotting
  2703.  style.
  2704. ?show functions
  2705.  The `show functions` command lists all user-defined functions and their
  2706.  definitions.
  2707.  
  2708.  Syntax:
  2709.        show functions
  2710.  
  2711.  For information about the definition and usage of functions in `gnuplot`,
  2712.  please see `expressions` and `user-defined`.
  2713. ?set grid
  2714. ?set nogrid
  2715. ?show grid
  2716. ?grid
  2717. ?nogrid
  2718.  The `set grid` command allows grid lines to be drawn on the graph.
  2719.  
  2720.  Syntax:
  2721.        set grid {{no}{m}xtics} {{no}{m}ytics} {{no}{m}ztics}
  2722.                 {{no}{m}x2tics} {{no}{m}y2tics}
  2723.                 {polar {<angle>}} {<major_linetype> {<minor_linetype>}}
  2724.        set nogrid
  2725.        show grid
  2726.  
  2727.  The grid can be enabled and disabled for the major and/or minor tic marks on
  2728.  any axis, and the linetype can be specified for major and minor grid lines.
  2729.  But note that <major_linetype> and <minor_linetype> are indices in the
  2730.  default linetype list provided by the terminal; user-defined linetypes (via
  2731.  the `set linestyle` command) are not accessible for grid lines.
  2732.  
  2733.  Additionally, a polar grid can be selected for 2-d plots---circles are drawn
  2734.  to intersect the selected tics, and radial lines are drawn at definable
  2735.  intervals.  (The interval is given in degrees or radians ,depending on the
  2736.  `set angles` setting.)  Note that a polar grid is no longer automatically
  2737.  generated in polar mode.
  2738.  
  2739.  The pertinent tics must be enabled before `set grid` can draw them; `gnuplot`
  2740.  will quietly ignore instructions to draw grid lines at non-existent tics, but
  2741.  they will appear if the tics are subsequently enabled.
  2742.  
  2743.  If no linetype is specified for the minor gridlines, the same linetype as the
  2744.  major gridlines is used.  The default polar angle is 30 degrees.
  2745.  
  2746.  Z grid lines are drawn on the back of the graph.  This looks better if a
  2747.  partial box is drawn around the graph---see `set border`.
  2748. ?set hidden3d
  2749. ?set nohidden3d
  2750. ?show hidden3d
  2751. ?hidden3d
  2752. ?nohidden3d
  2753.  The `set hidden3d` command enables hidden line removal for explicit surface
  2754.  plotting (see `splot`).
  2755.  
  2756.  Syntax:
  2757.        set hidden3d
  2758.        set nohidden3d
  2759.        show hidden3d
  2760.  
  2761.  Hidden line removal may be used for both explicit functions and for explicit
  2762.  data.  It now works for parametric surfaces as well.  This mode is meaningful
  2763.  only when surfaces are `splot`ted `with lines`.
  2764.  
  2765.  When this flag is set, both the hidden portion of the surface and possibly
  2766.  its hidden contours (see `set contour`) as well as the hidden grid will be
  2767.  removed.  Each surface has its hidden parts removed with respect to itself
  2768.  and to other surfaces, if more than one surface is plotted.  But contours
  2769.  drawn on the surface (`set contour surface`) don't seem to work.  Labels and
  2770.  arrows are always visible and are unaffected.
  2771. ?set isosamples
  2772. ?show isosamples
  2773. ?isosamples
  2774.  The isoline density of surfaces may be changed by the `set isosamples`
  2775.  command.
  2776.  
  2777.  Syntax:
  2778.        set isosamples <iso_1> {,<iso_2>}
  2779.        show isosamples
  2780.  
  2781.  Each surface plot will have <iso_1> iso-u lines and <iso_2> iso-v lines.  If
  2782.  you only specify <iso_1>, <iso_2> will be set to the same value as <iso_1>.
  2783.  By default, sampling is set to 10 isolines per u or v axis.  A higher
  2784.  sampling rate will produce more accurate plots, but will take longer.  These
  2785.  parameters have no effect on data file plotting.
  2786.  
  2787.  An isoline is a curve parameterized by one of the surface parameters while
  2788.  the other surface parameter is fixed.  Isolines provide a simple means to
  2789.  display a surface.  By fixing the u parameter of surface s(u,v), the iso-u
  2790.  lines of the form c(v) = s(u0,v) are produced, and by fixing the v parameter,
  2791.  the iso-v lines of the form c(u) = s(u,v0) are produced.
  2792.  
  2793.  When a surface plot is being done without the removal of hidden lines, `set
  2794.  samples` also has an effect on the number of points being evaluated---it
  2795.  controls the number of points sampled along each isoline.  See `set samples`.
  2796. ?set key
  2797. ?set nokey
  2798. ?show key
  2799. ?key
  2800. ?nokey
  2801. ?legend
  2802.  The `set key` enables a key (or legend) describing plots on a graph.
  2803.  
  2804.  The contents of the key, i.e., the names given to each plotted data set and
  2805.  function and samples of the lines and/or symbols used to represent them, are
  2806.  determined by the `title` and `with` options of the {`s`}`plot` command.
  2807.  Please see `plot title` and `plot with` for more information.
  2808.  
  2809.  Syntax:
  2810.        set key {  left | right | top | bottom | outside | below 
  2811.                 | <position>}
  2812.                {Left | Right} {{no}reverse}
  2813.                {samplen <sample_length>} {spacing <vertical_spacing>}
  2814.                {title "<text>"} {{no}box {<linetype>}}
  2815.        set nokey
  2816.        show key
  2817.  
  2818.  By default the key is placed in the upper right corner of the graph.  The
  2819.  keywords `left`, `right`, `top`, `bottom`, `outside` and `below` may be used
  2820.  to place the key in the other corners inside the graph or to the right
  2821.  (outside) or below the graph.  They may be given alone or combined.
  2822.  
  2823.  Justification of the labels within the key is controlled by `Left` or `Right`
  2824.  (default is `Right`).  The text and sample can be reversed (`reverse`) and a
  2825.  box can be drawn around the key (`box {<linetype>}`) in a specified linetype.
  2826.  But note that <linetype> is an index in the default linetype list provided by
  2827.  the terminal; user-defined linetypes (via the `set linestyle` command) are
  2828.  not accessible for the key box.
  2829.  
  2830.  The length of the sample line can be controlled by `samplen`.  The sample
  2831.  length is computed as the sum of the tic length and <sample_length> times the
  2832.  character width.  `samplen` also affects the positions of point samples in
  2833.  the key since these are drawn at the midpoint of the sample line, even if it
  2834.  is not drawn.  <sample_length> must be an integer.
  2835.  
  2836.  The vertical spacing between lines is controlled by `spacing`.  The spacing
  2837.  is set equal to the product of the pointsize, the vertical tic size, and
  2838.  <vertical_spacing>.  The program will guarantee that the vertical spacing is
  2839.  no smaller than the character height.
  2840.  
  2841.  A title can be put on the key (`title "<text>"`)---see also `syntax` for the
  2842.  distinction between text in single- or double-quotes.  The key title uses the
  2843.  same justification as do the plot titles.
  2844.  
  2845.  The defaults for `set key` are `right`, `top`, `Right`, `noreverse`, `samplen
  2846.  4`, `spacing 1.25`, `title ""`, and `nobox`.  The default <linetype> is the
  2847.  same as that used for the plot borders.  Entering `set key` with no options
  2848.  returns the key to its default configuration.
  2849.  
  2850.  The <position> can be a simple x,y,z as in previous versions, but these can
  2851.  be preceded by one of four keywords (`first`, `second`, `graph`, `screen`)
  2852.  which selects the coordinate system in which the position is specified.  See
  2853.  `coordinates` for more details.  
  2854.  
  2855.  The key is drawn as a sequence of lines, with one plot described on each
  2856.  line.  On the right-hand side (or the left-hand side, if `reverse` is
  2857.  selected) of each line is a representation that attempts to mimic the way the
  2858.  curve is plotted.  On the other side of each line is the text description
  2859.  (the plot title), obtained from the `plot` command.  The lines are vertically
  2860.  arranged so that an imaginary straight line divides the left- and right-hand
  2861.  sides of the key.  It is the coordinates of the top of this line that are
  2862.  specified with the `set key` command.  In a `plot`, only the x and y
  2863.  coordinates are used to specify the line position.  For a `splot`, x, y and
  2864.  z are all used as a 3-d location mapped using the same mapping as the graph
  2865.  itself to form the required 2-d screen position of the imaginary line.
  2866.  
  2867.  Some or all of the key may be outside of the graph boundary, although this
  2868.  may interfere with other labels and may cause an error on some devices.  If
  2869.  you use the keywords `outside` or `below`, `gnuplot` makes space for the keys
  2870.  and the graph becomes smaller.  Putting keys outside to the right, they
  2871.  occupy as few columns as possible, and putting them below, as many columns as
  2872.  possible (depending of the length of the labels), thus stealing as little
  2873.  space from the graph as possible.
  2874.  
  2875.  When using the TeX or PostScript drivers, or similar drivers where formatting
  2876.  information is embedded in the string, `gnuplot` is unable to calculate
  2877.  correctly the width of the string for key positioning.  If the key is to be
  2878.  positioned at the left, it may be convenient to use the combination  `set key
  2879.  left Left reverse`.  The box and gap in the grid will be the width of the
  2880.  literal string.
  2881.  
  2882.  If `splot` is being used to draw contours, the contour labels will be listed
  2883.  in the key.  If the alignment of these labels is poor or a different number
  2884.  of decimal places is desired, the label format can be specified.  See `set
  2885.  clabel` for details.
  2886.  
  2887.  Examples:
  2888.  
  2889.  This places the key at the default location:
  2890.        set key
  2891.  
  2892.  This disables the key:
  2893.        set nokey
  2894.  
  2895.  This places a key at coordinates 2,3.5,2 in the default (first) coordinate
  2896.  system:
  2897.        set key 2,3.5,2
  2898.  
  2899.  This places the key below the graph:
  2900.        set key below
  2901.  
  2902.  This places the key in the bottom left corner, left-justifies the text,
  2903.  gives it a title, and draws a box around it in linetype 3:
  2904.        set key left bottom Left title 'Legend' box 3
  2905. ?set label
  2906. ?set nolabel
  2907. ?show label
  2908. ?label
  2909. ?nolabel
  2910.  Arbitrary labels can be placed on the graph using the `set label` command.
  2911.  
  2912.  Syntax:
  2913.        set label {<tag>} {"<label_text>"} {at <position>}
  2914.                  {<justification>} {{no}rotate} {font "<name><,size>"}
  2915.        set nolabel {<tag>}
  2916.        show label
  2917.  
  2918.  The <position> is specified by either x,y or x,y,z, and may be preceded by
  2919.  `first`, `second`, `graph`, or `screen` to select the coordinate system.
  2920.  See `coordinates` for details.
  2921.  
  2922.  The tag is an integer that is used to identify the label. If no <tag> is
  2923.  given, the lowest unused tag value is assigned automatically.  The tag can be
  2924.  used to delete or modify a specific label.  To change any attribute of an
  2925.  existing label, use the `set label` command with the appropriate tag, and
  2926.  specify the parts of the label to be changed.
  2927.  
  2928.  By default, the text is placed flush left against the point x,y,z.  To adjust
  2929.  the way the label is positioned with respect to the point x,y,z, add the
  2930.  parameter <justification>, which may be `left`, `right` or `center`,
  2931.  indicating that the point is to be at the left, right or center of the text.
  2932.  Labels outside the plotted boundaries are permitted but may interfere with
  2933.  axis labels or other text.
  2934.  
  2935.  If `rotate` is given, the label is written vertically (if the terminal can do
  2936.  so, of course).
  2937.  
  2938.  If one (or more) axis is timeseries, the appropriate coordinate should be
  2939.  given as a quoted time string according to the `timefmt` format string.  See
  2940.  `set xdata` and `set timefmt`.
  2941.  
  2942.  The EEPIC, Imagen, LaTeX, and TPIC drivers allow \\ in a string to specify
  2943.  a newline.
  2944.  
  2945.  Examples:
  2946.  
  2947.  To set a label at (1,2) to "y=x", use:
  2948.        set label "y=x" at 1,2
  2949.  
  2950.  To set a label of the sign Sigma of size 24 at the center of the graph, use:
  2951.        set label "S" at graph 0.5,0.5 center font "Symbol,24"
  2952.  
  2953.  To set a label "y=x^2" with the right of the text at (2,3,4), and tag the
  2954.  label as number 3, use:
  2955.        set label 3 "y=x^2" at 2,3,4 right
  2956.  
  2957.  To change the preceding label to center justification, use:
  2958.        set label 3 center
  2959.  
  2960.  To delete label number 2, use:
  2961.        set nolabel 2
  2962.  
  2963.  To delete all labels, use:
  2964.        set nolabel
  2965.  
  2966.  To show all labels (in tag order), use:
  2967.        show label
  2968.  
  2969.  To set a label on a graph with a timeseries on the x axis, use, for example:
  2970.        set timefmt "%d/%m/%y,%H:%M" 
  2971.        set label "Harvest" at "25/8/93",1
  2972. ?set linestyle
  2973. ?set nolinestyle
  2974. ?show linestyle
  2975. ?linestyle
  2976.  Each terminal has a default set of line and point types, which can be seen
  2977.  by using the command `test`.  `set linestyle` defines a set of line types
  2978.  and widths and point types and sizes so that you can refer to them later by
  2979.  an index instead of repeating all the information at each invocation.
  2980.  
  2981.  Syntax:
  2982.        set linestyle <index> {linetype | lt <line_type>}
  2983.                              {linewidth | lw <line_width>}
  2984.                              {pointtype | pt <point_type>}
  2985.                              {pointsize | ps <point_size>}
  2986.        set nolinestyle
  2987.        show linestyle
  2988.  
  2989.  The line and point types are taken from the default types for the terminal
  2990.  currently in use.  The line width and point size are multipliers for the
  2991.  default width and size (but note that <point_size> here is unaffected by
  2992.  the multiplier given on 'set pointsize').
  2993.  
  2994.  The defaults for the line and point types is the index.  The defaults for
  2995.  the width and size are both unity.
  2996.  
  2997.  Linestyles created by this mechanism do not replace the default styles;
  2998.  both may be used.
  2999.  
  3000.  Not all terminals support the line width and point size features, so these
  3001.  terminals obviously cannot fully support `set linestyle`.
  3002.  
  3003.  Note that this feature is not completely installed; linestyles defined by
  3004.  this mechanism may be used with 'plot', 'splot', 'replot', and 'set arrow',
  3005.  but not by other commands that allow the default index to be used, such as
  3006.  'set grid'.
  3007.  
  3008.  Example:
  3009.  Suppose that the default lines for indices 1, 2, and 3 are red, green, and
  3010.  blue, respectively, and the default point shapes for the same indices are a
  3011.  square, a cross, and a triangle, respectively.  Then
  3012.  
  3013.        set linestyle 1 lt 2 lw 2 pt 3 ps 0.5
  3014.  
  3015.  defines a new linestyle that is green and twice the default width and a new
  3016.  pointstyle that is a half-sized triangle.  The commands
  3017.  
  3018.        set function style lines
  3019.        plot f(x) lt 3, g(x) ls 1
  3020.  
  3021.  will create a plot of f(x) using the default blue line and a plot of g(x)
  3022.  using the user-defined wide green line.  Similarly the commands
  3023.  
  3024.        set function style linespoints
  3025.        plot p(x) lt 1 pt 3, q(x) ls 1
  3026.  
  3027.  will create a plot of f(x) using the default triangles connected by a red
  3028.  line and q(x) using small triangles connected by a green line.
  3029. ?set lmargin
  3030. ?lmargin
  3031.  The command `set lmargin` sets the size of the left margin.  Please see
  3032.  `set margin` for details.
  3033. ?set locale
  3034. ?show logscale
  3035. ?locale
  3036.  The `locale` setting determines the language with which `{x,y,z}{d,m}tics`
  3037.  will write the days and months.
  3038.  
  3039.  Syntax:
  3040.        set locale {"<locale>"}
  3041.  
  3042.  <locale> may be any language designation acceptible to your installation.
  3043.  See your system documentation for the available options.  The default value
  3044.  is determined from the LANG environment variable.
  3045. ?set logscale
  3046. ?set nologscale
  3047. ?show logscale
  3048. ?logscale
  3049. ?nologscale
  3050.  Log scaling may be set on the x, y, z, x2 and/or y2 axes.
  3051.  
  3052.  Syntax:
  3053.        set logscale <axes> <base>
  3054.        set nologscale <axes>
  3055.        show logscale
  3056.  
  3057.  where <axes> may be any combinations of `x`, `y`, and `z`, in any order, or
  3058.  `x2` or `y2` and where <base> is the base of the log scaling.  If <base> is
  3059.  not given, then 10 is assumed.  If <axes> is not given, then all axes are
  3060.  assumed.  `set nologscale` turns off log scaling for the specified axes.
  3061.  
  3062.  Examples:
  3063.  
  3064.  To enable log scaling in both x and z axes:
  3065.        set logscale xz
  3066.  
  3067.  To enable scaling log base 2 of the y axis:
  3068.        set logscale y 2
  3069.  
  3070.  To disable z axis log scaling:
  3071.        set nologscale z
  3072. ?set mapping
  3073. ?show mapping
  3074. ?mapping
  3075.  If data are provided to `splot` in spherical or cylindrical coordinates,
  3076.  the `set mapping` command should be used to instruct `gnuplot` how to
  3077.  interpret them.
  3078.  
  3079.  Syntax:
  3080.        set mapping {cartesian | spherical | cylindrical}
  3081.  
  3082.  A cartesian coordinate system is used by default.
  3083.  
  3084.  For a spherical coordinate system, the data occupy two or three columns (or
  3085.  `using` entries).  The first two are interpreted as the polar and azimuthal
  3086.  angles theta and phi (in the units specified by `set angles`).  The radius r
  3087.  is taken from the third column if there is one, or is set to unity if there
  3088.  is no third column.  The mapping is:
  3089.  
  3090.        x = r * cos(theta) * cos(phi)
  3091.        y = r * sin(theta) * cos(phi)
  3092.        z = r * sin(phi)
  3093.  
  3094.  Note that this is a "geographic" spherical system, rather than a "polar" one.
  3095.  
  3096.  For a cylindrical coordinate system, the data again occupy two or three
  3097.  columns.  The first two are interpreted as theta (in the units specified by
  3098.  `set angles`) and z.  The radius is either taken from the third column or set
  3099.  to unity, as in the spherical case.  The mapping is:
  3100.  
  3101.        x = r * cos(theta)
  3102.        y = r * sin(theta)
  3103.        z = z
  3104.  
  3105.  The effects of `mapping` can be duplicated with the `using` filter on the
  3106.  `splot` command, but `mapping` may be more convenient if many data files are
  3107.  to be processed.  However even if `mapping` is used, `using` may still be
  3108.  necessary if the data in the file are not in the required order.
  3109.  
  3110.  `mapping` has no effect on `plot`s.
  3111. ?set margin
  3112. ?show margin
  3113. ?margin
  3114.  Normally the margins of the graph are automatically calculated based on tics
  3115.  and axis labels.  These computed values can be overridden by the `set margin`
  3116.  commands.  `show margin` shows the current settings.
  3117.  
  3118.  Syntax:
  3119.        set bmargin {<margin>}
  3120.        set lmargin {<margin>}
  3121.        set rmargin {<margin>}
  3122.        set tmargin {<margin>}
  3123.        show margin
  3124.  
  3125.  The units of <margin> are character heights or widths, as appropriate.  A
  3126.  positive value defines the absolute size of the margin.  A negative value (or
  3127.  none) causes `gnuplot` to revert to the computed value.
  3128. ?set missing
  3129. ?missing
  3130.  The `set missing` command allows you to tell `gnuplot` what character is
  3131.  used in a data file to denote missing data.
  3132.  
  3133.  Syntax:
  3134.        set missing {"<character>"}
  3135.        show missing
  3136.  
  3137.  Example:
  3138.        set missing "?"
  3139.  
  3140.  would mean that, when plotting a file containing
  3141.  
  3142.           1 1
  3143.           2 ?
  3144.           3 2
  3145.  
  3146.  the middle line would be ignored.
  3147.  
  3148.  There is no default character for `missing`.
  3149. ?set multiplot
  3150. ?multiplot
  3151. ?set nomultiplot
  3152.  The command `set multiplot` places `gnuplot` in the multiplot mode, in which
  3153.  several graphs are placed on the same page, window, or screen.
  3154.  
  3155.  Syntax:
  3156.        set multiplot
  3157.        set nomultiplot
  3158.  
  3159.  For some terminals, no graph is displayed until the command `set nomultiplot`
  3160.  is given, which causes the entire page to be drawn and then returns `gnuplot`
  3161.  to its normal single-plot mode.  For other terminals, each separate `plot`
  3162.  command produces a graph, but the screen may not be cleared between graphs.
  3163.  
  3164.  Any labels or arrows that have been defined will be drawn for each graph
  3165.  according to the current size and origin (unless their coordinates are
  3166.  defined in the `screen` system).  Just about everything else that can be
  3167.  `set` is applied to each graph, too.  If you want something to appear only
  3168.  once on the page, for instance a single time stamp, you'll need to put a `set
  3169.  time`/`set notime` pair around one of the `plot`, `splot` or `replot`
  3170.  commands within the `set multiplot`/`set nomultiplot` block.
  3171.  
  3172.  The commands `set origin` and `set size` must be used to correctly position
  3173.  each graph; see `set origin` and `set size` for details of their usage.
  3174.  
  3175.  Example:
  3176.        set size 0.7,0.7
  3177.        set origin 0.1,0.1
  3178.        set multiplot
  3179.        set size 0.4,0.4
  3180.        set origin 0.1,0.1
  3181.        plot sin(x)
  3182.        set size 0.2,0.2
  3183.        set origin 0.5,0.5
  3184.        plot cos(x)
  3185.        set nomultiplot
  3186.  
  3187.  displays a graph of cos(x) stacked above a graph of sin(x).  Note the initial
  3188.  `set size` and `set origin`.  While these are not always required, their
  3189.  inclusion is recommended.  Some terminal drivers require that bounding box
  3190.  information be available before any graphs can be made, and the form given
  3191.  above guarantees that the bounding box will include the entire graph array
  3192.  rather than just the bounding box of the first graph.
  3193.  
  3194.  `set size` and `set origin` refer to the entire plotting area used for each
  3195.  graph.  If you want to have the axes themselves line up, perhaps to avoid
  3196.  having to label all of them, you need to guarantee that the margins are the
  3197.  same size.  This can be done with the `set margin` commands.  Please see `set
  3198.  margin` for their use.
  3199. ?set mx2tics
  3200. ?set nomx2tics
  3201. ?show mx2tics
  3202. ?mx2tics
  3203. ?nomx2tics
  3204.  Minor tic marks along the x2 (top) axis are controlled by `set mx2tics`.
  3205.  Please see `set mxtics`.
  3206. ?set mxtics
  3207. ?set nomxtics
  3208. ?show mxtics
  3209. ?mxtics
  3210. ?nomxtics
  3211.  Minor tic marks along the x axis are controlled by `set mxtics`.  They can be
  3212.  turned off with `set nomxtics`.  Similar commands control minor tics along
  3213.  the other axes.
  3214.  
  3215.  Syntax:
  3216.        set mxtics {<freq> | default}
  3217.        set nomxtics
  3218.        show mxtics
  3219.  
  3220.  The same syntax applies to `mytics`, `mztics`, `mx2tics` and `my2tics`.
  3221.  
  3222.  <freq> is the number of sub-intervals (NOT the number of minor tics) between
  3223.  major tics (ten is the default for a linear axis, so there are nine minor
  3224.  tics between major tics). Selecting `default` will return the number of minor
  3225.  ticks to its default value.
  3226.  
  3227.  If the axis is logarithmic, the number of sub-intervals will be set to a
  3228.  reasonable number by default (based upon the length of a decade).  This will
  3229.  be overridden if <freq> is given.  However the usual minor tics (2, 3, ...,
  3230.  8, 9 between 1 and 10, for example) are obtained by setting <freq> to 10,
  3231.  even though there are but nine sub-intervals.
  3232.  
  3233.  Minor tics can be used only with uniformly spaced major tics.  Since major
  3234.  tics can be placed arbitrarily by `set {x|x2|y|y2|z}tics`, minor tics cannot
  3235.  be used if major tics are explicitly `set`.
  3236.  
  3237.  By default, minor tics are off for linear axes and on for logarithmic axes.
  3238.  They inherit the settings for `axis|border` and `{no}mirror` specified for
  3239.  the major tics.  Please see `set xtics` for information about these.
  3240. ?set my2tics
  3241. ?set nomy2tics
  3242. ?show my2tics
  3243. ?my2tics
  3244. ?nomy2tics
  3245.  Minor tic marks along the y2 (right-hand) axis are controlled by `set
  3246.  my2tics`.  Please see `set mxtics`.
  3247. ?set mytics
  3248. ?set nomytics
  3249. ?show mytics
  3250. ?mytics
  3251. ?nomytics
  3252.  Minor tic marks along the y axis are controlled by `set mytics`.  Please
  3253.  see `set mxtics`.
  3254. ?set mztics
  3255. ?set nomztics
  3256. ?show mztics
  3257. ?mztics
  3258. ?nomztics
  3259.  Minor tic marks along the z axis are controlled by `set mztics`.  Please
  3260.  see `set mxtics`.
  3261. ?set offsets
  3262. ?set nooffsets
  3263. ?show offsets
  3264. ?offsets
  3265. ?nooffsets
  3266.  Offsets provide a mechanism to put a boundary around the data inside of an
  3267.  autoscaled graph.
  3268.  
  3269.  Syntax:
  3270.        set offsets <left>, <right>, <top>, <bottom>
  3271.        set nooffsets
  3272.        show offsets
  3273.  
  3274.  Each offset may be a constant or an expression.  Each defaults to 0.  Left
  3275.  and right offsets are given in units of the x axis, top and bottom offsets in
  3276.  units of the y axis.  A positive offset expands the graph in the specified
  3277.  direction, e.g., a positive bottom offset makes ymin more negative.  Negative
  3278.  offsets, while permitted, can have unexpected interactions with autoscaling
  3279.  and clipping.
  3280.  
  3281.  Offsets are ignored in `splot`s.
  3282.  
  3283.  Example:
  3284.        set offsets 0, 0, 2, 2
  3285.        plot sin(x)
  3286.  
  3287.  This graph of sin(x) will have a y range [-3:3] because the function
  3288.  will be autoscaled to [-1:1] and the vertical offsets are each two.
  3289. ?set origin
  3290. ?show origin
  3291. ?origin
  3292.  The `set origin` command is used to specify the origin of a plotting surface
  3293.  (i.e., the graph and its margins) on the screen.  The coordinates are given
  3294.  in the `screen` coordinate system (see `coordinates` for information about
  3295.  this system).
  3296.  
  3297.  Syntax:
  3298.        set origin <x-origin>,<y-origin>
  3299. ?set output
  3300. ?show output
  3301. ?output
  3302.  By default, screens are displayed to the standard output. The `set output`
  3303.  command redirects the display to the specified file or device.
  3304.  
  3305.  Syntax:
  3306.        set output {"<filename>"}
  3307.        show output
  3308.  
  3309.  The filename must be enclosed in quotes.  If the filename is omitted, any
  3310.  output file opened by a previous invocation of `set output` will be closed
  3311.  and new output will be sent to STDOUT.  (If you give the command `set output
  3312.  "STDOUT"`, your output may be sent to a file named "STDOUT"!  ["May be", not
  3313.  "will be", because some terminals, like `x11`, ignore `set output`.])
  3314.  
  3315.  MSDOS users should note that the \ character has special significance in
  3316.  double-quoted strings, so single-quotes should be used for filenames in
  3317.  different directories.
  3318.  
  3319.  When both `set terminal` and `set output` are used together, it is safest to
  3320.  give `set terminal` first, because some terminals set a flag which is needed
  3321.  in some operating systems.  This would be the case, for example, if the
  3322.  operating system needs to know whether or not a file is to be formatted in
  3323.  order to open it properly.
  3324.  
  3325.  On machines with popen functions (Unix), output can be piped through a shell
  3326.  command if the first character of the filename is '|'.  For instance,
  3327.  
  3328.        set output "|lpr -Plaser filename"
  3329.        set output "|lp -dlaser filename"
  3330.  
  3331.  On MSDOS machines, `set output "PRN"` will direct the output to the default
  3332.  printer.  On VMS, output can be sent directly to any spooled device.  It is
  3333.  also possible to send the output to DECnet transparent tasks, which allows
  3334.  some flexibility.
  3335. ?set parametric
  3336. ?set noparametric
  3337. ?show parametric
  3338. ?parametric
  3339. ?noparametric
  3340.  The `set parametric` command changes the meaning of `plot` (`splot`) from
  3341.  normal functions to parametric functions.  The command `set noparametric`
  3342.  restores the plotting style to normal, single-valued expression plotting.
  3343.  
  3344.  Syntax:
  3345.        set parametric
  3346.        set noparametric
  3347.        show parametric
  3348.  
  3349.  For 2-d plotting, a parametric function is determined by a pair of parametric
  3350.  functions operating on a parameter.  An example of a 2-d parametric function
  3351.  would be `plot sin(t),cos(t)`, which draws a circle (if the aspect ratio is
  3352.  set correctly---see `set size`).  `gnuplot` will display an error message if
  3353.  both functions are not provided for a parametric `plot`.
  3354.  
  3355.  For 3-d plotting, the surface is described as x=f(u,v), y=g(u,v), z=h(u,v).
  3356.  Therefore a triplet of functions is required.  An example of a 3-d parametric
  3357.  function would be `cos(u)*cos(v),cos(u)*sin(v),sin(u)`, which draws a sphere.
  3358.  `gnuplot` will display an error message if all three functions are not
  3359.  provided for a parametric `splot`.
  3360.  
  3361.  The total set of possible plots is a superset of the simple f(x) style plots,
  3362.  since the two functions can describe the x and y values to be computed
  3363.  separately.  In fact, plots of the type t,f(t) are equivalent to those
  3364.  produced with f(x) because the x values are computed using the identity
  3365.  function.  Similarly, 3-d plots of the type u,v,f(u,v) are equivalent to
  3366.  f(x,y).
  3367.  
  3368.  Note that the order the parametric functions are specified is xfunction,
  3369.  yfunction (and zfunction) and that each operates over the common parametric
  3370.  domain.
  3371.  
  3372.  Also, the `set parametric` function implies a new range of values.  Whereas
  3373.  the normal f(x) and f(x,y) style plotting assume an xrange and yrange (and
  3374.  zrange), the parametric mode additionally specifies a trange, urange, and
  3375.  vrange.  These ranges may be set directly with `set trange`, `set urange`,
  3376.  and `set vrange`, or by specifying the range on the `plot` or `splot`
  3377.  commands.  Currently the default range for these parametric variables is
  3378.  [-5:5].  Setting the ranges to something more meaningful is expected.
  3379. ?set pointsize
  3380. ?show pointsize
  3381. ?pointsize
  3382.  The `set pointsize` command changes the size of the points used in plots.
  3383.  
  3384.  Syntax:
  3385.        set pointsize <pointsize>
  3386.        show pointsize
  3387.  
  3388.  Default is pointsize 1.0.  Larger pointsizes (>1.0) are useful for high
  3389.  resolution in bitmapped graphics.
  3390.  
  3391.  The pointsize of a single plot may be changed on the `plot` command.  See
  3392.  `plot with` for details.
  3393.  
  3394.  Please note that the pointsize setting is not supported with all terminal
  3395.  types.
  3396. ?set polar
  3397. ?set nopolar
  3398. ?show polar
  3399. ?polar
  3400. ?nopolar
  3401.  The `set polar` command changes the meaning of the graph from rectangular
  3402.  coordinates to polar coordinates.
  3403.  
  3404.  Syntax:
  3405.        set polar
  3406.        set nopolar
  3407.        show polar
  3408.  
  3409.  There have been changes made to polar mode in version 3.6, so that scripts
  3410.  for `gnuplot` versions 3.5 and earlier will require modification.  The main
  3411.  change is that the dummy variable t is used for the angle so that the x and
  3412.  y ranges can be controlled independently.  Other changes are:
  3413.  1) tics are no longer put along the zero axes automatically
  3414.  ---use `set xtics axis nomirror`; `set ytics axis nomirror`; 
  3415.  2) the grid, if selected, is not automatically polar
  3416.  ---use `set grid polar`; 
  3417.  3) the grid is not labelled with angles
  3418.  ---use `set label` as necessary.
  3419.  
  3420.  In polar coordinates, the dummy variable (t) is an angle.  The default range
  3421.  of t is [0:2*pi], or, if degree units have been selected, to [0:360] (see
  3422.  `set angles`).
  3423.  
  3424.  The command `set nopolar` changes the meaning of the graph back to the
  3425.  default rectangular coordinate system.
  3426.  
  3427.  The `set polar` command is not supported for `splot`s.  See the `set mapping`
  3428.  command for similar functionality for `splot`s.
  3429.  
  3430.  While in polar coordinates the meaning of an expression in t is really
  3431.  r = f(t), where t is an angle of rotation.  The trange controls the domain
  3432.  (the angle) of the function, and the x and y ranges control the range of the
  3433.  graph in the x and y directions.  Each of these ranges, as well as the
  3434.  rrange, may be autoscaled or set explicitly.  See `set xrange` for details
  3435.  of all the `set range` commands.
  3436.  
  3437.  Example:
  3438.        set polar
  3439.        plot t*sin(t)
  3440.        plot [-2*pi:2*pi] [-3:3] [-3:3] t*sin(t)
  3441.  
  3442.  The first `plot` uses the default polar angular domain of 0 to 2*pi.  The
  3443.  radius and the size of the graph are scaled automatically.  The second `plot`
  3444.  expands the domain, and restricts the size of the graph to [-3:3] in both
  3445.  directions.
  3446.  
  3447.  You may want to `set size square` to have `gnuplot` try to make the aspect
  3448.  ratio equal to unity, so that circles look circular.
  3449. ?set rmargin
  3450. ?rmargin
  3451.  The command `set rmargin` sets the size of the right margin.  Please see
  3452.  `set margin` for details.
  3453. ?set rrange
  3454. ?show rrange
  3455. ?rrange
  3456.  The `set rrange` command sets the range of the radial coordinate for a
  3457.  graph in polar mode.  Please see `set xrange` for details.
  3458. ?set samples
  3459. ?show samples
  3460. ?samples
  3461.  The sampling rate of functions may be changed by the `set samples` command.
  3462.  
  3463.  Syntax:
  3464.        set samples <samples_1> {,<samples_2>}
  3465.        show samples
  3466.  
  3467.  By default, sampling is set to 100 points.  A higher sampling rate will
  3468.  produce more accurate plots, but will take longer.  This parameter has no
  3469.  effect on data-file plotting unless one of the `smooth` options is used.
  3470.  
  3471.  When a 2-d graph is being done, only the value of <samples_1> is relevant.
  3472.  
  3473.  When a surface plot is being done without the removal of hidden lines, the
  3474.  value of samples specifies the number of samples that are to be evaluated for
  3475.  isoline.  Each iso-v line will have <sample_1> samples and each iso-u line
  3476.  will have <sample_2> samples.  If you only specify <samples_1>, <samples_2>
  3477.  will be set to the same value as <samples_1>.  See also `set isosamples`.
  3478. ?set size
  3479. ?show size
  3480. ?size
  3481.  The `set size` command scales the displayed size of the graph.
  3482.  
  3483.  Syntax:
  3484.        set size {{no}square | ratio <r> | noratio} {<xscale>,<yscale>}
  3485.        show size
  3486.  
  3487.  The <xscale> and <yscale> values are the scaling factors for the size of the
  3488.  plotting area, which includes the margins.
  3489.  
  3490.  `ratio` causes `gnuplot` to try to create a graph with an aspect ratio of <r>
  3491.  (the ratio of the y-axis length to the x-axis length) within the portion of
  3492.  the plotting area specified by <xscale> and <yscale>.
  3493.  
  3494.  The meaning of a negative value for <r> is different.  If <r>=-1, gnuplot
  3495.  tries to set the scales so that the unit has the same length on both the x
  3496.  and y axes (suitable for geographical data, for instance).  If <r>=-2, the
  3497.  unit on y has twice the length of the unit on x, and so on.
  3498.  
  3499.  The success of `gnuplot` in producing the requested aspect ratio depends on
  3500.  the terminal selected.  The graph area will be the largest rectangle of
  3501.  aspect ratio <r> that will fit into the specified portion of the output
  3502.  (leaving adequate margins, of course).
  3503.  
  3504.  `square` is a synonym for `ratio 1`.
  3505.  
  3506.  Both `noratio` and `nosquare` return the graph to its default aspect ratio
  3507.  (1.0), but do not return <xscale> or <yscale> to their default values (also
  3508.  1.0).
  3509.  
  3510.  `ratio` and `square` have no effect on 3-d plots.
  3511.  
  3512.  `set size` is relative to the default size, which differs from terminal to
  3513.  terminal.  Since `gnuplot` fills as much of the available plotting area as
  3514.  possible by default, it is safer to use `set size` to decrease the size of
  3515.  a graph than to increase it.  See `set terminal` for the default sizes.
  3516.  
  3517.  On some terminals, changing the size of the graph will result in text being
  3518.  misplaced.
  3519.  
  3520.  Examples:
  3521.  
  3522.  To set the size to normal size use:
  3523.        set size 1,1
  3524.  
  3525.  To make the graph half size and square use:
  3526.        set size square 0.5,0.5
  3527.  
  3528.  To make the graph twice as high as wide use:
  3529.        set size ratio 2
  3530.  
  3531. ?set function style
  3532. ?show function style
  3533. ?set data style
  3534. ?show data style
  3535. ?set style
  3536. ?show style
  3537.  Default styles are chosen with the `set function style` and `set data style`
  3538.  commands.  See `plot with` for information about how to override the default
  3539.  plotting style for individual functions and data sets.
  3540.  
  3541.  Syntax:
  3542.        set function style <style>
  3543.        set data style <style>
  3544.        show function style
  3545.        show data style
  3546.  
  3547.  The types used for all line and point styles (i.e., solid, dash-dot, color,
  3548.  etc. for lines; circles, squares, crosses, etc. for points) will be either
  3549.  those specified on the `plot` or `splot` command or will be chosen
  3550.  sequentially from the types available to the terminal in use.  Use the
  3551.  command `test` to see what is available.
  3552.  
  3553.  None of the styles requiring more than two columns of information (e.g.,
  3554.  `errorbars`) can be used with `splot`s or function `plot`s.  Neither `boxes`
  3555.  nor any of the `steps` styles can be used with `splot`s.  If an inappropriate
  3556.  style is specified, it will be changed to `points`.
  3557.  
  3558.  For 2-d data with more than two columns, `gnuplot` is picky about the allowed
  3559.  `errorbar` styles.  The `using` option on the `plot` command can be used to
  3560.  set up the correct columns for the style you want.  (In this discussion,
  3561.  "column" will be used to refer both to a column in the data file and an entry
  3562.  in the `using` list.)
  3563.  
  3564.  For three columns, only `xerrorbars`, `yerrorbars` (or `errorbars`), `boxes`,
  3565.  and `boxerrorbars` are allowed.  If another plot style is used, the style
  3566.  will be changed to `yerrorbars`.  The `boxerrorbars` style will calculate the
  3567.  boxwidth automatically.
  3568.  
  3569.  For four columns, only `xerrorbars`, `yerrorbars` (or `errorbars`),
  3570.  `xyerrorbars`, `boxxyerrorbars`, and `boxerrorbars` are allowed.  An illegal
  3571.  style will be changed to `yerrorbars`.
  3572.  
  3573.  Five-column data allow only the `boxerrorbars`, `financebars`, and
  3574.  `candlesticks` styles.  (The last two of these are primarily used for plots
  3575.  of financial prices.)  An illegal style will be changed to `boxerrorbars`
  3576.  before plotting.
  3577.  
  3578.  Six- and seven-column data only allow the `xyerrorbars` and `boxxyerrorbars`
  3579.  styles.  Illegal styles will be changed to `xyerrorbars` before plotting.
  3580.  
  3581.  For more information about error bars, please see `plot errorbars`.
  3582. ?set style boxerrorbars
  3583. ?style boxerrorbars
  3584. ?boxerrorbars
  3585.  The `boxerrorbars` style is only relevant to 2-d data plotting.  It is a
  3586.  combination of the `boxes` and `yerrorbars` styles.  The boxwidth will come
  3587.  from the fourth column if the y errors are in the form of "ydelta" and the
  3588.  boxwidth was not previously set equal to -2.0 (`set boxwidth -2.0`) or from
  3589.  the fifth column if the y errors are in the form of "ylow yhigh".  The
  3590.  special case  `boxwidth = -2.0` is for four-column data with y errors in the
  3591.  form "ylow yhigh".  In this case the boxwidth will be calculated so that each
  3592.  box touches the adjacent boxes.  The width will also be calculated in cases
  3593.  where three-column data are used.
  3594.  
  3595.  The box height is determined from the y error in the same way as it is for
  3596.  the `yerrorbars` style---either from y-ydelta to y+ydelta or from ylow to
  3597.  yhigh, depending on how many data columns are provided.
  3598. ?set style boxes
  3599. ?style boxes
  3600. ?boxes
  3601. ?set style bargraph
  3602. ?style bargraph
  3603. ?bargraph
  3604.  The `boxes` style is only relevant to 2-d plotting.  It draws a box centered
  3605.  about the given x coordinate from the x axis (not the graph border) to the
  3606.  given y coordinate.  The width of the box is obtained in one of three ways.
  3607.  If it is a data plot and the data file has a third column, this will be used
  3608.  to set the width of the box.  If not, if a width has been set using the `set
  3609.  boxwidth` command, this will be used.  If neither of these is available, the
  3610.  width of each box will be calculated automatically so that it touches the
  3611.  adjacent boxes.
  3612. ?set style boxxyerrorbars
  3613. ?style boxxyerrorbars
  3614. ?boxxyerrorbars
  3615.  The `boxxyerrorbars` style is only relevant to 2-d data plotting.  It is a
  3616.  combination of the `boxes` and `xyerrorbars` styles.
  3617.  
  3618.  The box width and height are determined from the x and y errors in the same
  3619.  way as they are for the `xyerrorbars` style---either from xlow to xhigh and
  3620.  from ylow to yhigh, or from x-xdelta to x+xdelta and from y-ydelta to
  3621.  y+ydelta , depending on how many data columns are provided.
  3622. ?set style candlesticks
  3623. ?style candlesticks
  3624. ?candlesticks
  3625.  The `candlesticks` style is only relevant for 2-d data plotting of financial
  3626.  data.  Five columns of data are required; in order, these should be the x
  3627.  coordinate (most likely a date) and the opening, low, high, and closing
  3628.  prices.  The symbol is an open rectangle, centered horizontally at the x
  3629.  coordinate and limited vertically by the opening and closing prices.  A
  3630.  vertical line segment at the x coordinate extends up from the top of the
  3631.  rectangle to the high price and another down to the low.  The width of the
  3632.  rectangle may be changed by `set bar`.  The symbol will be unchanged if the
  3633.  low and high prices are interchanged or if the opening and closing prices
  3634.  are interchanged.  See `set bar` and `financebars`.
  3635. ?set style dots
  3636. ?style dots
  3637. ?dots
  3638.  The `dots` style plots a tiny dot at each point; this is useful for scatter
  3639.  plots with many points.
  3640. ?set style financebars
  3641. ?style financebars
  3642. ?financebars
  3643.  The `financebars` style is only relevant for 2-d data plotting of financial
  3644.  data.  Five columns of data are required; in order, these should be the x
  3645.  coordinate (most likely a date) and the opening, low, high, and closing
  3646.  prices.  The symbol is a vertical line segment, located horizontally at the x
  3647.  coordinate and limited vertically by the high and low prices.  A horizontal
  3648.  tic on the left marks the opening price and one on the right marks the
  3649.  closing price.  The length of these tics may be changed by `set bar`.  The
  3650.  symbol will be unchanged if the high and low prices are interchanged.  See
  3651.  `set bar` and `candlesticks`.
  3652. ?set style fsteps
  3653. ?style fsteps
  3654. ?fsteps
  3655.  The `fsteps` style is only relevant to 2-d plotting.  It connects consecutive
  3656.  points with two line segments: the first from (x1,y1) to (x1,y2) and the
  3657.  second from (x1,y2) to (x2,y2).
  3658. ?set style histeps
  3659. ?style histeps
  3660. ?histeps
  3661.  The `histeps` style is only relevant to 2-d plotting.  It is intended for
  3662.  plotting histograms.  Y-values are assumed to be centered at the x-values;
  3663.  the point at x1 is represented as a horizontal line from ((x0+x1)/2,y1) to
  3664.  ((x1+x2)/2,y1).  The lines representing the end points are extended so that
  3665.  the step is centered on at x.  Adjacent points are connected by a vertical
  3666.  line at their average x, that is, from ((x1+x2)/2,y1) to ((x1+x2)/2,y2).
  3667.  
  3668.  If `autoscale` is in effect, it selects the xrange from the data rather than
  3669.  the steps, so the end points will appear only half as wide as the others.
  3670.  
  3671.  `histeps` is only a plotting style; `gnuplot` does not have the ability to
  3672.  create bins and determine their population from some data set.
  3673. ?set style impulses
  3674. ?style impulses
  3675. ?impulses
  3676.  The `impulses` style displays a vertical line from the x axis (not the graph
  3677.  border), or from the grid base for `splot`, to each point.
  3678. ?set style lines
  3679. ?style lines
  3680. ?lines
  3681.  The `lines` style connects adjacent points with straight line segments.
  3682. ?set style linespoints
  3683. ?set style lp
  3684. ?style linespoints
  3685. ?style lp
  3686. ?linespoints
  3687. ?lp
  3688.  The `linespoints` style does both `lines` and `points`, that is, it draws a
  3689.  small symbol at each point and then connects adjacent points with straight
  3690.  line segments.  The command `set pointsize` may be used to change the size of
  3691.  the points.  See `set pointsize` for its usage.
  3692.  
  3693.  `linespoints` may be abbreviated `lp`.
  3694. ?set style points
  3695. ?style points
  3696. ?points
  3697.  The `points` style displays a small symbol at each point.  The command `set
  3698.  pointsize` may be used to change the size of the points.  See `set pointsize`
  3699.  for its usage.
  3700. ?set style steps
  3701. ?style steps
  3702. ?steps
  3703.  The `steps` style is only relevant to 2-d plotting.  It connects consecutive
  3704.  points with two line segments: the first from (x1,y1) to (x2,y1) and the
  3705.  second from (x2,y1) to (x2,y2).
  3706. ?set style vector
  3707. ?style vector
  3708. ?vector
  3709.  The `vector` style draws a vector from (x,y) to (x+xdelta,y+ydelta).  Thus
  3710.  it requires four columns of data.  It also draws a small arrowhead at the
  3711.  end of the vector.
  3712.  
  3713.  The `vector` style is still experimental: it doesn't get clipped properly
  3714.  and other things may also be wrong with it.  Use it at your own risk.
  3715. ?set style xerrorbars
  3716. ?style xerrorbars
  3717. ?xerrorbars
  3718.  The `xerrorbars` style is only relevant to 2-d data plots.  `xerrorbars` is
  3719.  like `dots`, except that a horizontal error bar is also drawn.  At each point
  3720.  (x,y), a line is drawn from (xlow,y) to (xhigh,y) or from (x-xdelta,y) to
  3721.  (x+xdelta,y), depending on how many data columns are provided.  A tic mark
  3722.  is placed at the ends of the error bar (unless `set bar` is used---see `set
  3723.  bar` for details).
  3724. ?set style xyerrorbars
  3725. ?style xyerrorbars
  3726. ?xyerrorbars
  3727.  The `xyerrorbars` style is only relevant to 2-d data plots.  `xyerrorbars` is
  3728.  like `dots`, except that horizontal and vertical error bars are also drawn.
  3729.  At each point (x,y), lines are drawn from (x,y-ydelta) to (x,y+ydelta) and
  3730.  from (x-xdelta,y) to (x+xdelta,y) or from (x,ylow) to (x,yhigh) and from
  3731.  (xlow,y) to (xhigh,y), depending upon the number of data columns provided.  A
  3732.  tic mark is placed at the ends of the error bar (unless `set bar` is
  3733.  used---see `set bar` for details).
  3734.  
  3735.  If data are provided in an unsupported mixed form, the `using` filter on the
  3736.  `plot` command should be used to set up the appropriate form.  For example,
  3737.  if the data are of the form (x,y,xdelta,ylow,yhigh), then you can use
  3738.  
  3739.        plot 'data' using 1:2:($1-$3),($1+$3),4,5 with xyerrorbars
  3740. ?set style yerrorbars
  3741. ?style yerrorbars
  3742. ?yerrorbars
  3743. ?set style errorbars
  3744. ?style errorbars
  3745. ?errorbars
  3746.  The `yerrorbars` (or `errorbars`) style is only relevant to 2-d data plots.
  3747.  `yerrorbars` is like `dots`, except that a vertical error bar is also drawn.
  3748.  At each point (x,y), a line is drawn from (x,y-ydelta) to (x,y+ydelta) or
  3749.  from (x,ylow) to (x,yhigh), depending on how many data columns are provided.
  3750.  A tic mark is placed at the ends of the error bar (unless `set bar` is
  3751.  used---see `set bar` for details).
  3752. ?set surface
  3753. ?set nosurface
  3754. ?show surface
  3755. ?surface
  3756. ?nosurface
  3757.  The command `set surface` controls the display of surfaces, which are drawn
  3758.  as a mesh of isolines.
  3759.  
  3760.  Syntax:
  3761.        set surface
  3762.        set nosurface
  3763.        show surface
  3764.  
  3765.  Whenever `set nosurface` is issued, no surface isolines/mesh will be drawn.
  3766.  This is useful if contours are to be displayed by themselves.  See also `set
  3767.  contour`.
  3768. ?set terminal
  3769. ?set term
  3770. ?show terminal
  3771. ?terminal
  3772. ?term
  3773.  `gnuplot` supports many different graphics devices.  Use `set terminal` to
  3774.  tell `gnuplot` what kind of output to generate.
  3775.  
  3776.  Syntax:
  3777.        set terminal {<terminal-type>}
  3778.        show terminal
  3779.  
  3780.  If <terminal-type> is omitted, `gnuplot` will list the available terminal
  3781.  types.  <terminal-type> may be abbreviated.
  3782.  
  3783.  Use `set output` to redirect this output to a file or device.
  3784.  
  3785.  If both `set terminal` and `set output` are used together, it is safest to
  3786.  give `set terminal` first, because some terminals set a flag which is needed
  3787.  in some operating systems.
  3788.  
  3789.  Several terminals have additional options.  For example, see `dumb`,
  3790.  `iris4d`, `hpljii` or `postscript`.
  3791.  
  3792.  This document may describe drivers that are not available to you because they
  3793.  were not installed, or it may not describe all the drivers that are available
  3794.  to you, depending on its output format.
  3795. ?set terminal macintosh
  3796. ?set term macintosh
  3797. ?terminal macintosh
  3798. ?term macintosh
  3799. ?macintosh
  3800.  Several options may be set in the 'macintosh' driver.
  3801.  
  3802.  Syntax:
  3803.       set terminal macintosh {gx | nogx} {singlewin | multiwin} {vertical | novertical} {size <width>, <height> | default}
  3804.  
  3805.  'gx' and 'nogx' enable and disable QuickDraw GX output respectively.
  3806.  'singlewin' limits the output to a single window and is useful for animations.
  3807.  'multiwin' allows multiple windows.
  3808.  'vertical' is only valid under the gx option. With this option, rotated text
  3809.      be drawn vertically. novertical turns this option off.
  3810.   size <width>, <height> overrides the graph size set in the preferences
  3811.      dialog until it is cleared with either 'set term mac size default'
  3812.      or 'set term mac default'.
  3813.  
  3814.   'set term mac size default' sets the window size settings to those set in
  3815.      the preferences dialog.
  3816.   'set term mac default' sets all options to their default values.
  3817.      Default values: nogx, multiwin, novertical.
  3818.  
  3819.   If you generate graphs under the multiwin option and then switch to singlewin,
  3820.   the next plot command will cause one more window to be created. This new
  3821.   window will be reused as long as singlewin is in effect. If you switch back
  3822.   to multiwin, generate some graphs, and then switch to singlewin again, the
  3823.   orginal 'singlewin' window will be resused if it is still open. Otherwise
  3824.   a new 'singlewin' window will be created. The 'singlewin' window is not numbered.
  3825. ?set terminal aifm
  3826. ?set term aifm
  3827. ?terminal aifm
  3828. ?term aifm
  3829. ?aifm
  3830.  Several options may be set in `aifm`---the Adobe Illustrator 3.0+ driver.
  3831.  
  3832.  Syntax:
  3833.        set terminal aifm {<color>} {"<fontname>"} {<fontsize>}
  3834.  
  3835.  <color> is either `color` or `monochrome`; "<fontname>" is the name of a
  3836.  valid PostScript font; <fontsize> is the size of the font in PostScript
  3837.  points, before scaling by the `set size` command.  Selecting `default` sets
  3838.  all options to their default values: `monochrome`, "Helvetica", and 14pt.
  3839.  
  3840.  Since AI does not really support multiple pages, multiple graphs will be
  3841.  drawn directly on top of one another.  However, each graph will be grouped
  3842.  individually, making it easy to separate them inside AI (just pick them up
  3843.  and move them).
  3844.  
  3845.  Examples:
  3846.        set term aifm
  3847.        set term aifm 22
  3848.        set size 0.7,1.4; set term aifm color "Times-Roman" 14
  3849. ?set terminal cgm
  3850. ?set term cgm
  3851. ?terminal cgm
  3852. ?term cgm
  3853. ?cgm
  3854.  The `cgm` terminal generates a Computer Graphics Metafile.  This file format
  3855.  is a subset of the ANSI X3.122-1986 standard entitled "Computer Graphics -
  3856.  Metafile for the Storage and Transfer of Picture Description Information".
  3857.  Several options may be set in `cgm`.
  3858.  
  3859.  Syntax:
  3860.        set terminal cgm {<mode>} {<color>} {<rotation>}
  3861.                         {width <plot_width>} {linewidth <line_width>}
  3862.                         {"<font>"} {<fontsize>}
  3863.  
  3864.  where <mode> is `landscape`, `portrait`, or `default`;
  3865.  <color> is either `color` or `monochrome`; 
  3866.  <rotation> is either `rotate` or `norotate`;
  3867.  <plot_width> is the width of the page in points; 
  3868.  <line_width> is the line width in points; 
  3869.  <font> is the name of a font; and 
  3870.  `<fontsize>` is the size of the font in points.
  3871.  
  3872.  By default, `cgm` uses rotated text for the Y axis label.
  3873.  
  3874.  The first five options can be in any order.  Selecting `default` sets all
  3875.  options to their default values.
  3876.  
  3877.  Examples:
  3878.        set terminal cgm landscape color rotate width 432 linewidth 1 \
  3879.                       'Arial Bold' 12                  # defaults
  3880.        set terminal cgm 14 linewidth 2  14  # wider lines & larger font
  3881.        set terminal cgm portrait 'Times Roman Italic' 12
  3882. ?set terminal cgm font
  3883. ?set term cgm font
  3884. ?cgm font
  3885.  The first part of a Computer Graphics Metafile, the metafile description,
  3886.  includes a font table.  In the picture body, a font is designated by an
  3887.  index into this table.  By default, this terminal generates a table with
  3888.  the following fonts:
  3889.        Arial
  3890.        Arial Italic
  3891.        Arial Bold
  3892.        Arial Bold Italic
  3893.        Times Roman
  3894.        Times Roman Italic
  3895.        Times Roman Bold
  3896.        Times Roman Bold Italic
  3897.        Helvetica
  3898.        Roman
  3899.  Case is not distinct, but the modifiers must appear in the above order (that
  3900.  is, not 'Arial Italic Bold').  'Arial Bold' is the default font.
  3901.  
  3902.  You may also specify a font name which does not appear in the default font
  3903.  table.  In that case, a new font table is constructed with the specified
  3904.  font as its only entry.  You must ensure that the spelling, capitalization,
  3905.  and spacing of the name are appropriate for the application that will read
  3906.  the CGM file.
  3907. ?set terminal cgm fontsize
  3908. ?set term cgm fontsize
  3909. ?cgm fontsize
  3910.  Fonts are scaled assuming the page is 6 inches wide.  If the `size` command
  3911.  is used to change the aspect ratio of the page or the CGM file is converted
  3912.  to a different width (e.g. it is imported into a document in which the
  3913.  margins are not 6 inches apart), the resulting font sizes will be different.
  3914.  To change the assumed width, use the `width` option.
  3915. ?set terminal cgm linewidth
  3916. ?set term cgm linewidth
  3917. ?cgm linewidth
  3918.  The `linewidth` option sets the width of lines in pt.  The default width is
  3919.  1 pt.  Scaling is affected by the actual width of the page, as discussed
  3920.  under the `fontsize` and `width` options
  3921. ?set terminal cgm rotate
  3922. ?set term cgm rotate
  3923. ?cgm rotate
  3924.  The `norotate` option may be used to disable text rotation.  For example,
  3925.  the CGM input filter for Word for Windows 6.0c can accept rotated text, but
  3926.  the DRAW editor within Word cannot.  If you edit a graph (for example, to
  3927.  label a curve), all rotated text is restored to horizontal.  The Y axis
  3928.  label will then extend beyond the clip boundary.  With `norotate`, the Y
  3929.  axis label starts in a less attractive location, but the page can be edited
  3930.  without damage.  The `rotate` option confirms the default behavior.
  3931. ?set terminal cgm size
  3932. ?set term cgm size
  3933. ?scgm size
  3934.  Default size of a CGM page is 32599 units wide and 23457 units high for
  3935.  landscape, or 23457 units wide by 32599 units high for portrait.
  3936. ?set terminal cgm width
  3937. ?set term cgm width
  3938. ?cgm width
  3939.  All distances in the CGM file are in abstract units.  The application that
  3940.  reads the file determines the size of the final page.  By default, the width
  3941.  of the final page is assumed to be 6 inches (15.24 cm).  This distance is
  3942.  used to calculate the correct font size, and may be changed with the `width`
  3943.  option.  The keyword should be followed by the width in points.  (Here, a
  3944.  point is 1/72 inch, as in PostScript.  This unit is known as a "big point"
  3945.  in TeX.)  `gnuplot` arithmetic can be used to convert from other units, as
  3946.  follows:
  3947.        set terminal cgm width 432            # default
  3948.        set terminal cgm width 6*72           # same as above
  3949.        set terminal cgm width 10/2.54*72     # 10 cm wide
  3950. ?set terminal cgm winword6
  3951. ?set term cgm winword6
  3952. ?cgm winword6
  3953.  The default font table was chosen to match, where possible, the default font
  3954.  assignments made by the Computer Graphics Metafile input filter for
  3955.  Microsoft Word 6.0c, although the filter makes available only 'Arial' and
  3956.  'Times Roman' fonts and their bold and/or italic variants.  Other fonts such
  3957.  as 'Helvetica' and 'Roman' are not available.  If the CGM file includes a
  3958.  font table, the filter mostly ignores it.  However, it changes certain font
  3959.  assignments so that they disagree with the table.  As a workaround, the
  3960.  `winword6` option deletes the font table from the CGM file.  In this case,
  3961.  the filter makes predictable font assignments.  'Arial Bold' is correctly
  3962.  assigned even with the font table present, which is one reason it was chosen
  3963.  as the default.
  3964.  
  3965.  `winword6` disables the color tables for a similar reason---with the color
  3966.  table included, Microsoft Word displays black for color 7.
  3967. ?set terminal dumb
  3968. ?set term dumb
  3969. ?terminal dumb
  3970. ?term dumb
  3971. ?dumb
  3972.  The `dumb` terminal driver has an optional size specification and trailing
  3973.  linefeed control.
  3974.  
  3975.  Syntax:
  3976.        set terminal dumb {[no]feed} {<xsize> <ysize>}
  3977.  
  3978.  where <xsize> and <ysize> set the size of the dumb terminals. Default is
  3979.  79 by 24. The last newline is printed only if `feed` is enabled.
  3980.  
  3981.  Examples:
  3982.        set term dumb nofeed
  3983.        set term dumb 79 49 # VGA screen---why would anyone do that?
  3984. ?set terminal gif
  3985. ?set term gif
  3986. ?terminal gif
  3987. ?term gif
  3988. ?gif
  3989.  The `gif` terminal driver generates output in GIF format.  It must be linked
  3990.  with the "gd" library (link with "-Lterm/gd -lgd" if your directory structure
  3991.  is "gnuplot/term/gd").  "gd" cannot be distributed with `gnuplot` because of
  3992.  license problems.  Find out about "gd" from http://www.boutell.com/
  3993.  
  3994.  Syntax:
  3995.        set terminal gif {transparent} {interlace}
  3996.                         {small | medium | large}
  3997.                         {size <x>,<y>}
  3998.                         {<color0> <color1> <color2> ...}
  3999.  
  4000.  `transparent` instructs the driver to generate transparent GIFs.  The first
  4001.  color will be the transparent one.
  4002.  
  4003.  `interlace` instructs the driver to generate interlaced GIFs.
  4004.  
  4005.  The choice of fonts is `small` (6x12 pixels), `medium` (7x13 Bold) or `large`
  4006.  (8x16).
  4007.  
  4008.  The size <x,y> is given in pixels---it defaults to 640x480.  The number of
  4009.  pixels can be also modified by scaling with the `set size` command.
  4010.  
  4011.  Each color must be of the form 'xrrggbb', where x is the literal character
  4012.  'x' and 'rrggbb' are the red, green and blue components in hex.  For example,
  4013.  'x00ff00' is green.  The background color is set first, then the border
  4014.  colors, then the X & Y axis colors, then the plotting colors.  The maximum
  4015.  number of colors that can be set is 256.
  4016.  
  4017.  Examples:
  4018.        set terminal gif small size 640,480 \
  4019.                         xffffff x000000 x404040 \
  4020.                         xff0000 xffa500 x66cdaa xcdb5cd \
  4021.                         xadd8e6 x0000ff xdda0dd x9500d3    # defaults
  4022.  
  4023.  which uses white for the non-transparent background, black for borders, gray
  4024.  for the axes, and red, orange, medium aquamarine, thistle 3, light blue, blue,
  4025.  plum and dark violet for eight plotting colors.
  4026.  
  4027.        set terminal gif transparent xffffff \
  4028.                         x000000 x202020 x404040 x606060 \
  4029.                         x808080 xA0A0A0 xC0C0C0 xE0E0E0 \
  4030.  which uses white for the transparent background, black for borders, dark
  4031.  gray for axes, and a gray-scale for the six plotting colors.
  4032.  
  4033.  The page size is 640x480 pixels.  The `gif` driver can create either color
  4034.  or monochromatic output, but you have no control over which is produced.
  4035.  
  4036.  The current version of the `gif` driver does not support animated GIFs.
  4037. ?set terminal mif
  4038. ?set term mif
  4039. ?terminal mif
  4040. ?term mif
  4041. ?mif
  4042.  The `mif` terminal driver produces Frame Maker MIF format version 3.00.  It
  4043.  plots in MIF Frames with the size 15*10 cm, and plot primitives with the same
  4044.  pen will be grouped in the same MIF group.  Plot primitives in a `gnuplot`
  4045.  page will be plotted in a MIF Frame, and several MIF Frames are collected in
  4046.  one large MIF Frame.  The MIF font used for text is "Times".
  4047.  
  4048.  Several options may be set in the MIF 3.00 driver.
  4049.  
  4050.  Syntax:
  4051.        set terminal mif {colour | monochrome} {polyline | vectors}
  4052.                         {help | ?}
  4053.  
  4054.  `colour` plots lines with line types >= 0 in colour (MIF sep. 2--7) and
  4055.  `monochrome` plots all line types in black (MIF sep. 0).
  4056.  `polyline` plots curves as continuous curves and `vectors` plots curves as
  4057.  collections of vectors.
  4058.  `help` and `?` print online help on standard error output---both print a
  4059.  short description of the usage; `help` also lists the options;
  4060.  
  4061.  Examples:
  4062.        set term mif colour polylines    # defaults
  4063.        set term mif                     # defaults
  4064.        set term mif vectors
  4065.        set term mif help
  4066. ?set terminal pbm
  4067. ?set term pbm
  4068. ?terminal pbm
  4069. ?term pbm
  4070. ?pbm
  4071.  Several options may be set in the `pbm` terminal---the driver for PBMplus.
  4072.  
  4073.  Syntax:
  4074.        set terminal pbm {<fontsize>} {<mode>}
  4075.  
  4076.  where <fontsize> is `small`, `medium`, or `large` and <mode> is `monochrome`,
  4077.  `gray` or `color`.  The default plot size is 640 pixels wide and 480 pixels
  4078.  high; this may be changed by `set size`.
  4079.  
  4080.  The output of the `pbm` driver depends upon <mode>: `monochrome` produces a
  4081.  portable bitmap (one bit per pixel), `gray` a portable graymap (three bits
  4082.  per pixel) and `color` a portable pixmap (color, four bits per pixel).
  4083.  
  4084.  The output of this driver can be used with Jef Poskanzer's excellent PBMPLUS
  4085.  package, which provides programs to convert the above PBMPLUS formats to GIF,
  4086.  TIFF, MacPaint, Macintosh PICT, PCX, X11 bitmap and many others.
  4087.  
  4088.  Examples:
  4089.        set terminal pbm small monochrome             # defaults
  4090.        set size 2,2; set terminal pbm color medium
  4091. ?set terminal png
  4092. ?set term png
  4093. ?terminal png
  4094. ?term png
  4095. ?png
  4096.  The `png` terminal driver supports Portable Network Graphics.  To compile it,
  4097.  you will need  the third-party libraries "libpng" and "zlib"; both are
  4098.  available at ftp://ftp.uu.net/graphics/png.  `png` has two options.
  4099.  
  4100.  Syntax:
  4101.        set terminal png {small | medium | large}
  4102.                         {monochrome | gray | color}
  4103.  
  4104.  The defaults are small (fontsize) and monochrome.
  4105. ?set terminal postscript
  4106. ?set term postscript
  4107. ?terminal postscript
  4108. ?term postscript
  4109. ?postscript
  4110.  Several options may be set in the `postscript` driver.
  4111.  
  4112.  Syntax:
  4113.        set terminal postscript {<mode>} {color | monochrome}
  4114.                                {solid | dashed} {<duplexing>}
  4115.                                {enhanced | noenhanced}
  4116.                                {"<fontname>"} {<fontsize>}
  4117.  
  4118.  where <mode> is `landscape`, `portrait`, `eps` or `default`
  4119.  `solid` draws all plots with solid lines, overriding any dashed patterns;
  4120.  <duplexing> is `defaultplex`, `simplex` or `duplex` ("duplexing" in
  4121.  PostScript is the ability of the printer to print on both sides of the same
  4122.  page---don't set this if your printer can't do it);
  4123.  `enhanced` activates the "Enhanced PostScript" features (subscripts,
  4124.  superscripts and mixed fonts);
  4125.  `"<fontname>"` is the name of a valid PostScript font; and `<fontsize>` is
  4126.  the size of the font in PostScript points.
  4127.  
  4128.  `default` mode sets all options to their defaults: `landscape`, `monochrome`,
  4129.  `dashed`, `defaultplex`, `noenhanced`, "Helvetica" and 14pt.
  4130.   Default size of a PostScript plot is 10 inches wide and 7 inches high.
  4131.  
  4132.  `eps` mode generates EPS (Encapsulated PostScript) output, which is just
  4133.  regular PostScript with some additional lines that allow the file to be
  4134.  imported into a variety of other applications.  (The added lines are
  4135.  PostScript comment lines, so the file may still be printed by itself.)  To
  4136.  get EPS output, use the `eps` mode and make only one plot per file.  In `eps`
  4137.  mode the whole plot, including the fonts, is reduced to half of the default
  4138.  size.
  4139.  
  4140.  Examples:
  4141.        set terminal postscript default       # old postscript
  4142.        set terminal postscript enhanced      # old enhpost
  4143.        set terminal postscript landscape 22  # old psbig
  4144.        set terminal postscript eps 14        # old epsf1
  4145.        set terminal postscript eps 22        # old epsf2
  4146.        set size 0.7,1.4; set term post portrait color "Times-Roman" 14
  4147. ?set terminal postscript enhanced
  4148. ?set term postscript enhanced
  4149. ?terminal postscript enhanced
  4150. ?term postscript enhanced
  4151. ?enhanced postscript
  4152.   Control      Examples        Explanation
  4153.    ^           a^x             superscript
  4154.    _           a_x             subscript
  4155.    @           @x or a@^b_c    phantom box (occupies no width)
  4156.    &           &{space}        inserts space of specified length
  4157.  
  4158.  {text} can be used to allow multiple-character text, where only a single
  4159.  character is expected (e.g., 2^{10}).  To change the font and/or size, use
  4160.  the full form:  {/[fontname][=fontsize] text}   (For example, {/Symbol=20 G}
  4161.  is a 20 point GAMMA).  (The '/' character MUST be the first character after
  4162.  the '{'.)
  4163.  
  4164.  If the encoding vector has been changed by `set encoding`, the default
  4165.  encoding vector can be used instead by following the slash with a dash.  This
  4166.  is unnecessary if you use the Symbol font, however---since /Symbol uses its
  4167.  own encoding vector, `gnuplot` will not apply any other encoding vector to
  4168.  it.
  4169.  
  4170.  The phantom box is useful for a@^b_c to align superscripts and subscripts,
  4171.  and for overwriting an accent on a letter.  (The latter is tricky; it is much
  4172.  easier to use `set encoding iso_8859_1` to change to the ISO Latin-1 encoding
  4173.  vector, which contains a large variety of letters with accents or other
  4174.  diacritical marks.)  It is common sense to put the shorter of the two in the
  4175.  phantom box.
  4176.  
  4177.  Space equal in length to a string can be inserted using the '&' character.
  4178.  Thus
  4179.          'abc&{def}ghi'
  4180.  would produce
  4181.          'abc   ghi'.
  4182.  
  4183.  You can access special symbols numerically by specifying \character-code (in
  4184.  octal), e.g., {/Symbol \245} is the symbol for infinity.
  4185.  
  4186.  You can escape control characters using \, e.g.,  \\, \{, and so on.
  4187.  
  4188.  But be aware that strings in double-quotes are parsed differently than those
  4189.  enclosed in single-quotes.  The major difference is that backslashes may need
  4190.  to be doubled when in double-quoted strings.
  4191.  
  4192.  Examples (these are hard to describe in words---try them!):
  4193.        set xlabel 'Time (10^6 {/Symbol m}s)'
  4194.        set title '{/Symbol=18 \362@_{/=9.6 0}^{/=12 x}} \
  4195.                   {/Helvetica e^{-{/Symbol m}^2/2} d}{/Symbol m}'
  4196.  
  4197.  The file "ps_guide.ps" in the /docs subdirectory of the `gnuplot` source
  4198.  distribution contains more examples of the enhanced syntax.
  4199. ?set terminal table
  4200. ?set term table
  4201. ?terminal table
  4202. ?term table
  4203. ?table
  4204.  Instead of producing a picture, the `table` terminal prints out evaluation
  4205.  results in a multicolumn ASCII table of X Y Z values.  For those times when
  4206.  you really want to see the numbers, now you can see them on the screen or
  4207.  save to a file.  This can be useful if you want to use the contouring engine
  4208.  of `gnuplot` to work out the contours of your data and then save them for
  4209.  further use, perhaps for plotting with `plot`.  See `set contour` for an
  4210.  example.  The same trick can be used to save gridded data (`set dgrid3d`).
  4211. ?set terminal emtex
  4212. ?set term emtex
  4213. ?terminal emtex
  4214. ?term emtex
  4215. ?latex
  4216. ?set terminal latex
  4217. ?set term latex
  4218. ?terminal latex
  4219. ?term latex
  4220. ?emtex
  4221.  The `latex` and `emtex` drivers allow two options.
  4222.  
  4223.  Syntax:
  4224.        set terminal latex | emtex {courier | roman} {<fontsize>}
  4225.  
  4226.  `fontsize` may be any size you specify.  The default is 10-point Roman.
  4227.  
  4228.  Unless your driver is capable of building fonts at any size (e.g. dvips),
  4229.  stick to the standard 10, 11 and 12 point sizes.
  4230.  
  4231.  METAFONT users beware: METAFONT does not like odd sizes.
  4232. ?set terminal pslatex
  4233. ?set term pslatex
  4234. ?terminal pslatex
  4235. ?term pslatex
  4236. ?pslatex
  4237. ?set terminal pstex
  4238. ?set term pstex
  4239. ?terminal pstex
  4240. ?term pstex
  4241. ?pstex
  4242.  The `pslatex` and `pstex` drivers generate output for further processing by
  4243.  LaTeX and TeX, respectively.  Figures generated by `pstex` can be included
  4244.  in any plain-based format (including LaTeX).
  4245.  
  4246.  Syntax:
  4247.        set terminal pslatex | |pstex {<color>} {<dashed>} {<rotate>}
  4248.                                      {auxfile} {<font_size>}
  4249.  
  4250.  <color> is either `color` or `monochrome`.  <rotate> is either `rotate` or
  4251.  `norotate` and determines if the y-axis label is rotated.  <font_size> is
  4252.  used to scale the font from its usual size.
  4253.  
  4254.  If `auxfile` is specified, it directs the driver to put the PostScript
  4255.  commands into an auxiliary file instead of directly into the LaTeX file.
  4256.  This is useful if your pictures are large enough that dvips cannot handle
  4257.  them.  The name of the auxiliary PostScript file is derived from the name of
  4258.  the TeX file given on the `set output` command; it is determined by replacing
  4259.  the trailing `.tex` (actually just the final extent in the file name---and
  4260.  the option will be turned off if there is no extent) with `.ps` in the output
  4261.  file name.  Remember to close the file before leaving `gnuplot`.
  4262.  
  4263.  Examples:
  4264.        set term pslatex monochrome dashed rotate       # set to defaults
  4265.  To write the PostScript commands into the file "foo.ps":
  4266.        set term pslatex auxfile
  4267.        set output "foo.tex"; plot ...: set output
  4268. ?set terminal eepic
  4269. ?set term eepic
  4270. ?terminal eepic
  4271. ?term eepic
  4272. ?eepic
  4273.  The `eepic` terminal driver supports the extended LaTeX picture environment.
  4274.  It is an alternative to the `latex` driver.
  4275.  
  4276.  The output of this terminal is intended for use with the "eepic.sty" macro
  4277.  package for LaTeX.  To use it, you need "eepic.sty", "epic.sty" and a
  4278.  printer driver that supports the "tpic" \specials.  If your printer driver
  4279.  doesn't support those \specials, "eepicemu.sty" will enable you to use some
  4280.  of them.
  4281.  
  4282.  Although dotted and dashed lines are possible with `eepic` and are tempting,
  4283.  they do not work well for high-sample-rate curves, fusing the dashes all
  4284.  together into a solid line.  For now, the `eepic` driver creates only solid
  4285.  lines.  There is another gnuplot driver (`tpic`) that supports dashed lines,
  4286.  but it cannot be used if your DVI driver doesn't support "tpic" \specials.
  4287.  
  4288.  The `eepic` terminal has no options.
  4289. ?set terminal tpic
  4290. ?set term tpic
  4291. ?terminal tpic
  4292. ?term tpic
  4293. ?tpic
  4294.  The `tpic` terminal driver supports the LaTeX picture environment with tpic
  4295.  \specials.  It is an alternative to the `latex` and `eepic` terminal drivers.
  4296.  Options are the point size, line width, and dot-dash interval.
  4297.  
  4298.  Syntax:
  4299.        set terminal tpic <pointsize> <linewidth> <interval>
  4300.  
  4301.  where `pointsize` and `linewidth` are integers in milli-inches and `interval`
  4302.  is a float in inches.  If a non-positive value is specified, the default is
  4303.  chosen: pointsize = 40, linewidth = 6, interval = 0.1.
  4304. ?set terminal pstricks
  4305. ?set term pstricks
  4306. ?terminal pstricks
  4307. ?term pstricks
  4308. ?pstricks
  4309.  The `pstricks` driver is intended for use with the "pstricks.sty" macro
  4310.  package for LaTeX.  It is an alternative to the `eepic` and `latex` drivers.
  4311.  You need "pstricks.sty", and, of course, a printer that understands
  4312.  PostScript.  Ghostscript understands PostScript, too.
  4313.  
  4314.  PSTricks is available via anonymous ftp from the /pub directory at
  4315.  Princeton.EDU.  This driver definitely does not come close to using the full
  4316.  capability of the PSTricks package.
  4317.  
  4318.  Syntax:
  4319.        set terminal pstricks {hacktext | nohacktext} {unit | nounit}
  4320.  
  4321.  The first option invokes an ugly hack that gives nicer numbers; the second
  4322.  has to do with plot scaling.  The defaults are `hacktext` and `nounit`.
  4323. ?set terminal texdraw
  4324. ?set term texdraw
  4325. ?terminal texdraw
  4326. ?term texdraw
  4327. ?texdraw
  4328.  The `texdraw` terminal driver supports the LaTeX texdraw environment.  It is
  4329.  intended for use with "texdraw.sty" and "texdraw.tex" in the texdraw package.
  4330.   It has no options.
  4331. ?set terminal mf
  4332. ?set term mf
  4333. ?terminal mf
  4334. ?term mf
  4335. ?mf
  4336. ?metafont
  4337.  The `mf` terminal driver creates a input file to the METAFONT program.  Thus a
  4338.  figure may be used in the TeX document in the same way as is a character.
  4339.  
  4340.  To use a picture in a document, the METAFONT program must be run with the
  4341.  output file from `gnuplot` as input.  Thus, the user needs a basic knowledge
  4342.  of the font creating process and the procedure for including a new font in a
  4343.  document.  However, if the METAFONT program is set up properly at the local
  4344.  site, an unexperienced user could perform the operation without much trouble.
  4345.  
  4346.  The text support is based on a METAFONT character set.  Currently the
  4347.  Computer Modern Roman font set is input, but the user is in principal free to
  4348.  chose whatever fonts he or she needs.  The METAFONT source files for the
  4349.  chosen font must be available.  Each character is stored in a separate
  4350.  picture variable in METAFONT.  These variables may be manipulated (rotated,
  4351.  scaled etc.) when characters are needed.  The drawback is the interpretation
  4352.  time in the METAFONT program.  On some machines (i.e. PC) the limited amount
  4353.  of memory available may also cause problems if too many pictures are stored.
  4354.  
  4355.  The `mf` terminal has no options.
  4356. ?set terminal mf detailed
  4357. ?set term mf detailed
  4358. ?mf detailed
  4359. ?metafont detailed
  4360.  
  4361.  - Set your terminal to METAFONT:
  4362.    set terminal mf
  4363.  - Select an output-file, e.g.:
  4364.    set output "myfigures.mf"
  4365.  - Create your pictures. Each picture will generate a separate character. Its
  4366.  default size will be 5*3 inches. You can change the size by saying `set size
  4367.  0.5,0.5` or whatever fraction of the default size you want to have.
  4368.  
  4369.  - Quit `gnuplot`.
  4370.  
  4371.  - Generate a TFM and GF file by running METAFONT on the output of `gnuplot`.
  4372.  Since the picture is quite large (5*3 in), you will have to use a version of
  4373.  METAFONT that has a value of at least 150000 for memmax.  On Unix systems
  4374.  these are conventionally installed under the name bigmf.  For the following
  4375.  assume that the command virmf stands for a big version of METAFONT.  For
  4376.  example:
  4377.  
  4378.  - Invoke METAFONT:
  4379.      virmf '&plain'
  4380.  - Select the output device: At the METAFONT prompt ('*') type:
  4381.      \mode:=CanonCX;     % or whatever printer you use
  4382.  - Optionally select a magnification:
  4383.      mag:=1;             % or whatever you wish
  4384.  - Input the `gnuplot`-file:
  4385.      input myfigures.mf
  4386.  On a typical Unix machine there will usually be a script called "mf" that
  4387.  executes virmf '&plain', so you probably can substitute mf for virmf &plain.
  4388.  This will generate two files: mfput.tfm and mfput.$$$gf (where $$$ indicates
  4389.  the resolution of your device).  The above can be conveniently achieved by
  4390.  typing everything on the command line, e.g.:
  4391.  virmf '&plain' '\mode:=CanonCX; mag:=1; input myfigures.mf'
  4392.  In this case the output files will be named myfigures.tfm and
  4393.  myfigures.300gf.
  4394.  
  4395.  - Generate a PK file from the GF file using gftopk:
  4396.    gftopk myfigures.300gf myfigures.300pk
  4397.  The name of the output file for gftopk depends on the DVI driver you use.
  4398.  Ask your local TeX administrator about the naming conventions.  Next, either
  4399.  install the TFM and PK files in the appropriate directories, or set your
  4400.  environment variables properly.  Usually this involves setting TEXFONTS to
  4401.  include the current directory and doing the same thing for the environment
  4402.  variable that your DVI driver uses (no standard name here...).  This step is
  4403.  necessary so that TeX will find the font metric file and your DVI driver will
  4404.  find the PK file.
  4405.  
  4406.  - To include your pictures in your document you have to tell TeX the font:
  4407.    \font\gnufigs=myfigures
  4408.  Each picture you made is stored in a single character.  The first picture is
  4409.  character 0, the second is character 1, and so on...  After doing the above
  4410.  step, you can use the pictures just like any other characters.  Therefore, to
  4411.  place pictures 1 and 2 centered in your document, all you have to do is:
  4412.    \centerline{\gnufigs\char0}
  4413.    \centerline{\gnufigs\char1}
  4414.  in plain TeX.  For LaTeX you can, of course, use the picture environment and
  4415.  place the picture wherever you wish by using the \makebox and \put macros.
  4416.  
  4417.  This conversion saves you a lot of time once you have generated the font;
  4418.  TeX handles the pictures as characters and uses minimal time to place them,
  4419.  and the documents you make change more often than the pictures do.  It also
  4420.  saves a lot of TeX memory.  One last advantage of using the METAFONT driver
  4421.  is that the DVI file really remains device independent, because no \special
  4422.  commands are used as in the eepic and tpic drivers.
  4423. ?set tics
  4424. ?show tics
  4425. ?tics
  4426.  The `set tics` command can be used to change the tics to be drawn outwards.
  4427.  
  4428.  Syntax:
  4429.        set tics {<direction>}
  4430.        show tics
  4431.  
  4432.  where <direction> may be `in` (the default) or `out`.
  4433.  
  4434.  See also `set xtics` for more control of major (labelled) tic marks and `set
  4435.  mxtics` for control of minor tic marks.
  4436. ?set ticslevel
  4437. ?show ticslevel
  4438. ?ticslevel
  4439.  Using `splot`, one can adjust the relative height of the vertical (Z) axis
  4440.  using `set ticslevel`.  The numeric argument provided specifies the location
  4441.  of the bottom of the scale (as a fraction of the z-range) above the xy-plane.
  4442.  The default value is 0.5.  Negative values are permitted, but tic labels on
  4443.  the three axes may overlap.
  4444.  
  4445.  To place the xy-plane at a position 'pos' on the z-axis, `ticslevel` should
  4446.  be set equal to  (pos - zmin) / (zmin - zmax).
  4447.  
  4448.  Syntax:
  4449.        set ticslevel {<level>}
  4450.        show tics
  4451.  
  4452.  See also `set view`.
  4453. ?set ticscale
  4454. ?show ticscale
  4455. ?ticscale
  4456.  The size of the tic marks can be adjusted with `set ticscale`.
  4457.  
  4458.  Syntax:
  4459.        set ticscale {<major> {<minor>}}
  4460.        show tics
  4461.  
  4462.  If <minor> is not specified, it is 0.5*<major>.  The default size is 1.0 for
  4463.  major tics and 0.5 for minor tics.  Note that it is possible to have the tic
  4464.  marks pointing outward by specifying a negative size.
  4465. ?set timestamp
  4466. ?set time
  4467. ?set notimestamp
  4468. ?show timestamp
  4469. ?timestamp
  4470. ?notimestamp
  4471.  The command `set timestamp` places the time and date of the graph in the left
  4472.  margin of the graph.
  4473.  
  4474.  Syntax:
  4475.        set timestamp {"<format>"} {top|bottom} {{no}rotate}
  4476.                      {<xoff>}{,<yoff>} {"<font>"}
  4477.        set notimestamp
  4478.        show timestamp
  4479.  
  4480.  The format string allows you to choose the format used to write the date and
  4481.  time.  Its default value is what asctime() uses: "%a %b %d %H:%M:%S %Y"
  4482.  (weekday, month name, day of the month, hours, minutes, seconds, four-digit
  4483.  year).  With `top` or `bottom` you can place the timestamp at the top or
  4484.  bottom of the left margin (default: bottom).  `rotate` lets you write the
  4485.  timestamp vertically, if your terminal supports vertical text.  The constants
  4486.  <xoff> and <off> are offsets from the default position given in character
  4487.  screen coordinates.  <font> is used to specify the font with which the time
  4488.  is to be written.
  4489.  
  4490.  The abbreviation `time` may be used in place of `timestamp`.
  4491.  
  4492.  Example:
  4493.        set timestamp "%d/%m/%y %H:%M" 80,-2 "Helvetica"
  4494.  
  4495.  See `set timefmt` for more information about time format strings.
  4496. ?set timefmt
  4497. ?show timefmt
  4498. ?timefmt
  4499.  This command applies to timeseries where data are composed of dates/times.
  4500.  It has no meaning unless the command `set xdata time` is given also.
  4501.  
  4502.  Syntax:
  4503.        set timefmt "<format string>"
  4504.        show timefmt
  4505.  
  4506.  The string argument tells `gnuplot` how to read timedata from the datafile.
  4507.  Valid conversion codes are: %d (day of month, 1--31), %m (month, 1--12), %y
  4508.  (year, 0--99), %Y (year, 4 digits), %j (day of year, 1--365), %H (hour,
  4509.  0--24), %M (minute, 0--60), and %S (second, 0--60).  Any character is allowed
  4510.  in the string (including space), but must match exactly.  Backslash-octals
  4511.  (\nnn) are converted to char; \t (tab) is understood.  If there is no
  4512.  separating character between the date/time elements, then %d, %m, %y, %H, %M
  4513.  and %S read two digits each, %Y reads four digits and %j reads three digits.
  4514.  
  4515.  Each set of non-blank characters in the timedata counts as one column in the
  4516.  `using n:n` specification.  Thus `11:11  25/12/76  21.0` consists of three
  4517.  columns.  To avoid confusion, `gnuplot` requires that you provide a complete
  4518.  `using` specification if your file contains timedata.
  4519.  
  4520.  See also `set xdata` and `Time/date` for more information.
  4521.  
  4522.  Example:
  4523.        set timefmt "%d/%m/%Y\t%H:%M"
  4524.  tells `gnuplot` to read date and time separated by tab.  (But look closely at
  4525.  your data---what began as a tab may have been converted to spaces somewhere
  4526.  along the line; the format string must match what is actually in the file.)
  4527. ?set title
  4528. ?show title
  4529. ?title
  4530.  The `set title` command produces a graph title that is centered at the top of
  4531.  the graph.  `set title` is a special case of `set label`.
  4532.  
  4533.  Syntax:
  4534.        set title {"<title-text>"} {<xoff>}{,<yoff>} {"<font>,{<size>}"}
  4535.        show title
  4536.  
  4537.  Specifying constants <xoff> or <yoff> as optional offsets for the title will
  4538.  move the title <xoff> or <yoff> character screen coordinates (not graph
  4539.  coordinates).  For example, "`set title ,-1`" will change only the y offset
  4540.  of the title, moving the title down by roughly the height of one character.
  4541.  
  4542.  <font> is used to specify the font with which the title is to be written;
  4543.  the units of the font <size> depend upon which terminal is used.
  4544.  
  4545.  `set title` with no parameters clears the title.
  4546.  
  4547.  See `syntax` for details about the processing of backslash sequences and
  4548.  the distinction between single- and double-quotes.
  4549. ?set tmargin
  4550. ?tmargin
  4551.  The command `set tmargin` sets the size of the top margin.  Please see
  4552.  `set margin` for details.
  4553. ?set trange
  4554. ?show trange
  4555. ?trange
  4556.  The `set trange` command sets the parametric range used to compute x and y
  4557.  values when in parametric or polar modes.  Please see `set xrange` for
  4558.  details.
  4559. ?set urange
  4560. ?show urange
  4561. ?urange
  4562.  The `set urange` and `set vrange` commands set the parametric ranges used
  4563.  to compute x, y, and z values when in `splot` parametric mode.  Please see
  4564.  `set xrange` for details.
  4565. ?show variables
  4566.  The `show variables` command lists all user-defined variables and their
  4567.  values.
  4568.  
  4569.  Syntax:
  4570.        show variables
  4571. ?set view
  4572. ?show view
  4573. ?view
  4574.  The `set view` command sets the viewing angle for `splot`s.  It controls how
  4575.  the 3-d coordinates of the plot are mapped into the 2-d screen space.  It
  4576.  provides controls for both rotation and scaling of the plotted data, but
  4577.  supports orthographic projections only.
  4578.  
  4579.  Syntax:
  4580.        set view <rot_x> {,{<rot_z>}{,{<scale>}{,<scale_z>}}}
  4581.        show view
  4582.  
  4583.  where <rot_x> and <rot_z> control the rotation angles (in degrees) along a
  4584.  virtual 3-d coordinate system aligned with the screen such that the screen
  4585.  horizontal axis is x, screen vertical axis is y, and the axis perpendicular
  4586.  to the screen is z.  <rot_x> is bounded to the [0:180] range with a default
  4587.  of 60 degrees, while <rot_z> is bounded to the [0:360] range with a default
  4588.  of 30 degrees.  <scale> controls the scaling of the entire `splot`, while
  4589.  <scale_z> scales the z axis only.  Both scales default to 1.0.
  4590.  
  4591.  Examples:
  4592.        set view 60, 30, 1, 1
  4593.        set view ,,0.5
  4594.  
  4595.  The first sets all the four default values.  The second changes only scale,
  4596.  to 0.5.
  4597.  
  4598.  See also `set ticslevel`.
  4599. ?set vrange
  4600. ?show vrange
  4601. ?vrange
  4602.  The `set urange` and `set vrange` commands set the parametric ranges used
  4603.  to compute x, y, and z values when in `splot` parametric mode.  Please see
  4604.  `set xrange` for details.
  4605. ?set x2data
  4606. ?show x2data
  4607. ?x2data
  4608.  The `set x2data` command sets data on the x2 (top) axis to timeseries
  4609.  (dates/times).  Please see `set xdata`.
  4610. ?set x2dtics
  4611. ?set nox2dtics
  4612. ?show x2dtics
  4613. ?x2dtics
  4614. ?nox2dtics
  4615.  The `set x2dtics` command changes tics on the x2 (top) axis to days of the
  4616.  week.  Please see `set xmtics` for details.
  4617. ?set x2label
  4618. ?show x2label
  4619. ?x2label
  4620.  The `set x2label` command sets the label for the x2 (top) axis.  Please see
  4621.  `set xlabel`.
  4622. ?set x2mtics
  4623. ?set nox2mtics
  4624. ?show x2mtics
  4625. ?x2mtics
  4626. ?nox2mtics
  4627.  The `set x2mtics` command changes tics on the x2 (top) axis to months of the
  4628.  year.  Please see `set xmtics` for details.
  4629. ?set x2range
  4630. ?show x2range
  4631. ?x2range
  4632.  The `set x2range` command sets the horizontal range that will be displayed on
  4633.  the x2 (top) axis.  Please see `set xrange` for details.
  4634. ?set x2tics
  4635. ?set nox2tics
  4636. ?show x2tics
  4637. ?x2tics
  4638. ?nox2tics
  4639.  The `set x2tics` command controls major (labelled) tics on the x2 (top) axis.
  4640.  Please see `set xtics` for details.
  4641. ?set x2zeroaxis
  4642. ?set nox2zeroaxis
  4643. ?show x2zeroaxis
  4644. ?x2zeroaxis
  4645. ?nox2zeroaxis
  4646.  The `set x2zeroaxis` command draws a line at the origin of the x2 (top) axis
  4647.  (x2 = 0).  For details, please see
  4648.  `set zeroaxis`.
  4649. ?set xdata
  4650. ?show xdata
  4651. ?xdata
  4652.  This command sets the datatype on the x axis to date/time.  A similar command
  4653.  does the same thing for each of the other axes.
  4654.  
  4655.  Syntax:
  4656.        set xdata {time}
  4657.        show xdata
  4658.  
  4659.  The same syntax applies to `ydata`, `zdata`, `x2data` and `y2data`.
  4660.  
  4661.  The `time` option signals that the datatype is indeed date/time.  If the
  4662.  option is not specified, the datatype reverts to normal.
  4663.  
  4664.  See `set timefmt` to tell `gnuplot` how to read date or time data.  The
  4665.  date/time is converted to seconds from start of the century.  There is
  4666.  currently only one timefmt, which implies that all the date/time columns must
  4667.  confirm to this format.  Specification of ranges should be supplied as quoted
  4668.  strings according to this format to avoid interpretation of the date/time as
  4669.  an expression.
  4670.  
  4671.  The function 'strftime' (type "man strftime" on unix to look it up) is used
  4672.  to print ticmark labels.  `gnuplot` tries to figure out a reasonable format
  4673.  for this  unless the `set format x "string"` has supplied something that does
  4674.  not look like a decimal format (more than one '%' or neither %f nor %g).
  4675.  
  4676.  See also `Time/date` for more information.
  4677. ?set xdtics
  4678. ?set noxdtics
  4679. ?show xdtics
  4680. ?xdtics
  4681. ?noxdtics
  4682.  The `set xdtics` commands converts the x-axis tic marks to days of the week
  4683.  where 0=Sun and 6=Sat.  Overflows are converted modulo 7 to dates.  `set
  4684.  noxdtics` returns the labels to their default values.  Similar commands do
  4685.  the same things for the other axes.
  4686.  
  4687.  Syntax:
  4688.        set xdtics
  4689.        set noxdtics
  4690.        show xdtics
  4691.  
  4692.  The same syntax applies to `ydtics`, `zdtics`, `x2dtics` and `y2dtics`.
  4693.  
  4694.  See also the `set format` command.
  4695. ?set xlabel
  4696. ?show xlabel
  4697. ?xlabel
  4698.  The `set xlabel` command sets the x axis label.  Similar commands set labels
  4699.  on the other axes.
  4700.  
  4701.  Syntax:
  4702.        set xlabel {"<label>"} {<xoff>}{,<yoff>} {"<font>{,<size>}"}
  4703.        show xlabel
  4704.  
  4705.  The same syntax applies to `x2label`, `ylabel`, `y2label` and `zlabel`.
  4706.  
  4707.  Specifying the constants <xoff> or <yoff> as optional offsets for a label
  4708.  will move it <xoff> or <yoff> character screen coordinates. For example,
  4709.  "` set xlabel -1`" will change only the x offset of the xlabel, moving the
  4710.  label roughly one character width to the left.
  4711.  
  4712.  <font> is used to specify the font in which the label is written; the units
  4713.  of the font <size> depend upon which terminal is used.
  4714.  
  4715.  To clear a label, put no options on the command line, e.g., "`set y2label`".
  4716.  
  4717.  The default positions of the axis labels are as follows:
  4718.  
  4719.  xlabel:  The x-axis label is centered below the bottom axis.
  4720.  
  4721.  ylabel:  The position of the y-axis label depends on the terminal, and can be
  4722.  one of the following three positions:
  4723.  
  4724.  1. Horizontal text flushed left at the top left of the graph.  Terminals that
  4725.  cannot rotate text will probably use this method.  If `set x2tics` is also
  4726.  in use, the ylabel may overwrite the left-most x2tic label.  This may be
  4727.  remedied by adjusting the ylabel position or the left margin.
  4728.  
  4729.  2. Vertical text centered vertically at the left of the graph.  Terminals
  4730.  that can rotate text will probably use this method.
  4731.  
  4732.  3. Horizontal text centered vertically at the left of the graph.  The EEPIC,
  4733.  LaTeX and TPIC drivers use this method.  The user must insert line breaks
  4734.  using \\ to prevent the ylabel from overwriting the graph.  To produce a
  4735.  vertical row of characters, add \\ between every printing character (but this
  4736.  is ugly).
  4737.  
  4738.  zlabel: The z-axis label is centered along the z axis and placed in the space
  4739.  above the grid level.
  4740.  
  4741.  y2label: The y2-axis label is placed to the right of the y2 axis.  The
  4742.  position is terminal-dependent in the same manner as is the y-axis label.
  4743.  
  4744.  x2label: The x2-axis label is placed above the top axis but below the graph
  4745.  title.  It is also possible to create an x2-axis label by using new-line
  4746.  characters to make a multi-line graph title, e.g.,
  4747.  
  4748.        set title "This is the title\n\nThis is the x2label"
  4749.  
  4750.  Note that double quotes must be used.  The same font will be used for both
  4751.  lines, of course.
  4752.  
  4753.  Please see `set syntax` for further information about backslash processing
  4754.  and the difference between single- and double-quoted strings.
  4755. ?set xmtics
  4756. ?set noxmtics
  4757. ?show xmtics
  4758. ?xmtics
  4759. ?noxmtics
  4760.  The `set xmtics` commands converts the x-axis tic marks to months of the
  4761.  year where 1=Jan and 12=Dec.  Overflows are converted modulo 12 to months.
  4762.  The tics are returned to their default labels by `set noxmtics`.  Similar
  4763.  commands perform the same duties for the other axes.
  4764.  
  4765.  Syntax:
  4766.        set xmtics
  4767.        set noxmtics
  4768.        show xmtics
  4769.  
  4770.  The same syntax applies to `x2mtics`, `ymtics`, `y2mtics`, and `zmtics`.
  4771.  
  4772.  See also the `set format` command.
  4773. ?set xrange
  4774. ?show xrange
  4775. ?xrange
  4776.  The `set xrange` command sets the horizontal range that will be displayed.
  4777.  A similar command exists for each of the other axes, as well as for the
  4778.  polar radius r and the parametric variables t, u, and v.
  4779.  
  4780.  Syntax:
  4781.        set xrange [{{<min>}:{<max>}}] {{no}reverse} {{no}writeback}
  4782.        show xrange
  4783.  
  4784.  where <min> and <max> terms are constants, expressions or an asterisk to set
  4785.  autoscaling.  If the data are date/time, you must give the range as a quoted
  4786.  string according to the `set timefmt` format.  Any value omitted will not be
  4787.  changed.
  4788.  
  4789.  The same syntax applies to `yrange`, `zrange`, `x2range`, `y2range`,
  4790.  `rrange`, `trange`, `urange` and `vrange`.
  4791.  
  4792.  The `reverse` option reverses the direction of the axis, e.g., `set xrange
  4793.  [0:1] reverse` will produce an axis with 1 on the left and 0 on the right.
  4794.  This is identical to the axis produced by `set xrange [1:0]`, of course.
  4795.  `reverse` is intended primarily for use with `autoscale`.
  4796.  
  4797.  The `writeback` option essentially saves the range found by `autoscale` in
  4798.  the buffers that would be filled by `set xrange`.  This is useful if you wish
  4799.  to plot several functions together but have the range determined by only
  4800.  some of them.  The `writeback` operation is performed during the `plot`
  4801.  execution, so it must be specified before that command.  For example,
  4802.  
  4803.        set xrange [-10:10]
  4804.        set yrange [] writeback
  4805.        plot sin(x)
  4806.        set noautoscale y
  4807.        replot x/2
  4808.  
  4809.  results in a yrange of [-1:1] as found only from the range of sin(x); the
  4810.  [-5:5] range of x/2 is ignored.  Executing `show yrange` after each command
  4811.  in the above example should help you understand what is going on.
  4812.  
  4813.  In 2-d, `xrange` and `yrange` determine the extent of the axes, `trange`
  4814.  determines the range of the parametric variable in parametric mode or the
  4815.  range of the angle in polar mode.  Similarly in parametric 3-d, `xrange`,
  4816.  `yrange`, and `zrange` govern the axes and `urange` and `vrange` govern the
  4817.  parametric variables.
  4818.  
  4819.  In polar mode, `rrange` determines the radial range plotted.  <rmin> acts as
  4820.  an additive constant to the radius, whereas <rmax> acts as a clip to the
  4821.  radius---no point with radius greater than <rmax> will be plotted.  `xrange`
  4822.  and `yrange` are affected---the ranges can be set as if the graph was of
  4823.  r(t)-rmin, with rmin added to all the labels.
  4824.  
  4825.  Any range may be partially or totally autoscaled, although it may not make
  4826.  sense to autoscale a parametric variable unless it is plotted with data.
  4827.  
  4828.  Ranges may also be specified on the `plot` command line.  A range given on
  4829.  the plot line will be used for that single `plot` command; a range given by
  4830.  a `set` command will be used for all subsequent graphs that do not specify
  4831.  their own ranges.  The same holds true for `splot`.
  4832.  
  4833.  Examples:
  4834.  
  4835.  To set the xrange to the default:
  4836.        set xrange [-10:10]
  4837.  
  4838.  To set the yrange to increase downwards:
  4839.        set yrange [10:-10]
  4840.  
  4841.  To change zmax to 10 without affecting zmin (which may still be autoscaled):
  4842.        set zrange [:10]
  4843.  
  4844.  To autoscale xmin while leaving xmax unchanged:
  4845.        set xrange [*:]
  4846. ?set xtics
  4847. ?set noxtics
  4848. ?show xtics
  4849. ?xtics
  4850. ?noxtics
  4851.  Fine control of the major (labelled) tics on the x axis is possible with the
  4852.  `set xtics` command.  The tics may be turned off with the `set noxtics`
  4853.  command, and may be turned on (the default state) with `set xtics`.  Similar
  4854.  commands control the major tics on the y, z, x2 and y2 axes.
  4855.  
  4856.  Syntax:
  4857.        set xtics {axis | border} {{no}mirror} {{no}rotate}
  4858.                  {  <incr> 
  4859.                   | <start>, <incr> {,<end>}
  4860.                   | ({"<label>"} <pos> {,{"<label>"} <pos>}...) }
  4861.        set noxtics
  4862.        show xtics
  4863.  
  4864.  The same syntax applies to `ytics`, `ztics`, `x2tics` and `y2tics`.
  4865.  
  4866.  `axis` or `border` tells `gnuplot` to put the tics (both the tics themselves
  4867.  and the accompanying labels) along the axis or the border, respectively.
  4868.  `mirror` tells it to put unlabelled tics at the same positions on the
  4869.  opposite border.  `nomirror` does what you think it does.  The defaults are
  4870.  `border mirror` for tics on the x, y, x2, and y2 axes.  For the z axis, the
  4871.  the `{axis | border}` option is not available and the default is `nomirror`.
  4872.  If you do want to mirror the z-axis tics, you might want to create a bit more
  4873.  room for them with `set border`.
  4874.  
  4875.  `rotate` causes the tic labels to be written vertically, if your terminal
  4876.  supports vertical text.
  4877.  
  4878.  The positions of the tics may be specified in either of two forms:
  4879.  
  4880.  The <start>, <incr>, <end> form specifies that a series of tics will be
  4881.  plotted on the axis between the values <start> and <end> with an increment of
  4882.  <incr>.  If <end> is not given, it is assumed to be infinity.  The increment
  4883.  may be negative.  If neither <start> nor <end> is given, <start> is assumed
  4884.  to be negative infinity, <end> is assumed to be positive infinity, and the
  4885.  tics will be drawn at multiples of <step>---there will be a tic at zero (if
  4886.  it is within the plotted range).  If the axis is logarithmic, the increment
  4887.  will be used as a multiplicative factor.
  4888.  
  4889.  Examples:
  4890.  
  4891.  Make tics at 0, 0.5, 1, 1.5, ..., 9.5, 10.
  4892.        set xtics 0,.5,10
  4893.  
  4894.  Make tics at ..., -10, -5, 0, 5, 10, ...
  4895.        set xtics 5
  4896.  
  4897.  Make tics at 1, 100, 1e4, 1e6, 1e8.
  4898.        set logscale x; set xtics 1,100,10e8
  4899.  
  4900.  The ("<label>" <pos>, ...) form allows arbitrary tic positions or non-numeric
  4901.  tic labels.  A set of tics is a set of positions, each with its own optional
  4902.  label.  Note that the label is a string enclosed by quotes, and may be a
  4903.  constant string, such as "hello", or contain formatting information for the
  4904.  tic number (which is the same as the position), such as "%3f clients".  See
  4905.  `set format` for more information about this case.  The label may be made
  4906.  empty by specifying it as an empty string.  If no string is given, the
  4907.  default label (numerical) is used.  In this form, the tics do not need to be
  4908.  listed in numerical order.
  4909.  
  4910.  Examples:
  4911.        set xtics ("low" 0, "medium" 50, "high" 100)
  4912.        set xtics (1,2,4,8,16,32,64,128,256,512,1024)
  4913.        set ytics ("bottom" 0, "" 10, "top" 20)
  4914.  
  4915.  In the second example, all tics are labelled.  In the third, only the end
  4916.  tics are labelled.
  4917.  
  4918.  Tics will only be plotted when in range.
  4919.  
  4920.  Minor (unlabelled) tics can be added by the `set mxtics` command.
  4921.  
  4922.  In case of timeseries data, position values must be given as quoted dates
  4923.  or times according to the format `timefmt`.
  4924. ?set xzeroaxis
  4925. ?set noxzeroaxis
  4926. ?show xzeroaxis
  4927. ?xzeroaxis
  4928. ?noxzeroaxis
  4929.  The `set xzeroaxis` command draws a line at x = 0.  For details, please see
  4930.  `set zeroaxis`.
  4931. ?set y2data
  4932. ?show y2data
  4933. ?y2data
  4934.  The `set y2data` command sets y2 (right-hand) axis data to timeseries
  4935.  (dates/times).  Please see `set xdata`.
  4936. ?set y2dtics
  4937. ?set noy2dtics
  4938. ?show y2dtics
  4939. ?y2dtics
  4940. ?noy2dtics
  4941.  The `set y2dtics` command changes tics on the y2 (right-hand) axis to days of
  4942.  the week.  Please see `set xmtics` for details.
  4943. ?set y2label
  4944. ?show y2label
  4945. ?y2label
  4946.  The `set y2dtics` command sets the label for the y2 (right-hand) axis.
  4947.  Please see `set xlabel`.
  4948. ?set y2mtics
  4949. ?set noy2mtics
  4950. ?show y2mtics
  4951. ?y2mtics
  4952. ?noy2mtics
  4953.  The `set y2mtics` command changes tics on the y2 (right-hand) axis to months
  4954.  of the year.  Please see `set xmtics` for details.
  4955. ?set y2range
  4956. ?show y2range
  4957. ?y2range
  4958.  The `set y2range` command sets the vertical range that will be displayed on
  4959.  the y2 (right-hand) axis.  Please see `set xrange` for details.
  4960. ?set y2tics
  4961. ?set noy2tics
  4962. ?show y2tics
  4963. ?y2tics
  4964. ?noy2tics
  4965.  The `set y2tics` command controls major (labelled) tics on the y2 (right-hand)
  4966.  axis.  Please see `set xtics` for details.
  4967. ?set y2zeroaxis
  4968. ?set noy2zeroaxis
  4969. ?show y2zeroaxis
  4970. ?y2zeroaxis
  4971. ?noy2zeroaxis
  4972.  The `set y2zeroaxis` command draws a line at the origin of the y2 (right-hand)
  4973.  axis (y2 = 0).  For details, please see `set zeroaxis`.
  4974. ?set ydata
  4975. ?show ydata
  4976. ?ydata
  4977.  Sets y-axis data to timeseries (dates/times).  Please see `set xdata`.
  4978. ?set ydtics
  4979. ?set noydtics
  4980. ?show ydtics
  4981. ?ydtics
  4982. ?noydtics
  4983.  The `set ydtics` command changes tics on the y axis to days of the week.
  4984.  Please see `set xmtics` for details.
  4985. ?set ylabel
  4986. ?show ylabel
  4987. ?ylabel
  4988.  This command sets the label for the y axis.  Please see `set xlabel`.
  4989. ?set ymtics
  4990. ?set noymtics
  4991. ?show ymtics
  4992. ?ymtics
  4993. ?noymtics
  4994.  The `set ymtics` command changes tics on the y axis to months of the year.
  4995.  Please see `set xmtics` for details.
  4996. ?set yrange
  4997. ?show yrange
  4998. ?yrange
  4999.  The `set yrange` command sets the vertical range that will be displayed on
  5000.  the y axis.  Please see `set xrange` for details.
  5001. ?set ytics
  5002. ?set noytics
  5003. ?show ytics
  5004. ?ytics
  5005. ?noytics
  5006.  The `set ytics` command controls major (labelled) tics on the y axis.
  5007.  Please see `set xtics` for details.
  5008. ?set yzeroaxis
  5009. ?set noyzeroaxis
  5010. ?show yzeroaxis
  5011. ?yzeroaxis
  5012. ?noyzeroaxis
  5013.  The `set yzeroaxis` command draws a line at y = 0.  For details, please see
  5014.  `set zeroaxis`.
  5015. ?set zdata
  5016. ?show zdata
  5017. ?zdata
  5018.  Set zaxis date to timeseries (dates/times).  Please see `set xdata`.
  5019. ?set zdtics
  5020. ?set nozdtics
  5021. ?show zdtics
  5022. ?zdtics
  5023. ?nozdtics
  5024.  The `set zdtics` command changes tics on the z axis to days of the week.
  5025.  Please see `set xmtics` for details.
  5026. ?set zero
  5027. ?show zero
  5028. ?zero
  5029.  The `zero` value is the default threshold for values approaching 0.0.
  5030.  
  5031.  Syntax:
  5032.        set zero <expression>
  5033.        show zero
  5034.  
  5035.  `gnuplot` will not plot a point if its imaginary part is greater in magnitude
  5036.  than the `zero` threshold.  Axis ranges cannot be less than `zero`.  The
  5037.  default `zero` value is 1e-8.
  5038. ?set zeroaxis
  5039. ?set nozeroaxis
  5040. ?show zeroaxis
  5041. ?zeroaxis
  5042. ?nozeroaxis
  5043.  The x axis may be drawn by `set xzeroaxis` and removed by `set noxzeroaxis`.
  5044.  Similar commands behave similarly for the y, x2, and y2 axes.
  5045.  
  5046.  Syntax:
  5047.        set zeroaxis {<linetype>}
  5048.        set xzeroaxis {<linetype>}
  5049.        set yzeroaxis {<linetype>}
  5050.        set x2zeroaxis {<linetype>}
  5051.        set y2zeroaxis {<linetype>}
  5052.        set nozeroaxis
  5053.        set noxzeroaxis
  5054.        etc.
  5055.        show zeroaxis
  5056.        show xzeroaxis
  5057.        etc.
  5058.  
  5059.  By default, these options are off.  The selected zero axis is drawn with a
  5060.  line of type <linetype> from the default linetype list provided by the
  5061.  terminal; user-defined linetypes (via the `set linestyle` command) are not
  5062.  accessible for these axes.  If <linetype> is not specified, any zero axes
  5063.  selected will be drawn using the axis linetype (linetype 0).
  5064.  
  5065.  `set zeroaxis l` is equivalent to `set xzeroaxis l; set yzeroaxis l`. `set
  5066.  nozeroaxis` is equivalent to `set noxzeroaxis; set noyzeroaxis`.
  5067. ?set zlabel
  5068. ?show zlabel
  5069. ?zlabel
  5070.  This command sets the label for the z axis.  Please see `set xlabel`.
  5071. ?set zmtics
  5072. ?set nozmtics
  5073. ?show zmtics
  5074. ?zmtics
  5075. ?nozmtics
  5076.  The `set zmtics` command changes tics on the z axis to months of the year.
  5077.  Please see `set xmtics` for details.
  5078. ?set zrange
  5079. ?show zrange
  5080. ?zrange
  5081.  The `set zrange` command sets the range that will be displayed on the z axis.
  5082.  The zrange is used only by `splot` and is ignored by `plot`.  Please see `set
  5083.  xrange` for details.
  5084. ?set ztics
  5085. ?set noztics
  5086. ?show ztics
  5087. ?ztics
  5088. ?noztics
  5089.  The `set ztics` command controls major (labelled) tics on the z axis.
  5090.  Please see `set xtics` for details.
  5091. ?shell
  5092.  The `shell` command spawns an interactive shell.  To return to `gnuplot`,
  5093.  type `logout` if using VMS, `exit` or the END-OF-FILE character if using
  5094.  Unix, `endcli` if using AmigaDOS, or `exit` if using MS-DOS or OS/2.
  5095.  
  5096.  A single shell command may be spawned by preceding it with the ! character
  5097.  ($ if using VMS) at the beginning of a command line.  Control will return
  5098.  immediately to `gnuplot` after this command is executed.  For example, in
  5099.  Unix, AmigaDOS, MS-DOS or OS/2,
  5100.  
  5101.        ! dir
  5102.  
  5103.  prints a directory listing and then returns to `gnuplot`.
  5104.  
  5105.  On an Atari, the `!` command first checks whether a shell is already loaded
  5106.  and uses it, if available.  This is practical if `gnuplot` is run from
  5107.  `gulam`, for example.
  5108. ?splot
  5109.  `splot` is the primary command for drawing 3-d plots (well, actually 
  5110.  projections on a 2-d surface, but you knew that).  It can create a graph from
  5111.  functions or data in a manner very similar to the `plot` command.
  5112.  
  5113.  Please see `plot` for features common to the `plot` command; only differences  
  5114.  are discussed in detail here.
  5115.  
  5116.  Syntax:
  5117.        splot {<ranges>}
  5118.              {<function> | {"<datafile>" {datafile-modifiers}}}
  5119.              {<title-spec>} {with <style>} 
  5120.              {, {definitions,} <function> ...}
  5121.  
  5122.  where either a <function> or the name of a data file enclosed in quotes is
  5123.  supplied.  A function is a mathematical expression, or a triple (`splot`) of
  5124.  mathematical expressions in parametric mode.
  5125.  
  5126.  By default `splot` draws the xy plane completely below the plotted data.  The
  5127.  offset between the lowest ztic and the xy plane can be changed by `set
  5128.  ticslevel`.  The orientation of a 'splot' is controlled by `set view`.  See
  5129.  `set view` and `set ticslevel` for more information.
  5130.  
  5131.  The syntax for setting ranges on the `splot` command is the same as for
  5132.  `plot`.  In non-parametric mode, the order in which ranges must be given is
  5133.  `xrange`, `yrange`, and `zrange`.  In parametric mode, the order is `urange`,
  5134.  `vrange`, `xrange`, `yrange`, and `zrange`.
  5135.  
  5136.  The `title` option is the same as in `plot`.  The operation of `with` is also
  5137.  the same as in `plot`, except that the plotting styles available to `splot`
  5138.  are limited to `lines`, `points`, `linespoints`, `dots`, and `impulses`;  the
  5139.  error-bar capabilities of `plot` are not available for `splot`.
  5140.  
  5141.  The datafile options have more differences.
  5142. ?splot data-file
  5143. ?splot datafile
  5144.  Discrete data contained in a file can be displayed by specifying the name of
  5145.  the data file (enclosed in quotes) on the `plot` or `splot` command line.
  5146.  
  5147.  Syntax:
  5148.        splot '<file_name>' {binary | matrix}
  5149.                            {index <index list>}
  5150.                            {every <every list>}
  5151.                            {using <using list>}
  5152.  
  5153.  The special filenames `""` and `"-"` are permitted, as in `plot`.
  5154.  
  5155.  In brief, `binary` indicates that the file is binary, `matrix` indicates that
  5156.  the data are in matrix form, `index` selects which data sets in a
  5157.  multi-data-set file are to be plotted, `every` specifies which lines within a
  5158.  single data set are to be plotted, and `using` determines how the columns
  5159.  within a single line are to be interpreted.
  5160.  
  5161.  The options `index` and `every` behave the same way as with `plot`.  `using`
  5162.  also does, with the obvious diference that the `using` list must provide
  5163.  three entries instead of two.
  5164.  
  5165.  The `plot` options `thru` and `smooth` are not available for `splot`.
  5166.  
  5167.  Data file organization is essentially the same as for `plot`, except that
  5168.  each point is an (x,y,z) triple.  If only a single value is provided, it will
  5169.  be used for z, the data point number will be used for x, and the y-isoline
  5170.  number will be used for y; thus "`splot 'file' using 1`" is identical to
  5171.  "`splot 'file' using 0:-1:1`".  If two values are provided, `gnuplot` gives
  5172.  you an error message.  Three values are interpreted as an (x,y,z) triple.
  5173.  Additional values are generally used as errors, which can be used by `fit`.
  5174.  
  5175.  Single blank lines separate y-isolines (sets of points with the same y-value)
  5176.  in a `splot` datafile.  No line will join points separated by a blank line.
  5177.  If all isolines (groups of contiguous points) are of equal length, `gnuplot`
  5178.  will draw cross-isolines in the opposite direction.  This is termed "grid
  5179.  data", and is required for drawing a surface, for contouring (`set contour`)
  5180.  and hidden-line removal (`set hidden3d`).
  5181.  
  5182.  It is no longer necessary to specify `parametric` mode for three-column
  5183.  `splot`s.
  5184. ?splot data-file binary
  5185. ?splot datafile binary
  5186. ?splot binary
  5187. ?data-file binary
  5188. ?datafile binary
  5189. ?binary
  5190. ?binary data
  5191. ?binary files
  5192.  In previous versions, `gnuplot` dynamically detected binary data files.  It
  5193.  is now necessary to specify the keyword `binary` directly after the filename.
  5194.  
  5195.  Single precision floats are stored in a binary file as follows:
  5196.  
  5197.        <N+1>  <y0>   <y1>   <y2>  ...  <yN>
  5198.         <x0> <z0,0> <z0,1> <z0,2> ... <z0,N>
  5199.         <x1> <z1,0> <z1,1> <z1,2> ... <z1,N>
  5200.          :      :      :      :   ...    :
  5201.  
  5202.  
  5203.  which are converted into triplets:
  5204.  
  5205.        <x0> <y0> <z0,0>
  5206.        <x0> <y1> <z0,1>
  5207.        <x0> <y2> <z0,2>
  5208.         :    :     :
  5209.        <x0> <yN> <z0,N>
  5210.  
  5211.        <x1> <y0> <z1,0>
  5212.        <x1> <y1> <z1,1>
  5213.         :    :     :
  5214.  
  5215.  These triplets are then converted into `gnuplot` iso-curves and then
  5216.  `gnuplot` proceeds in the usual manner to do the rest of the plotting.
  5217.  
  5218.  A collection of matrix and vector manipulation routines (in C) is provided
  5219.  in `binary.c`.  The routine to write binary data is
  5220.  
  5221.        int fwrite_matrix(file,m,nrl,nrl,ncl,nch,row_title,column_title)
  5222.  
  5223.  An example of using these routines is provided in the file `bf_test.c`, which
  5224.  generates binary files for the demo file `demo/binary.dem`.
  5225.  
  5226.  The `index` keyword is not supported, since the file format allows only one
  5227.  surface per file.  The `every` and `using` filters are supported.  `using`
  5228.  operates as if the data were read in the above triplet form.
  5229. ?splot data-file example
  5230. ?splot datafile example
  5231. ?splot example
  5232.  A simple example of plotting a 3-d data file is
  5233.  
  5234.        splot 'datafile.dat'
  5235.  
  5236.  where the file "datafile.dat" might contain:
  5237.  
  5238.        # The valley of the Gnu.
  5239.           0 0 10
  5240.           0 1 10
  5241.           0 2 10
  5242.  
  5243.           1 0 10
  5244.           1 1 5
  5245.           1 2 10
  5246.  
  5247.           2 0 10
  5248.           2 1 1
  5249.           2 2 10
  5250.  
  5251.           3 0 10
  5252.           3 1 0
  5253.           3 2 10
  5254.  
  5255.  Note that "datafile.dat" defines a 4 by 3 grid ( 4 rows of 3 points each ).
  5256.  Rows are separated by blank lines.
  5257.  
  5258.  Note also that the x value is held constant within each isoline.  If you
  5259.  instead keep y constant, and plot with hidden-line removal enabled, you will
  5260.  find that the surface is drawn 'inside-out'.
  5261.  
  5262.  Actually it is not necessary to keep the x values constant within an isoline,
  5263.  nor is it necessary to keep the y values the same along the perpendicular
  5264.  isolines.  `gnuplot` requires only that the number of points be the same
  5265.  along each isoline.
  5266. ?splot data-file matrix
  5267. ?splot datafile matrix
  5268. ?splot matrix
  5269. ?data-file matrix
  5270. ?datafile matrix
  5271. ?matrix
  5272.  The `matrix` flag indicates that the data are stored in matrix format.  In
  5273.  its present implementation the z-values are read in a row at a time, i. e.,
  5274.        z11 z12 z13 z14 ...
  5275.        z21 z22 z23 z24 ...
  5276.        z31 z32 z33 z34 ...
  5277.  and so forth.  The row and column indices are used for the x- and y-values.
  5278.  used as x, y, and z.
  5279. ?test
  5280.  `test` creates a display of line and point styles and other useful things
  5281.  appropriate for the terminal you are using.
  5282.  
  5283.  Syntax:
  5284.        test
  5285. ?update
  5286.  This command writes the current values of the fit parameters into the given
  5287.  file, which is formatted as an initial-value file (as described in the `fit`
  5288.  section).  This is useful for saving the current values for later use or for
  5289.  restarting a converged or stopped fit.
  5290.  
  5291.  Syntax:
  5292.        update <filename> {<filename>}
  5293.  
  5294.  If the file already exists, `gnuplot` first renames it by appending `.old`
  5295.  and then opens a new file.  That is, "`update 'fred'`" behaves the same way
  5296.  as "`!rename fred fred.old; update 'fred.old' 'fred'`".  [On DOS and other
  5297.  systems that use the twelve-character "filename.ext" naming convention, "ext"
  5298.  will be "`old`" and "filename" will be related (hopefully recognizably) to
  5299.  the initial name.  Renaming is not done at all on VMS systems, since they use
  5300.  file-versioning.]
  5301.  
  5302.  If a second filename is supplied, the updated values are written to this
  5303.  file instead, and the original parameter file is left unmodified.
  5304.  
  5305.  Please see `fit` for more information.
  5306. ?graphical user interfaces
  5307. ?gui's
  5308.  Several graphical user interfaces have been written for `gnuplot` and one for
  5309.  win32 is included in this distribution.  In addition, there is a MacIntosh
  5310.  interface at
  5311.         ftp://ftp.ee.gatech.edu/pub/mac/gnuplot
  5312.  and several X11 interfaces include three tcl/tk located at the usual tcl/tk
  5313.  repositories.
  5314. ?bugs
  5315.  The bessel functions do not work for complex arguments.
  5316.  
  5317.  The gamma function does not work for complex arguments.
  5318.  
  5319.  There is a bug in the stdio library for old Sun operating systems (SunOS
  5320.  Sys4-3.2).  The "%g" format for 'printf' sometimes incorrectly prints numbers
  5321.  (e.g., 200000.0 as "2").  Thus, tic mark labels may be incorrect on a Sun4
  5322.  version of `gnuplot`.  A work-around is to rescale the data or use the `set
  5323.  format` command to change the tic mark format to "%7.0f" or some other
  5324.  appropriate format.  This appears to have been fixed in SunOS 4.0.
  5325.  
  5326.  Another bug: On a Sun3 under SunOS 4.0, and on Sun4's under Sys4-3.2 and
  5327.  SunOS 4.0, the 'sscanf' routine incorrectly parses "00 12" with the format
  5328.  "%f %f" and reads 0 and 0 instead of 0 and 12.  This affects data input.  If
  5329.  the data file contains x coordinates that are zero but are specified like
  5330.  '00', '000', etc, then you will read the wrong y values.  Check any data
  5331.  files or upgrade the SunOS.  It appears to have been fixed in SunOS 4.1.1.
  5332.  
  5333.  Suns appear to overflow when calculating exp(-x) for large x, so `gnuplot`
  5334.  gets an undefined result.  One work-around is to make a user-defined function
  5335.  like e(x) = x<-500 ? 0 : exp(x).  This affects plots of Gaussians (exp(-x*x))
  5336.  in particular, since x*x grows quite rapidly.
  5337.  
  5338.  Microsoft C 5.1 has a nasty bug associated with the %g format for 'printf'.
  5339.  When any of the formats "%.2g", "%.1g", "%.0g", "%.g" are used, 'printf' will
  5340.  incorrectly print numbers in the range 1e-4 to 1e-1.  Numbers that should be
  5341.  printed in the %e format are incorrectly printed in the %f format, with the
  5342.  wrong number of zeros after the decimal point.  To work around this problem,
  5343.  use the %e or %f formats explicitly.
  5344.  
  5345.  `gnuplot`, when compiled with Microsoft C, did not work correctly on two VGA
  5346.  displays that were tested.  The CGA, EGA and VGA drivers should probably be
  5347.  rewritten to use the Microsoft C graphics library.  `gnuplot` compiled with
  5348.  Borland C++ uses the Turbo C graphics drivers and does work correctly with
  5349.  VGA displays.
  5350.  
  5351.  VAX/VMS 4.7 C compiler release 2.4 also has a poorly implemented %g format
  5352.  for 'printf'.  The numbers are printed numerically correct, but may not be in
  5353.  the requested format.  The K&R second edition says that for the %g format, %e
  5354.  is used if the exponent is less than -4 or greater than or equal to the
  5355.  precision.  The VAX uses %e format if the exponent is less than -1.  The VAX
  5356.  appears to take no notice of the precision when deciding whether to use %e or
  5357.  %f for numbers less than 1.  To work around this problem, use the %e or %f
  5358.  formats explicitly.  From the VAX C 2.4 release notes: e,E,f,F,g,G  Result
  5359.  will always contain a decimal  point.  For g and G, trailing zeros will not
  5360.  be removed from the result.
  5361.  
  5362.  VAX/VMS 5.2 C compiler release 3.0 has a slightly better implemented %g
  5363.  format than release 2.4, but not much.  Trailing decimal points are now
  5364.  removed, but trailing zeros are still not removed from %g numbers in
  5365.  exponential format.
  5366.  
  5367.  The two preceding problems are actually in the libraries rather than in the
  5368.  compilers.  Thus the problems will occur whether `gnuplot` is built using
  5369.  either the DEC compiler or some other one (e.g. the latest gcc).
  5370.  
  5371.  ULTRIX X11R3 has a bug that causes the X11 driver to display "every other"
  5372.  graph.  The bug seems to be fixed in DEC's release of X11R4 so newer releases
  5373.  of ULTRIX don't seem to have the problem.  Solutions for older sites include
  5374.  upgrading the X11 libraries (from DEC or direct from MIT) or defining
  5375.  ULTRIX_KLUDGE when compiling the x11.trm file.  Note that the kludge is not
  5376.  an ideal fix, however.
  5377.  
  5378.  The constant HUGE was incorrectly defined in the NeXT OS 2.0 operating
  5379.  system.  HUGE should be set to 1e38 in plot.h. This error has been corrected
  5380.  in the 2.1 version of NeXT OS.
  5381.  
  5382.  Some older models of HP plotters do not have a page eject command 'PG'.  The
  5383.  current HPGL driver uses this command in HPGL_reset.  This may need to be
  5384.  removed for these plotters.  The current PCL5 driver uses HPGL/2 for text as
  5385.  well as graphics.  This should be modified to use scalable PCL fonts.
  5386.  
  5387.  On the Atari version, it is not possible to send output directly to the
  5388.  printer (using `/dev/lp` as output file), since CRs are added to LFs in
  5389.  binary output.  As a work-around, write the output to a file and copy it to
  5390.  the printer afterwards using a shell command.
  5391.  
  5392.  On AIX 4, the literal "NaNq" in a datafile causes the special internal value
  5393.  non-a-number to be stored, rather than setting an internal 'undefined' flag.
  5394.  A workaround is to `set missing 'NaNq'`.
  5395.  
  5396.  There may be an up-to-date list of bugs since the release on the WWW page:
  5397.        http://www.cs.dartmouth.edu/gnuplot
  5398.  
  5399.  Please report any bugs to bug-gnuplot@dartmouth.edu.
  5400.