home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Graphics / Plotting / aa_Intel_Only / Gnuplot / GnuplotSource / docs / gnuplot.gih
Encoding:
Text File  |  1995-06-12  |  116.0 KB  |  3,246 lines

  1. ?
  2.  GNUPLOT is a command-driven interactive function plotting program.
  3.  
  4.  For help on any topic, type `help` followed by the name of the topic.
  5.  
  6.  The new GNUPLOT user should begin by reading the `introduction` topic
  7.  (type `help introduction`) and about the `plot` command (type `help plot`).
  8.  Additional help can be obtained from the USENET newsgroup
  9.  comp.graphics.gnuplot.
  10.  
  11. ?copyright
  12.       Copyright (C) 1986 - 1993   Thomas Williams, Colin Kelley
  13.  
  14.    Permission to use, copy, and distribute this software and its
  15.    documentation for any purpose with or without fee is hereby granted,
  16.    provided that the above copyright notice appear in all copies and
  17.    that both that copyright notice and this permission notice appear
  18.    in supporting documentation.
  19.  
  20.    Permission to modify the software is granted, but not the right to
  21.    distribute the modified code.  Modifications are to be distributed
  22.    as patches to released version.
  23.  
  24.    This software is provided "as is" without express or implied warranty.
  25.  
  26.  
  27.    AUTHORS
  28.  
  29.      Original Software:
  30.        Thomas Williams,  Colin Kelley.
  31.  
  32.      Gnuplot 2.0 additions:
  33.          Russell Lang, Dave Kotz, John Campbell.
  34.  
  35.      Gnuplot 3.0 additions:
  36.          Gershon Elber and many others.
  37.  
  38.    Send your comments or suggestions to
  39.     info-gnuplot@dartmouth.edu.
  40.    This is a mailing list; to join it send a note to
  41.     info-gnuplot-request@dartmouth.edu.
  42.    Send bug reports to
  43.     bug-gnuplot@dartmouth.edu.
  44.  
  45.  
  46. ?introduction
  47.  GNUPLOT is a command-driven interactive function plotting program.
  48.  It is case sensitive (commands and function names written in lowercase
  49.  are not the same as those written in CAPS). All command names may be
  50.  abbreviated, as long as the abbreviation is not ambiguous. Any number
  51.  of commands may appear on a line, separated by semicolons (;).
  52.  Strings are indicated with quotes.  They may be either single or double
  53.  quotation marks, e.g.,
  54.  
  55.           load "filename"
  56.           cd 'dir'
  57.  
  58.  Any command-line arguments are assumed to be names of files containing
  59.  GNUPLOT commands, with the exception of standard X11 arguments, which
  60.  are processed first. Each file is loaded with the `load` command, in the
  61.  order specified. GNUPLOT exits after the last file is processed.  When
  62.  no load files are named, gnuplot enters into an interactive mode.
  63.  
  64.  Commands may extend over several input lines, by ending each
  65.  line but the last with a backslash (\). The backslash must be the LAST
  66.  character on each line. The effect is as if the backslash and newline
  67.  were not there. That is, no white space is implied, nor is a comment
  68.  terminated. Therefore, commenting out a continued line comments out
  69.  the entire command (see `comment`).
  70.  
  71.  In this documentation, curly braces ({}) denote optional arguments to
  72.  many commands, and a vertical bar (|) separates mutually exclusive
  73.  choices.  GNUPLOT keywords or help topics are indicated by backquotes
  74.  or `boldface` (where available).  Angle brackets (<>) are used to mark
  75.  replaceable tokens.
  76.  
  77.  For help on any topic, type `help` followed by the name of the topic.
  78.  
  79.  The new GNUPLOT user should begin by reading about the `plot`
  80.  command (type `help plot`).
  81. ?cd
  82.  The `cd` command changes the working directory.
  83.  
  84.  Syntax:
  85.          cd "<directory-name>"
  86.  
  87.  The directory name must be enclosed in quotes.
  88.  
  89.  Examples:
  90.          cd 'subdir'
  91.          cd ".."
  92. ?clear
  93.  The `clear` command erases the current screen or output device as
  94.  specified by `set output`. This usually generates a formfeed on
  95.  hardcopy devices. Use `set terminal` to set the device type.
  96. ?line-editing
  97. ?editing
  98. ?history
  99. ?command line-editing
  100.  The Unix, Atari, VMS, MS-DOS and OS/2 versions of GNUPLOT support command
  101.  line-editing.  Also, a history mechanism allows previous commands to be
  102.  edited, and re-executed. After the command line has been edited, a newline
  103.  or carriage return will enter the entire line regardless of where the
  104.  cursor is positioned.
  105.  
  106.  The editing commands are as follows:
  107.  
  108.   `Line-editing`:
  109.  
  110.   ^B moves back a single character.
  111.   ^F moves forward a single character.
  112.   ^A moves to the beginning of the line.
  113.   ^E moves to the end of the line.
  114.   ^H and DEL delete the previous character.
  115.   ^D deletes the current character.
  116.   ^K deletes from current position to the end of line.
  117.   ^L,^R redraws line in case it gets trashed.
  118.   ^U deletes the entire line.
  119.   ^W deletes the last word.
  120.  
  121.   `History`:
  122.  
  123.   ^P moves back through history.
  124.   ^N moves forward through history.
  125.  
  126.  On the IBM PC the use of a TSR program such as DOSEDIT or CED may be
  127.  desired for line editing. For such a case GNUPLOT may be compiled with
  128.  no line editing capability (default makefile setup). Set READLINE in the
  129.  makefile and add readline.obj to the link file if GNUPLOT line editing
  130.  is to be used for the IBM PC. The following arrow keys may be used
  131.  on the IBM PC and Atari versions if readline is used:
  132.  
  133.   Left  Arrow     - same as ^B.
  134.   Right Arrow     - same as ^F.
  135.   Ctl Left  Arrow - same as ^A.
  136.   Ctl Right Arrow - same as ^E.
  137.   Up    Arrow     - same as ^P.
  138.   Down  Arrow     - same as ^N.
  139.  
  140.  The Atari version of readline defines some additional key aliases:
  141.  
  142.   Undo            - same as ^L.
  143.   Home            - same as ^A.
  144.   Ctrl Home       - same as ^E.
  145.   ESC             - same as ^U.
  146.   Help            - `help' plus return.
  147.   Ctrl Help       - `help '.
  148.  
  149.  (The readline function in gnuplot is not the same as the readline used
  150.  in GNU BASH and GNU EMACS.  It is somewhat compatible however.)
  151. ?comments
  152.  Comments are supported as follows: a # may appear in most places in a line
  153.  and GNUPLOT will ignore the rest of the line. It will not have this
  154.  effect inside quotes, inside numbers (including complex numbers), inside
  155.  command substitutions, etc. In short, it works anywhere it makes sense
  156.  to work.
  157. ?environment
  158.  A number of shell environment variables are understood by GNUPLOT.
  159.  None of these are required, but may be useful.
  160.  
  161.  If GNUTERM is defined, it is used as the name of the terminal type to
  162.  be used. This overrides any terminal type sensed by GNUPLOT on start
  163.  up, but is itself overridden by the .gnuplot (or equivalent) start-up
  164.  file (see `start-up`), and of course by later explicit changes.
  165.  
  166.  On Unix, AmigaDOS, AtariTOS, MS-DOS and OS/2, GNUHELP may be defined
  167.  to be the pathname of the HELP file (gnuplot.gih).
  168.  
  169.  On VMS, the symbol GNUPLOT$HELP should be defined as the name of
  170.  the help library for GNUPLOT.
  171.  
  172.  On Unix, HOME is used as the name of a directory to search for
  173.  a .gnuplot file if none is found in the current directory.
  174.  On AmigaDOS, AtariTOS, MS-DOS and OS/2, GNUPLOT is used. On VMS, SYS$LOGIN:
  175.  is used. See `help start-up`.
  176.  
  177.  On Unix, PAGER is used as an output filter for help messages.
  178.  
  179.  On Unix, AtariTOS and AmigaDOS, SHELL is used for the `shell` command.
  180.  On MS-DOS and OS/2, COMSPEC is used for the `shell` command.
  181.  
  182.  On AmigaDOS, GNUFONT is used for the screen font.  For example:
  183.  "setenv GNUFONT sapphire/14".
  184.  
  185.  On MS-DOS, if the BGI interface is used, the variable `BGI` is used to point
  186.  to the full path of the BGI drivers directory. Furthermore SVGA is used to
  187.  name the Super VGA BGI driver in 800x600 res., and its mode of operation
  188.  as 'Name.Mode'.
  189.  E.g., if the Super VGA driver is C:\TC\BGI\SVGADRV.BGI and mode 3 is
  190.  used for 800x600 res., then: 'set BGI=C:\TC\BGI' and 'set SVGA=SVGADRV.3'.
  191. ?exit
  192. ?quit
  193.  The commands `exit` and `quit` and the END-OF-FILE character
  194.  will exit GNUPLOT. All these commands will clear the output device
  195.  (as the `clear` command does) before exiting.
  196. ?expressions
  197.  In general, any mathematical expression accepted by C, FORTRAN,
  198.  Pascal, or BASIC is valid. The precedence of these operators is
  199.  determined by the specifications of the C programming language.
  200.  White space (spaces and tabs) is ignored inside expressions.
  201.  
  202.  Complex constants may be expressed as the {<real>,<imag>}, where <real>
  203.  and <imag> must be numerical constants. For example, {3,2}
  204.  represents 3 + 2i; {0,1} represents `i` itself. The curly braces
  205.  are explicitly required here.
  206. ?expressions functions
  207. ?functions
  208.  The functions in GNUPLOT are the same as the corresponding functions
  209.  in the Unix math library, except that all functions accept integer,
  210.  real, and complex arguments, unless otherwise noted. The `sgn`
  211.  function is also supported, as in BASIC.
  212. ?expressions functions abs
  213. ?functions abs
  214. ?abs
  215.  The `abs` function returns the absolute value of its argument. The
  216.  returned value is of the same type as the argument.
  217.  
  218.  For complex arguments, abs(x) is defined as the length of x in the
  219.  complex plane [i.e.,  sqrt(real(x)**2 + imag(x)**2) ].
  220. ?expressions functions acos
  221. ?functions acos
  222. ?acos
  223.  The `acos` function returns the arc cosine (inverse cosine) of its
  224.  argument. `acos` returns its argument in radians.
  225. ?expressions functions arg
  226. ?functions arg
  227. ?arg
  228.  The `arg` function returns the phase of a complex number, in radians.
  229. ?expressions functions asin
  230. ?functions asin
  231. ?asin
  232.  The `asin` function returns the arc sin (inverse sin) of its argument.
  233.  `asin` returns its argument in radians.
  234. ?expressions functions atan
  235. ?functions atan
  236. ?atan
  237.  The `atan` function returns the arc tangent (inverse tangent) of its
  238.  argument. `atan` returns its argument in radians.
  239. ?expressions functions besj0
  240. ?functions besj0
  241. ?besj0
  242.  The `besj0` function returns the j0th Bessel function of its argument.
  243.  `besj0` expects its argument to be in radians.
  244. ?expressions functions besj1
  245. ?functions besj1
  246. ?besj1
  247.  The `besj1` function returns the j1st Bessel function of its argument.
  248.  `besj1` expects its argument to be in radians.
  249. ?expressions functions besy0
  250. ?functions besy0
  251. ?besy0
  252.  The `besy0` function returns the y0th Bessel function of its argument.
  253.  `besy0` expects its argument to be in radians.
  254. ?expressions functions besy1
  255. ?functions besy1
  256. ?besy1
  257.  The `besy1` function returns the y1st Bessel function of its argument.
  258.  `besy1` expects its argument to be in radians.
  259. ?expressions functions ceil
  260. ?functions ceil
  261. ?ceil
  262.  The `ceil` function returns the smallest integer that is not less than its
  263.  argument. For complex numbers, `ceil` returns the smallest integer
  264.  not less than the real part of its argument.
  265. ?expressions functions cos
  266. ?functions cos
  267. ?cos
  268.  The `cos` function returns the cosine of its argument. `cos` expects its
  269.  argument to be in radians.
  270. ?expressions functions cosh
  271. ?functions cosh
  272. ?cosh
  273.  The `cosh` function returns the hyperbolic cosine of its argument.
  274.  `cosh` expects its argument to be in radians.
  275. ?expressions functions erf
  276. ?functions erf
  277. ?erf
  278.  The `erf` function returns the error function of the real part of
  279.  its argument.
  280.  If the argument is a complex value, the imaginary component is ignored.
  281. ?expressions functions erfc
  282. ?functions erfc
  283. ?erfc
  284.  The `erfc` function returns 1.0 - the error function of the
  285.  real part of its argument.
  286.  If the argument is a complex value, the imaginary component is ignored.
  287. ?expressions functions exp
  288. ?functions exp
  289. ?exp
  290.  The `exp` function returns the exponential function of its argument
  291.  (`e` raised to the power of its argument).
  292. ?expressions functions floor
  293. ?functions floor
  294. ?floor
  295.  The `floor` function returns the largest integer not greater than its
  296.  argument. For complex numbers, `floor` returns the largest
  297.  integer not greater than the real part of its argument.
  298. ?expressions functions gamma
  299. ?functions gamma
  300. ?gamma
  301.  The `gamma` function returns the gamma function of the real part of
  302.  its argument. For integer n, gamma(n+1) = n! .
  303.  If the argument is a complex value, the imaginary component is ignored.
  304. ?expressions functions ibeta
  305. ?functions ibeta
  306. ?ibeta
  307.  The `ibeta` function returns the incomplete beta function of the real
  308.  parts of its arguments. p, q > 0 and x in [0:1]
  309.  If the arguments are complex, the imaginary components are ignored.
  310. ?expressions functions inverf
  311. ?functions inverf
  312. ?inverf
  313.  The `inverf` function returns the inverse error function of the real
  314.  part of its argument.
  315. ?expressions functions igamma
  316. ?functions igamma
  317. ?igamma
  318.  The `igamma` function returns the incomplete gamma function of the real
  319.  parts of its arguments. a > 0 and x >= 0
  320.  If the arguments are complex, the imaginary components are ignored.
  321. ?expressions functions imag
  322. ?functions imag
  323. ?imag
  324.  The `imag` function returns the imaginary part of its argument as a
  325.  real number.
  326. ?expressions functions invnorm
  327. ?functions invnorm
  328. ?invnorm
  329.  The `invnorm` function returns the inverse normal distribution function
  330.  of the real part of its argument.
  331. ?expressions functions int
  332. ?functions int
  333. ?int
  334.  The `int` function returns the integer part of its argument, truncated
  335.  toward zero.
  336. ?expressions functions lgamma
  337. ?functions lgamma
  338. ?lgamma
  339.  The `lgamma` function returns the natural logarithm of the gamma
  340.  function of the real part of its argument.
  341.  If the argument is a complex value, the imaginary component is ignored.
  342. ?expressions functions log
  343. ?functions log
  344. ?log
  345.  The `log` function returns the natural logarithm (base `e`) of its
  346.  argument.
  347. ?expressions functions log10
  348. ?functions log10
  349. ?log10
  350.  The `log10` function returns the logarithm (base 10) of its argument.
  351. ?expressions functions norm
  352. ?functions norm
  353. ?norm
  354.  The `norm` function returns the normal distribution function
  355.  (or Gaussian) of the real part of its argument.
  356. ?expressions functions rand
  357. ?functions rand
  358. ?rand
  359.  The `rand` function returns a pseudo random number in the interval [0:1]
  360.  using the real part of its argument as a seed. If seed < 0 the sequence
  361.  is (re)initialized.
  362.  If the argument is a complex value, the imaginary component is ignored.
  363. ?expressions functions real
  364. ?functions real
  365. ?real
  366.  The `real` function returns the real part of its argument.
  367. ?expressions functions sgn
  368. ?functions sgn
  369. ?sgn
  370.  The `sgn` function returns 1 if its argument is positive, -1 if its
  371.  argument is negative, and 0 if its argument is 0. If the argument
  372.  is a complex value, the imaginary component is ignored.
  373. ?expressions functions sin
  374. ?functions sin
  375. ?sin
  376.  The `sin` function returns the sine of its argument. `sin` expects its
  377.  argument to be in radians.
  378. ?expressions functions sinh
  379. ?functions sinh
  380. ?sinh
  381.  The `sinh` function returns the hyperbolic sine of its argument. `sinh`
  382.  expects its argument to be in radians.
  383. ?expressions functions sqrt
  384. ?functions sqrt
  385. ?sqrt
  386.  The `sqrt` function returns the square root of its argument.
  387. ?expressions functions tan
  388. ?functions tan
  389. ?tan
  390.  The `tan` function returns the tangent of its argument. `tan` expects
  391.  its argument to be in radians.
  392. ?expressions functions tanh
  393. ?functions tanh
  394. ?tanh
  395.  The `tanh` function returns the hyperbolic tangent of its argument.
  396.  `tanh` expects its argument to be in radians.
  397. ?expressions operators
  398. ?operators
  399.  The operators in GNUPLOT are the same as the corresponding operators
  400.  in the C programming language, except that all operators accept
  401.  integer, real, and complex arguments, unless otherwise noted.
  402.  The ** operator (exponentiation) is supported, as in FORTRAN.
  403.  
  404.  Parentheses may be used to change order of evaluation.
  405. ?expressions operators binary
  406. ?operators binary
  407. ?binary
  408.  The following is a list of all the binary operators and their
  409.  usages:
  410.  
  411.   Symbol      Example      Explanation
  412.    **          a**b          exponentiation
  413.    *           a*b           multiplication
  414.    /           a/b           division
  415.    %           a%b         * modulo
  416.    +           a+b           addition
  417.    -           a-b           subtraction
  418.    ==          a==b          equality
  419.    !=          a!=b          inequality
  420.    &           a&b         * bitwise AND
  421.    ^           a^b         * bitwise exclusive OR
  422.    |           a|b         * bitwise inclusive OR
  423.    &&          a&&b        * logical AND
  424.    ||          a||b        * logical OR
  425.    ?:          a?b:c       * ternary operation
  426.  
  427.  (*) Starred explanations indicate that the operator requires
  428.  integer arguments.
  429.  
  430.  Logical AND (&&) and OR (||) short-circuit the way they do in C.
  431.  That is, the second && operand is not evaluated if the first is
  432.  false; the second || operand is not evaluated if the first is true.
  433.  
  434.  The ternary operator evaluates its first argument (a). If it is
  435.  true (non-zero) the second argument (b) is evaluated and returned,
  436.  otherwise the third argument (c) is evaluated and returned.
  437. ?expressions operators unary
  438. ?operators unary
  439. ?unary
  440.  The following is a list of all the unary operators and their
  441.  usages:
  442.  
  443.   Symbol     Example      Explanation
  444.    -           -a          unary minus
  445.    ~           ~a        * one's complement
  446.    !           !a        * logical negation
  447.    !           a!        * factorial
  448.  
  449.  (*) Starred explanations indicate that the operator requires an
  450.  integer argument.
  451.  
  452.  The factorial operator returns a real number to allow a greater range.
  453. ?help
  454.  The `help` command displays on-line help. To specify information on a
  455.  particular topic use the syntax:
  456.  
  457.          help {<topic>}
  458.  
  459.  If <topic> is not specified, a short message is printed about
  460.  GNUPLOT. After help for the requested topic is given, help for a
  461.  subtopic may be requested by typing its name, extending the help
  462.  request. After that subtopic has been printed, the request may be
  463.  extended again, or simply pressing return goes back one level to the
  464.  previous topic. Eventually, the GNUPLOT command line will return.
  465. ?load
  466.  The `load` command executes each line of the specified input file as
  467.  if it had been typed in interactively. Files created by the `save`
  468.  command can later be `load`ed. Any text file containing valid
  469.  commands can be created and then executed by the `load` command.
  470.  Files being `load`ed may themselves contain `load` commands. See
  471.  `comment` for information about comments in commands.
  472.  
  473.  The `load` command must be the last command on the line.
  474.  
  475.  Syntax:
  476.          load "<input-file>"
  477.  
  478.  The name of the input file must be enclosed in quotes.
  479.  
  480.  Examples:
  481.  
  482.          load 'work.gnu'
  483.          load "func.dat"
  484.  
  485.  The `load` command is performed implicitly on any file names given as
  486.  arguments to GNUPLOT. These are loaded in the order specified, and
  487.  then GNUPLOT exits.
  488. ?pause
  489.  The `pause` command displays any text associated with the command and
  490.  then waits a specified amount of time or until the carriage return is
  491.  pressed.  `pause` is especially useful in conjunction with `load` files.
  492.  
  493.  Syntax:
  494.          pause <time> {"<string>"}
  495.  
  496.  <time> may be any integer constant or expression. Choosing -1 will
  497.  wait until a carriage return is hit, zero (0) won't pause at all, and
  498.  a positive integer will wait the specified number of seconds.
  499.  
  500.  Note: Since `pause` is not part of the plot it may interact with
  501.  different device drivers differently (depending upon how text and
  502.  graphics are mixed).
  503.  
  504.  Examples:
  505.          pause -1    # Wait until a carriage return is hit
  506.          pause 3     # Wait three seconds
  507.          pause -1  "Hit return to continue"
  508.          pause 10  "Isn't this pretty?  It's a cubic-spline."
  509.  
  510. ?plot
  511. ?splot
  512.  `plot` and `splot` are the primary commands of the program. They plot
  513.  functions and data in many, many ways. `plot` is used to plot 2-d
  514.  functions and data, while `splot` plots 3-d surfaces and data.
  515.  
  516.  Syntax:
  517.  
  518.         plot {ranges} {<function> | {"<datafile>" {using ...}}} {title} {style}
  519.                      {, <function> {title} {style}...}
  520.  
  521.         splot {ranges} {<function> | {"<datafile>" {index i} {using ...}}}
  522.                      {title} {style} {, <function> {title} {style}...}
  523.  
  524.  where either a <function> or the name of a data file enclosed in quotes is
  525.  supplied.  A function is a mathematical expression, or a pair (`plot`) or
  526.  triple (`splot`) of mathematical expressions in the case of parametric
  527.  functions.  User-defined functions and variables may also be defined here.
  528.  
  529.  `plot` and `splot` commands can be as simple as
  530.  
  531.          plot sin(x)
  532.  
  533.  and
  534.  
  535.          splot x * y
  536.  
  537.  or as complex as (!)
  538.  
  539.   plot [t=1:10] [-pi:pi*2] tan(t),"data.1" using 2:3 with lines,t**2 with points
  540. ?plot data-file
  541. ?plot datafile
  542. ?splot data-file
  543. ?splot datafile
  544. ?data-file
  545. ?datafile
  546. ?data
  547.  Discrete data contained in a file can be displayed by specifying the
  548.  name of the data file (enclosed in quotes) on the `plot` or `splot`
  549.  command line. Data files should contain one data point per line.
  550.  Lines beginning with # (or ! on VMS) will be treated as comments
  551.  and ignored. For `plot`s, each data point represents an (x,y)
  552.  pair. For `splot`s, each point is an (x,y,z) triple. For `plot`s with
  553.  error bars (see `plot errorbars`), each data point is either
  554.  (x,y,ydelta) or (x,y,ylow,yhigh). In all cases, the numbers on each
  555.  line of a data file must be separated by blank space. This blank
  556.  space divides each line into columns.
  557.  
  558.  For `plot`s the x value may be omitted, and for `splot`s the x
  559.  and y values may be omitted. In either case the omitted values are
  560.  assigned the current coordinate number. Coordinate numbers start at 0
  561.  and are incremented for each data point read.
  562.  
  563.  To specify other formats, see `plot datafile using`.
  564.  
  565.  In the `plot` command, blank lines in the data file cause a break in
  566.  the plot. There will be no line drawn between the preceding and
  567.  following points if the plot style is `lines` or `linespoints` (see
  568.  `plot style`). This does not change the plot style, as would plotting
  569.  the data as separate curves.
  570.  
  571.  This example compares the data in the file population.dat to a
  572.  theoretical curve:
  573.  
  574.          pop(x) = 103*exp((1965-x)/10)
  575.          plot [1960:1990] 'population.dat', pop(x)
  576.  
  577.  The file population.dat might contain:
  578.  
  579.          # Gnu population in Antarctica since 1965
  580.          1965   103
  581.          1970   55
  582.          1975   34
  583.          1980   24
  584.          1985   10
  585.  
  586.  When a data file is plotted, `samples` and `isosamples` are ignored.
  587.  Curves plotted using the `plot` command are automatically extended to
  588.  hold the entire curve. Similarly grid data plotted using the `splot`
  589.  command is automatically extended, using the assumption that isolines
  590.  are separated by blank lines (a line with only a CR/LF in it).
  591.  
  592.  Implicitly, there are two types of 3-d datafiles. If all the isolines
  593.  are of the same length, the data is assumed to be a grid data, i.e.,
  594.  the data has a grid topology. Cross isolines in the other parametric
  595.  direction (the ith cross isoline passes through the ith point of all the
  596.  provided isolines) will also be drawn for grid data. (Note contouring
  597.  is available for grid data only.) If all the isolines are not of the
  598.  same length, no cross isolines will be drawn and contouring that data
  599.  is impossible.
  600.  
  601.  For splot, data files may contain more than one mesh and by default
  602.  all meshes are plotted. Meshes are separated from each other, in the
  603.  file, by double blank lines. To control and splot a single mesh from
  604.  a multi mesh file, use the index modifier. See `splot index` for more.
  605.  
  606.  For splot if 3-d datafile and using format (see `splot datafile using`)
  607.  specify only z (height field), a non parametric mode must be specified.
  608.  If, on the other hand, x, y, and z are all specified, a parametric
  609.  mode should be selected (see `set parametric`) since data is defining a
  610.  parametric surface.
  611.  
  612.  A simple example of plotting a 3-d data file is
  613.  
  614.          set parametric
  615.          splot 'glass.dat'
  616.  
  617.  or
  618.  
  619.          set noparametric
  620.          splot 'datafile.dat'
  621.  
  622.  where the file datafile.dat might contain:
  623.  
  624.          # The valley of the Gnu.
  625.          10
  626.          10
  627.          10
  628.  
  629.          10
  630.          5
  631.          10
  632.  
  633.          10
  634.          1
  635.          10
  636.  
  637.          10
  638.          0
  639.          10
  640.  
  641.  Note datafile.dat defines a 4 by 3 grid ( 4 rows of 3 points each ).
  642.  Rows are separated by blank lines.
  643.  
  644.  On some computer systems with a popen function (UNIX), the datafile
  645.  can be piped through a shell command by starting the file name
  646.  with a '<'.  For example:
  647.  
  648.          pop(x) = 103*exp(x/10)
  649.          plot "< awk '{print $1-1965, $2}' population.dat", pop(x)
  650.  
  651.  would plot the same information as the first population example
  652.  but with years since 1965 as the x axis.  It is also possible to
  653.  apply a single function to the "y" value only, e.g.
  654.  
  655.          plot 'population.dat' thru p(x)
  656.  
  657.  For more information about 3-d plotting, see `splot`.
  658. ?plot data-file using
  659. ?plot datafile using
  660. ?splot data-file using
  661. ?splot datafile using
  662. ?using
  663.  The format of data within a file can be selected with the `using`
  664.  option. An explicit scanf string can be used, or simpler column
  665.  choices can be made.
  666.  
  667.  Syntax:
  668.  
  669.          plot "datafile" { using { <ycol> |
  670.                                    <xcol>:<ycol> |
  671.                                    <xcol>:<ycol>:<ydelta> |
  672.                                    <xcol>:<ycol>:<ylow>:<yhigh> |
  673.                                    <xcol>:<ycol>:<ylow>:<yhigh>:<boxwidth> }
  674.                                  {"<scanf string>"} } ...
  675.  
  676.  and
  677.  
  678.          splot "datafile" { using { <xcol>:<ycol>:<zcol> | <zcol> }
  679.                                   {"<scanf string>"} } ...
  680.  
  681.  <xcol>, <ycol>, and <zcol> explicitly select the columns to plot from
  682.  a space or tab separated multicolumn data file. If only <ycol> is
  683.  selected for `plot`, <xcol> defaults to 1. If only <zcol> is selected
  684.  for `splot`, then only that column is read from the file. An <xcol> of
  685.  0 forces <ycol> to be plotted versus its coordinate number. <xcol>,
  686.  <ycol>, and <zcol> can be entered as constants or expressions.
  687.  
  688.  If errorbars (see also `plot errorbars`) are used for `plot`s,
  689.  ydelta (for example, a +/- error) should be provided as the third
  690.  column, or ylow and yhigh as third and fourth columns.
  691.  
  692.  If boxes or boxerrorbars are used for `plot`s, a fifth column to
  693.  specify the width of the box may be given.  This implies that columns
  694.  three and four must also be provided even if they are not used.
  695.  If you want to plot boxes from a data file with three columns,
  696.  set ylow and yhigh to y using the following command:
  697.          plot "datafile" using 1:2:2:2:3 with boxes
  698.  
  699.  Scanf strings override any <xcol>:<ycol>(:<zcol>) choices, except for
  700.  ordering of input, e.g.,
  701.          plot "datafile" using 2:1 "%f%*f%f"
  702.  causes the first column to be y and the third column to be x.
  703.  
  704.  If the scanf string is omitted, the default is generated based on the
  705.  <xcol>:<ycol>(:<zcol>) choices. If the `using` option is omitted, "%f%f"
  706.  is used for `plot` ("%f%f%f%f" for `errorbars` `plot`s) and "%f%f%f" is
  707.  used for `splot`.
  708.  
  709.  Examples:
  710.  
  711.          plot "MyData" using "%*f%f%*20[^\n]%f" with lines
  712.  
  713.  Data are read from the file "MyData" using the format
  714.  "%*f%f%*20[^\n]%f". The meaning of this format is: "%*f" ignore the
  715.  first number, "%f" then read in the second and assign to x,
  716.  "%*20[^\n]" then ignore 20 non-newline characters, "%f" then read in
  717.  the y value.
  718.  
  719.          n=3;
  720.          plot "MyData", "MyData" using n
  721.  
  722.  causes GNUPLOT to plot the second and third columns of MyData versus
  723.  the first column. The command 'n=4; replot' would then plot the second
  724.  and fourth columns of MyData versus the first column.
  725.  
  726.          splot "glass.dat" using 1
  727.  
  728.  causes GNUPLOT to plot the first coordinate of the points of glass.dat
  729.  as the z coordinate while ignoring the other two coordinates.
  730.  
  731.  Note: GNUPLOT first reads a line of the data file into a buffer and
  732.  then does a
  733.          sscanf(input_buffer, scanf_string, &x, &y{, &z});
  734.  where 'x', 'y', and 'z' are of type 'float'. Any scanf string that
  735.  specifies two (three for `splot`, three or four for `errorbars`) float
  736.  numbers may be used.
  737. ?plot errorbars
  738. ?errorbars
  739.  Error bars are supported for 2-d data file plots by reading one or
  740.  two additional columns specifying ydelta or ylow and yhigh
  741.  respectively. No support exists for x error bars or any error bars
  742.  for `splot`s.
  743.  
  744.  In the default situation, GNUPLOT expects to see three or four
  745.  numbers on each line of the data file, either (x, y, ydelta) or
  746.  (x, y, ylow, yhigh). The x coordinate must be specified. The order
  747.  of the numbers must be exactly as given above. Data files in this
  748.  format can easily be plotted with error bars:
  749.  
  750.          plot "data.dat" with errorbars
  751.  
  752.  The error bar is a vertical line plotted from (x, ylow) to (x,
  753.  yhigh). If ydelta is specified instead of ylow and yhigh,
  754.  ylow=y-ydelta and yhigh=y+ydelta are derived. If there
  755.  are only two numbers on the line, yhigh and ylow are both set to
  756.  y. To get lines plotted between the data points, `plot` the
  757.  data file twice, once with errorbars and once with lines.
  758.  
  759.  If y autoscaling is on, the y range will be adjusted to fit the
  760.  error bars.
  761.  
  762.  The `using` option may be used to specify how columns of the data file
  763.  are to be assigned to x, y, ydelta, ylow, and yhigh. The x column must
  764.  be provided and both the x and y columns must appear before the
  765.  errorbar columns. If three column numbers are given, they are x, y,
  766.  and ydelta. If four columns are given, they are x, y, ylow, and
  767.  yhigh.
  768.  
  769.  Examples:
  770.  
  771.          plot "data.dat" using 1:2:3:4 with errorbars
  772.          plot "data.dat" using 3:2:6 with errorbars
  773.          plot "data.dat" using 3:4:8:7 with errorbars
  774.  
  775.  The first example reads, x, y, ylow, and yhigh, from columns 1, 2, 3,
  776.  and 4. This is equivalent to the default.  The second example reads x
  777.  from the third column, y from second and ydelta from the sixth column.
  778.  The third example reads x from the third column, y from the fourth,
  779.  ylow from the eighth, and yhigh from seventh columns.
  780.  
  781.  See also `plot using` and `plot style`.
  782. ?plot parametric
  783. ?splot parametric
  784. ?parametric
  785.  When in parametric mode (`set parametric`) mathematical expressions must
  786.  be given in pairs for `plot` and in triplets for `splot`:
  787.          plot sin(t),t**2
  788.  or
  789.          splot cos(u)*cos(v),cos(u)*sin(v),sin(u)
  790.  
  791.  Data files are plotted as before, except any preceding parametric
  792.  function must be fully specified before a data file is given as a
  793.  plot. In other words, the x parametric function (sin(t) above) and
  794.  the y parametric function (t**2 above) must not be interrupted with
  795.  any modifiers or data functions; doing so will generate a syntax error
  796.  stating that the parametric function is not fully specified.
  797.  
  798.  Ranges take on a different meaning when in parametric mode. The first
  799.  range on the `plot` command is the `trange`, the next is the `xrange`,
  800.  and the last is the `yrange`. For `splot` the order is `urange`,
  801.  `vrange`, `xrange`, `yrange`, and finally `zrange`. The following
  802.  `plot` command shows setting the `trange` to [-pi:pi], the `xrange` to
  803.  [-1.3:1.3] and the `yrange` to [-1:1] for the duration of the plot:
  804.          plot [-pi:pi] [-1.3:1.3] [-1:1] sin(t),t**2
  805.  
  806.  Other modifiers, such as `with` and `title`, may be specified only
  807.  after the parametric function has been completed:
  808.          plot sin(t),t**2 title 'Parametric example' with linespoints
  809.  
  810.  
  811. ?splot ranges
  812. ?plot ranges
  813. ?ranges
  814.  The optional range specifies the region of the plot that will be
  815.  displayed.
  816.  
  817.  Ranges may be provided on the `plot` and `splot` command line and
  818.  affect only that plot, or in the `set xrange`, `set yrange`, etc.,
  819.  commands, to change the default ranges for future plots.
  820.  
  821.  Syntax:
  822.          [{<dummy-var> =} {<xmin> : <xmax>}] { [{<ymin> : <ymax>}] }
  823.  
  824.  where <dummy-var> is the independent variable (the defaults are x and
  825.  y, but this may be changed with `set dummy`) and the min and max
  826.  terms can be constant expressions.
  827.  
  828.  Both the min and max terms are optional. The ':' is also optional
  829.  if neither a min nor a max term is specified. This allows '[ ]' to
  830.  be used as a null range specification.
  831.  
  832.  Specifying a range in the `plot` command line turns autoscaling for
  833.  that axis off for that plot. Using one of the `set` range commands
  834.  turns autoscaling off for that axis for future plots, unless changed
  835.  later. (See `set autoscale`).
  836.  
  837.  Examples:
  838.  
  839.  This uses the current ranges:
  840.          plot cos(x)
  841.  
  842.  This sets the x range only:
  843.          plot [-10:30] sin(pi*x)/(pi*x)
  844.  
  845.  This is the same, but uses t as the dummy-variable:
  846.          plot [t = -10 :30]  sin(pi*t)/(pi*t)
  847.  
  848.  This sets both the x and y ranges:
  849.          plot [-pi:pi] [-3:3]  tan(x), 1/x
  850.  
  851.  This sets only the y range, and turns off autoscaling on both axes:
  852.          plot [ ] [-2:sin(5)*-8] sin(x)**besj0(x)
  853.  
  854.  This sets xmax and ymin only:
  855.          plot [:200] [-pi:]  exp(sin(x))
  856.  
  857.  This sets the x, y, and z ranges:
  858.          splot [0:3] [1:4] [-1:1] x*y
  859. ?splot index
  860. ?index
  861.  Splotting of multi mesh data files can be controlled via the index modifier.
  862.  A data file can contain more than one mesh, and in that case all meshes
  863.  in the file will be splotted by default. Meshes are separated from each
  864.  other, in the data file, by double blank lines. To splot a single mesh in
  865.  a multi mesh file use the index modifier which specify which mesh to splot.
  866.  First mesh is mesh 0.
  867.  
  868.  Example:
  869.  
  870.  splot "data1" index 2 with points
  871.  
  872.  will splot the third mesh in file data1 with points.
  873. ?plot style
  874. ?splot style
  875. ?style
  876. ?plot with
  877. ?with
  878.  Plots may be displayed in one of eight styles: `lines`, `points`,
  879.  `linespoints`, `impulses`, `dots`, `errorbars`, `steps`, `boxes`, or
  880.  `boxerrorbars`.  The `lines` style connects adjacent points with lines.
  881.  The `points` style displays a small symbol at each point.
  882.  The `linespoints` style does both `lines` and `points`.
  883.  The `impulses` style displays a vertical line from the x axis
  884.  (or from the grid base for `splot`) to each point. The `dots` style
  885.  plots a tiny dot at each point; this is useful for
  886.  scatter plots with many points.
  887.  
  888.  The `errorbars` style is only relevant to 2-d data file plotting. It
  889.  is treated like `points` for `splot`s and function `plot`s. For data
  890.  `plot`s, `errorbars` is like `points`, except that a vertical error
  891.  bar is also drawn: for each point (x,y), a line is drawn from
  892.  (x,ylow) to (x,yhigh). A tic mark is placed at the ends of the error
  893.  bar. The ylow and yhigh values are read from the data file's columns,
  894.  as specified with the `using` option to plot. See `plot errorbars` for
  895.  more information.
  896.  
  897.  The `boxes` style is only relevant to 2-d plotting.  It draws
  898.  a box centred about the given x coordinate from the yaxis to the given
  899.  y coordinate.   The width of the box is obtained in one of three
  900.  ways.  If a data file has a fifth column, this will be used to set
  901.  the width of the box.  Otherwise, if a width has been set using the
  902.  `set boxwidth` command, this will be used.  Otherwise the width of each
  903.  box will be calculated automatically so that it touches the adjacent
  904.  boxes.  Another style called `boxerrorbars` is also available and is
  905.  only  relevant to 2-d data file plotting.  This style is a combination
  906.  of the `boxes` and `errorbars` styles.
  907.  
  908.  The `steps` style is only relevant to 2-d plotting.  This style
  909.  connects consecutive points with two line segments: the first
  910.  from (x1,y1) to (x2,y1) and the second from (x2,y1) to (x2,y2).
  911.  
  912.  Default styles are chosen with the `set function style` and
  913.  `set data style` commands.
  914.  
  915.  By default, each function and data file will use a different
  916.  line type and point type, up to the maximum number of available
  917.  types. All terminal drivers support at least six different point
  918.  types, and re-use them, in order, if more than six are required.
  919.  The LaTeX driver supplies an additional six point types (all variants
  920.  of a circle), and thus will only repeat after twelve curves are
  921.  plotted with points.
  922.  
  923.  If desired, the style and (optionally) the line type and point type
  924.  used for a curve can be specified.
  925.  
  926.  Syntax:
  927.  
  928.          with <style> {<linetype> {<pointtype>}}
  929.  
  930.  where <style> is either `lines`, `points`, `linespoints`, `impulses`,
  931.  `dots`, `steps`, or `errorbars`. The <linetype> and <pointtype> are
  932.  positive integer constants or expressions and specify the line type
  933.  and point type to be used for the plot. Line type 1 is the first line
  934.  type used by default, line type 2 is the second line type used by
  935.  default, etc.
  936.  
  937.  Examples:
  938.  
  939.  This plots sin(x) with impulses:
  940.          plot sin(x) with impulses
  941.  
  942.  This plots x*y with points, x**2 + y**2 default:
  943.          splot x*y w points, x**2 + y**2
  944.  
  945.  This plots tan(x) with the default function style, "data.1" with lines:
  946.          plot [ ] [-2:5] tan(x), "data.1" with l
  947.  
  948.  This plots "leastsq.dat" with impulses:
  949.          plot 'leastsq.dat' w i
  950.  
  951.  This plots the data file 'population' with boxes:
  952.          plot "population" with boxes
  953.  
  954.  This plots "exper.dat" with errorbars and lines connecting the points:
  955.          plot 'exper.dat' w lines, 'exper.dat' w errorbars
  956.  
  957.  Here 'exper.dat' should have three or four data columns.
  958.  
  959.  This plots x**2 + y**2 and x**2 - y**2 with the same line type:
  960.          splot x**2 + y**2 with line 1, x**2 - y**2 with line 1
  961.  
  962.  This plots sin(x) and cos(x) with linespoints, using the
  963.  same line type but different point types:
  964.          plot sin(x) with linesp 1 3, cos(x) with linesp 1 4
  965.  
  966.  This plots file "data" with points style 3:
  967.          plot "data" with points 1 3
  968.  Note that the line style must be specified when specifying the point
  969.  style, even when it is irrelevant. Here the line style is 1 and the
  970.  point style is 3, and the line style is irrelevant.
  971.  
  972.  See `set style` to change the default styles.
  973. ?plot title
  974. ?splot title
  975.  A title of each plot appears in the key. By default the title is
  976.  the function or file name as it appears on the plot command line.
  977.  The title can be changed by using the `title` option. This option
  978.  should precede any `with` option.
  979.  
  980.  Syntax:
  981.          title "<title>"
  982.  
  983.  where <title> is the new title of the plot and must be enclosed in
  984.  quotes. The quotes will not be shown in the key.
  985.  
  986.  Examples:
  987.  
  988.  This plots y=x with the title 'x':
  989.          plot x
  990.  
  991.  This plots the "glass.dat" file with the title 'surface of revolution':
  992.          splot "glass.dat" title 'surface of revolution'
  993.  
  994.  This plots x squared with title "x^2" and "data.1" with title
  995.  'measured data':
  996.          plot x**2 title "x^2", "data.1" t 'measured data'
  997.  
  998.  The title can be omitted from the key with the "notitle" option for
  999.  plot and splot.  This can be useful when some curves
  1000.  are plotted solely for decoration; for example, if one wanted a
  1001.  circular border for a polar plot, he could say:
  1002.  
  1003.  Example:
  1004.         set polar
  1005.         plot my_function(x), 1 notitle
  1006.  
  1007.  This would generate a key entry for "my_function" but not for "1".
  1008.  See the poldat.dem example.
  1009.  
  1010.  
  1011. ?print
  1012.  The `print` command prints the value of <expression> to the screen.
  1013.  
  1014.  Syntax:
  1015.          print <expression>
  1016.  
  1017.  See `expressions`.
  1018. ?pwd
  1019.  The `pwd` command prints the name of the working directory to the screen.
  1020.  
  1021.  Syntax:
  1022.          pwd
  1023. ?quit
  1024.  The `exit` and `quit` commands and END-OF-FILE character will exit
  1025.  GNUPLOT. All these commands will clear the output device (as the
  1026.  `clear` command does) before exiting.
  1027. ?replot
  1028.  The `replot` command without arguments repeats the last `plot` or `splot`
  1029.  command. This can be useful for viewing a plot with different `set`
  1030.  options, or when generating the same plot for several devices.
  1031.  
  1032.  Arguments specified after a `replot` command will be added onto the last
  1033.  `plot` (`splot`) command (with an implied ',' separator) before it is
  1034.  repeated. `replot` accepts the same arguments as the `plot` (`splot`)
  1035.  commands except that ranges cannot be specified.
  1036.  See `command line-editing` for ways to edit the last `plot`
  1037.  (`splot`) command.
  1038. ?reread
  1039.  The `reread` command causes the current gnuplot command file, as specified
  1040.  by a `load` command or on the command line, to be reset to its starting
  1041.  point before further commands are read from it.  This essentially implements
  1042.  an endless loop of the commands from the beginning of the command file to
  1043.  the `reread` command.  The `reread` command has no effect if input from
  1044.  standard input.
  1045. ?save
  1046.  The `save` command saves user-defined functions, variables, set
  1047.  options or all three plus the last `plot` (`splot`) command to the
  1048.  specified file.
  1049.  
  1050.  Syntax:
  1051.          save  {<option>} "<filename>"
  1052.  
  1053.  where <option> is `functions`, `variables` or `set`. If no option is
  1054.  used, GNUPLOT saves functions, variables, set options and the last `plot`
  1055.  (`splot`) command.
  1056.  
  1057.  `save`d files are written in text format and may be read by the `load`
  1058.  command.
  1059.  
  1060.  The filename must be enclosed in quotes.
  1061.  
  1062.  Examples:
  1063.  
  1064.          save "work.gnu"
  1065.          save functions 'func.dat'
  1066.          save var 'var.dat'
  1067.          save set "options.dat"
  1068. ?set
  1069. ?show
  1070. ?show all
  1071.  The `set` command sets LOTS of options.
  1072.  
  1073.  The `show` command shows their settings. `show all` shows all the
  1074.  settings.
  1075. ?set angles
  1076. ?show angles
  1077. ?angles
  1078. ?set angles degrees
  1079.  By default, GNUPLOT assumes the independent variable in polar plots
  1080.  is in units of radians. If `set angles degrees` is specified before
  1081.  `set polar` then the default range is [0:360] and the independent
  1082.  variable has units of degrees. This is particularly useful for
  1083.  plots of data files. The angle setting also hold for the 3-d
  1084.  mapping as set via the `set mapping` command.
  1085.  
  1086.  Syntax:
  1087.          set angles { degrees | radians }
  1088.          show angles
  1089. ?set arrow
  1090. ?set noarrow
  1091. ?show arrow
  1092. ?arrow
  1093. ?noarrow
  1094.  Arbitrary arrows can be placed on a plot using the `set arrow`
  1095.  command.
  1096.  
  1097.  Syntax:
  1098.  
  1099.           set arrow {<tag>} {from <sx>,<sy>{,<sz>}}
  1100.                             {to <ex>,<ey>{,<ez>}} {{no}head}
  1101.           set noarrow {<tag>}
  1102.           show arrow
  1103.  
  1104.  
  1105.  Unspecified coordinates default to 0. The x, y, and z values are in
  1106.  the graph's coordinate system. The z coordinate is only used in
  1107.  `splot` commands. <tag> is an integer that identifies the arrow. If no
  1108.  tag is given, the lowest unused tag value is assigned automatically.
  1109.  The tag can be used to delete or change a specific arrow. To change
  1110.  any attribute of an existing arrow, use the `set arrow` command with
  1111.  the appropriate tag, and specify the parts of the arrow to be
  1112.  changed. Specifying nohead requests the arrow be drawn without a head
  1113.  (yielding a line segment). By default, arrows have heads.
  1114.  
  1115.  Arrows outside the plotted boundaries are permitted but may cause
  1116.  device errors.
  1117.  
  1118.  Examples:
  1119.  
  1120.  To set an arrow pointing from the origin to (1,2), use:
  1121.           set arrow to 1,2
  1122.  To set an arrow from (-10,4,2) to (-5,5,3), and tag the arrow number
  1123.  3, use:
  1124.           set arrow 3 from -10,4,2 to -5,5,3
  1125.  To change the preceding arrow begin at 1,1,1, without an arrow head,
  1126.  use:
  1127.           set arrow 3 from 1,1,1 nohead
  1128.  To delete arrow number 2 use:
  1129.           set noarrow 2
  1130.  To delete all arrows use:
  1131.           set noarrow
  1132.  To show all arrows (in tag order) use:
  1133.           show arrow
  1134. ?set autoscale
  1135. ?set noautoscale
  1136. ?show autoscale
  1137. ?autoscale
  1138. ?noautoscale
  1139.  Auto scaling may be set individually on the x, y or z axis
  1140.  or globally on all axes. The default is to autoscale all axes.
  1141.  
  1142.  When autoscaling, the plot range is automatically computed and the
  1143.  dependent axis (y for a `plot` and z for `splot`) is scaled to
  1144.  include the range of the function or data being plotted.
  1145.  
  1146.  If autoscaling of the dependent axis (y or z) is not set, the
  1147.  current y or z range is used.
  1148.  
  1149.  See `set yrange` or `set zrange`.
  1150.  
  1151.  Autoscaling the independent variables (x for `plot` and x,y for
  1152.  `splot`) is a request to set the domain to match any data file being
  1153.  plotted. If there are no data files then autoscaling an independent
  1154.  variable has no effect. In other words, in the absence of a data
  1155.  file, functions alone do not affect the x range (or the y range if
  1156.  plotting z = f(x,y)).
  1157.  
  1158.  See `set xrange`, or `set yrange`.
  1159.  
  1160.  The behavior of autoscaling remains consistent in parametric mode,
  1161.  however, there are more dependent variables and hence more control
  1162.  over x, y, and z plot scales. In parametric mode, the independent or
  1163.  dummy variable is t for `plot`s and u,v for `splot`s.  Autoscale in
  1164.  parametric mode, then, controls all ranges (t, u, v, x, y, and z) and
  1165.  allows x, y, and z to be fully autoscaled.
  1166.  
  1167.  See `set parametric`.
  1168.  
  1169.  Syntax:
  1170.          set autoscale <axes>
  1171.          set noautoscale <axes>
  1172.          show autoscale
  1173.  
  1174.  where <axes> is either `x`, `y`, `z` or `xy`. If <axes> is not given
  1175.  then all axes are assumed.
  1176.  
  1177.  Examples:
  1178.  
  1179.  This sets autoscaling of the y axis. x axis autoscaling is not
  1180.  affected.
  1181.          set autoscale y
  1182.  
  1183.  This sets autoscaling of the x and y axes.
  1184.          set autoscale xy
  1185.  
  1186.  This sets autoscaling of the x, y and z axes.
  1187.          set autoscale
  1188.  
  1189.  This disables autoscaling of the x, y and z axes.
  1190.          set noautoscale
  1191.  
  1192.  This disables autoscaling of the z axis only.
  1193.          set noautoscale z
  1194. ?autoscale parametric
  1195. ?set autoscale t
  1196.  When in parametric mode (`set parametric`) the xrange is as
  1197.  fully scalable as the yrange. In other words, in parametric
  1198.  mode the x axis can be automatically scaled to fit the range
  1199.  of the parametric function that is being plotted. Of course,
  1200.  the y axis can also be automatically scaled just as in the
  1201.  non-parametric case. If autoscaling on the x axis is not set,
  1202.  the current x range is used.
  1203.  
  1204.  When there is a mix of data files and functions, the xrange of
  1205.  the functions is selected as that of the data files if autoscale
  1206.  is true for x. While this keeps the behavior compatible with
  1207.  non-parametric plotting, it may not be retained in the future.
  1208.  The problem is that, in parametric mode, the x and y ranges are
  1209.  not as distinguishable as in the non-parametric mode and this
  1210.  behavior may not be the most useful.
  1211.  
  1212.  For completeness a last command `set autoscale t` is accepted.
  1213.  However, the effect of this "scaling" is very minor. When
  1214.  GNUPLOT determines that the t range would be empty it makes a
  1215.  small adjustment if autoscaling is true. Otherwise, GNUPLOT
  1216.  gives an error. Such behavior may, in fact, not be very useful
  1217.  and the command `set autoscale t` is certainly questionable.
  1218.  
  1219.  `splot` extends the above idea similarly. If autoscaling is set then
  1220.  x, y, and z ranges are computed and each axis scaled to fit the
  1221.  resulting data.
  1222. ?set border
  1223. ?set noborder
  1224. ?show border
  1225. ?border
  1226. ?noborder
  1227.  The `set border` and `set noborder` commands controls the display of
  1228.  the plot borders for the `plot` and `splot` commands.
  1229.  
  1230.  Syntax:
  1231.          set border
  1232.          set noborder
  1233.          show border
  1234. ?set boxwidth
  1235. ?show boxwidth
  1236. ?boxwidth
  1237.  The `set boxwidth` command is used to set the default width of
  1238.  boxes in the `boxes` and `boxerrorbars` styles.
  1239.  
  1240.  If a data file is plotted without the width being specified in the
  1241.  fifth column, or a function is plotted, the width of each box is
  1242.  set by the `set boxwidth` command.  If a width is given after the
  1243.  `set boxwidth` command then this is used as the width.  Otherwise
  1244.  the width of each box will be calculated automatically so that
  1245.  it touches the adjacent boxes.
  1246.  
  1247.  Syntax:
  1248.           set boxwidth {<width>}
  1249.           show boxwidth
  1250.  
  1251.  To set the box width to automatic use the command
  1252.           set boxwidth
  1253. ?set clabel
  1254. ?set noclabel
  1255. ?show clabel
  1256. ?clabel
  1257. ?noclabel
  1258.  GNUPLOT will vary the linetype used for each contour level
  1259.  when clabel is set. When this option on (the default), a
  1260.  legend labels each linestyle with the z level it represents.
  1261.  
  1262.  Syntax:
  1263.          set clabel
  1264.          set noclabel
  1265.          show clabel
  1266. ?set clip
  1267. ?set noclip
  1268. ?show clip
  1269. ?clip
  1270. ?noclip
  1271.  GNUPLOT can clip data points and lines that are near the boundaries
  1272.  of a plot.
  1273.  
  1274.  Syntax:
  1275.          set clip <clip-type>
  1276.          set noclip <clip-type>
  1277.          show clip
  1278.  
  1279.  Three clip types are supported by GNUPLOT: `points`, `one`, and `two`.
  1280.  One, two, or all three clip types may be active for a single plot.
  1281.  
  1282.  The `points` clip type forces GNUPLOT to clip (actually, not plot at
  1283.  all) data points that fall within but too close to the boundaries
  1284.  (this is so the large symbols used for points will not extend outside
  1285.  the boundary lines). Without clipping points near the boundaries may
  1286.  look bad; try adjusting the x and y ranges.
  1287.  
  1288.  Setting the `one` clip type causes GNUPLOT to plot the line segments
  1289.  which have only one of the two endpoints within the plotting region.
  1290.  Only the in-range portion of the line is drawn.  The alternative is to
  1291.  not draw any portion of the line segment.
  1292.  
  1293.  Some lines may have both endpoints out of range, but pass through the
  1294.  plotting area. Setting the `two` clip-type allows the visible portion
  1295.  of these lines to be drawn.
  1296.  
  1297.  In no case is a line drawn outside the plotting area.
  1298.  
  1299.  The defaults are `noclip points`, `clip one`, and `noclip two`.
  1300.  
  1301.  To check the state of all forms of clipping, use
  1302.          show clip
  1303.  
  1304.  For backward compatibility with older versions, the following forms
  1305.  are also permitted.
  1306.         set clip
  1307.         set noclip
  1308.  `set clip` is synonymous with `set clip points`. `set noclip` turns
  1309.  off all three types of clipping.
  1310. ?set cntrparam
  1311. ?show cntrparam
  1312. ?cntrparam
  1313.  Sets the different parameters for the contouring plot (see also `contour`).
  1314.  
  1315.  Syntax:
  1316.   set cntrparam { { linear | cubicspline | bspline } |
  1317.      points <n> |
  1318.      order <n>  |
  1319.      levels { [ auto ] <n> |
  1320.      discrete <z1>,<z2>, ... |
  1321.      incremental {<start>, <incr>{, <end>} } }
  1322.  
  1323.  Examples:
  1324.      set cntrparam bspline
  1325.      set cntrparam points 7
  1326.      set cntrparam order 10
  1327.      set cntrparam levels auto 5                   # 5 automatic levels
  1328.      set cntrparam levels discrete .1,1/exp(1),.9  # 3 discrete at .1,.37 and .9
  1329.      set cntrparam levels incremental  0,.1,.4
  1330.      # 5 incremental levels at 0, .1, .2, .3 and .4
  1331.      set cntrparam levels 10
  1332.      # sets n = 10 retaining current setting of auto, discr. and
  1333.      # increment's start and increment value, while changing end
  1334.      set cntrparam levels incremental 100,50
  1335.      # set start = 100 and increment = 50, retaining n levels
  1336.  
  1337.  This command controls the way contours are plotted. <n> should be an
  1338.  integral constant expression and <z1>, <z2> any constant expressions.
  1339.  The parameters are:
  1340.  
  1341.  `linear`, `cubicspline`, `bspline` - Controls type of approximation or
  1342.  interpolation. If `linear`, then the contours are drawn piecewise
  1343.  linear, as extracted from the surface directly. If `cubicspline`, then
  1344.  piecewise linear contours are interpolated to form a somewhat smoother
  1345.  contours, but which may undulate. The third option is the uniform
  1346.  `bspline`, which only approximates the piecewise linear data but is
  1347.  guaranteed to be smoother.
  1348.  
  1349.  `points` - Eventually all drawings are done with piecewise linear
  1350.  strokes.  This number controls the number of points used to
  1351.  approximate a curve.  Relevant for `cubicspline` and `bspline` modes
  1352.  only.
  1353.  
  1354.  `order`  - Order of the bspline approximation to be used. The bigger this
  1355.  order is, the smoother the resulting contour.  (Of course, higher order
  1356.  bspline curves will move further away from the original piecewise linear
  1357.  data.)  This option is relevant for `bspline` mode only. Allowed values are
  1358.  integers in the range from 2 (linear) to 10.
  1359.  
  1360.  `levels` - Number of contour levels, 'n'.  Selection of the levels is
  1361.  controlled by 'auto' (default), 'discrete', and 'incremental'. For 'auto',
  1362.  if the surface is bounded by zmin and zmax then contours will be
  1363.  generated from zmin+dz to zmax-dz in steps of size dz, where
  1364.  dz = (zmax - zmin) / (levels + 1).  For 'discrete', contours will be
  1365.  generated at z = z1, z2 ... as specified.  The number of discrete levels
  1366.  is limited to MAX_DISCRETE_LEVELS, defined in plot.h to be 30.  If
  1367.  'incremental', contours are generated at <n> values of z beginning at
  1368.  <start> and increasing by <increment>.
  1369. ?set contour
  1370. ?show contour
  1371. ?contour
  1372.  Enable contour drawing for surfaces. This option is available for `splot`
  1373.  only.
  1374.  
  1375.  Syntax:
  1376.          set contour { base | surface | both }
  1377.          set nocontour
  1378.  
  1379.  If no option is provided to `set contour`, the default is `base`.
  1380.  The three options specify where to draw the contours: `base` draws
  1381.  the contours on the grid base where the x/ytics are placed, `surface`
  1382.  draws the contours on the surfaces themselves, and `both` draws the
  1383.  contours on both the base and the surface.
  1384.  
  1385.  See also `set cntrparam` for the parameters that affect the drawing of
  1386.  contours.
  1387. ?set data style
  1388. ?show data style
  1389. ?data style
  1390.  The `set data style` command changes the default plotting style
  1391.  for data plots.
  1392.  
  1393.  Syntax:
  1394.          set data style
  1395.          show data style
  1396.          set data style <style-choice>
  1397.  
  1398.  In the first case, `set data style` returns the possible style
  1399.  choices:  `lines`, `points`, `linespoints`, `dots`, `steps`,
  1400.  `impulses`, `errorbars`, `boxes` or `boxerrorbars`.  `show data style`
  1401.  shows the current default plotting style for data.  `set data style dots`
  1402.  would actually  change the default plotting style.  See also `plot`.
  1403. ?set dgrid3d
  1404. ?show dgrid3d
  1405. ?dgrid3d
  1406.  Enables and sets the different parameters for non grid to grid data mapping.
  1407.  
  1408.  Syntax:
  1409.          set dgrid3d {,{<row_size>}{,{<col_size>}{,<norm>}}}
  1410.          set nodgrid3d
  1411.  
  1412.  Examples:
  1413.         set dgrid3d 10,10,2
  1414.         set dgrid3d ,,4
  1415.  
  1416.  The first selects a grid of size 10 by 10 to be constructed and the use
  1417.  of L2 norm in the distance computation. The second only modifies the norm
  1418.  to be used to L4.
  1419.  
  1420.  By default this option is disabled. When enabled, 3d data read from a file
  1421.  is always treaded as a scattered data set. A grid with dimensions derived
  1422.  from a bounding box of the scattered data and size as specified by the
  1423.  row/col_size above is created for plotting and contouring. The grid is
  1424.  equally spaced in x and y while the z value is computed as a weighted
  1425.  average of the scattered points distance to the grid points. The closer
  1426.  the scatter points to a grid point are the more effect they have on that
  1427.  grid point. The third, norm, parameter controls the "meaning" of the
  1428.  distance, by specifying the distance norm. This distance computation
  1429.  is optimized for powers of 2 norms, specifically 1, 2, 4, 8, and 16, but
  1430.  any nonnegative integer can be used.
  1431.  
  1432.  This dgrid3d option is a simple low pass filter that converts scattered data
  1433.  to a grid data set. More sophisticated approaches to this problem exists and
  1434.  should be used as a preprocess to and outside gnuplot if this simple solution
  1435.  is found inadequate.
  1436.  
  1437. ?set dummy
  1438. ?show dummy
  1439. ?dummy
  1440.  By default, GNUPLOT assumes that the independent variable for the
  1441.  `plot` command is x, and the independent variables for the `splot`
  1442.  command are x and y. They are called the dummy variables because it
  1443.  is just a notation to indicate the independent variables.
  1444.  The `set dummy` command changes these default dummy variable names.
  1445.  For example, it may be more convenient to call the dummy variable t
  1446.  when plotting time functions:
  1447.  
  1448.          set dummy t
  1449.          plot sin(t), cos(t)
  1450.  
  1451.  Syntax:
  1452.          set dummy <dummy-var>{,<dummy-var>}
  1453.          show dummy
  1454.  
  1455.  Examples:
  1456.          set dummy u,v
  1457.          set dummy ,s
  1458.  
  1459.  to set both dummy variables to u and v or set only the second
  1460.  variable to s.
  1461.  
  1462.  The `set parametric` command also changes the dummy variables (to t
  1463.  for `plot` and u,v for `splot`s).
  1464.  
  1465. ?set format
  1466. ?show format
  1467. ?format
  1468.  The format of the tic-mark labels can be set with the `set format`
  1469.  command. The default format for both axes is "%g", but other formats
  1470.  such as "%.2f" or "%3.0fm" are often desirable. Anything accepted by
  1471.  printf when given a double precision number, and then accepted by the
  1472.  terminal, will work. In particular, the formats f, e, and g will work,
  1473.  and the d, o, x, c, s, and u formats will not work.
  1474.  
  1475.  Syntax:
  1476.          set format {<axes>} {"<format-string>"}
  1477.          show format
  1478.  
  1479.  where <axes> is either `x`, `y`, `z`, `xy`, or nothing (which is the
  1480.  same as `xy`). The length of the string representing a ticmark (after
  1481.  formatting with printf) is restricted to 100 characters.  If the
  1482.  format string is omitted, the format will be returned to the default
  1483.  "%g". For LaTeX users, the format "$%g$" is often desirable.  If the
  1484.  empty string "" is used, no label will be plotted with each tic,
  1485.  though the tic mark will still be plotted. To eliminate all tic marks,
  1486.  use `set noxtics` or `set noytics`.
  1487.  
  1488.  See also `set xtics` and `set ytics` for more control over tic labels.
  1489. ?set function style
  1490. ?show function style
  1491. ?function style
  1492.  The `set function style` command changes the default plotting style
  1493.  for functions.
  1494.  
  1495.  Syntax:
  1496.          set function style
  1497.          show function style
  1498.          set function style <style-choice>
  1499.  
  1500.  In the first case, `set function style` returns the possible style
  1501.  choices:  `lines`, `points`, `linespoints`, `dots`, `steps`,
  1502.  `impulses`, `errorbars`, `boxes`, or `boxerrorbars`.
  1503.  `show function style` shows the current default plotting style for
  1504.  functions.  `set function style linespoints` would actually change
  1505.  the default plotting style.   See also `plot`.
  1506. ?show functions
  1507.  The `show functions` command lists all user-defined functions and
  1508.  their definitions.
  1509.  
  1510.  Syntax:
  1511.          show functions
  1512. ?set grid
  1513. ?show grid
  1514. ?grid
  1515.  The optional `set grid` draws a grid at the tic marks with the axis
  1516.  linetype.
  1517.  
  1518.  Syntax:
  1519.          set grid
  1520.          set nogrid
  1521.          show grid
  1522. ?set hidden3d
  1523. ?show hidden3d
  1524.  The `set hidden3d` command enables hidden line removal for explicit
  1525.  surface plotting (see `splot`).
  1526.  Hidden line removal may be used for both explicit functions and for
  1527.  explicit data.  It now works for parametric surfaces as well.
  1528.  
  1529.  When this flag is set both the surface hidden portion and possibly
  1530.  its hidden contours (see `set contour`) as well as the hidden grid will be
  1531.  removed. Labels and arrows are always visible and are unaffected by this
  1532.  command.
  1533.  
  1534.  Each surface has its hidden parts removed with respect to itself and to
  1535.  other surfaces, if more than one surface is plotted. This mode is
  1536.  meaningful when surfaces are plotted using line style drawing only.
  1537.  
  1538.  Syntax:
  1539.          set hidden3d
  1540.          set nohidden3d
  1541.          show hidden3d
  1542. ?set isosamples
  1543. ?show isosamples
  1544. ?isosamples
  1545.  An isoline is a curve parametrized by one of the surface parameters
  1546.  while the other surface parameter is fixed. Isolines are a simple
  1547.  means to display a surface. By fixing the u parameter of surface
  1548.  s(u,v), the iso-u lines of the form c(v) = s(u0,v) are produced, and
  1549.  by fixing the v parameter, the iso-v lines of the form c(u) = s(u,v0)
  1550.  are produced.
  1551.  
  1552.  The isoline density of surfaces may be changed by the `set isosamples`
  1553.  command. By default, sampling is set to 10 isolines per u or v axis.
  1554.  A higher sampling rate will produce more accurate plots, but will take
  1555.  longer. This parameter has no effect on data file plotting.
  1556.  
  1557.  Syntax:
  1558.          set isosamples <iso_1> {,<iso_2>}
  1559.          show isosamples
  1560.  
  1561.  Each surface plot will have <iso_1> iso-u lines and <iso_2> iso-v lines.
  1562.  If you only specify <iso_1>, <iso_2> will be set to the same value as
  1563.  <iso_1>.
  1564.  
  1565.  When a surface plot is being done without the removal of hidden
  1566.  lines, `set samples` also has an effect on the number of points being
  1567.  evaluated. See `set samples`.
  1568. ?set key
  1569. ?show key
  1570. ?key
  1571.  The `set key` enables a key describing curves on a plot.  By default
  1572.  the key is placed in the upper right corner of the plot.
  1573.  
  1574.  Syntax:
  1575.          set key
  1576.          set key <x>,<y>{,<z>}
  1577.          set nokey
  1578.          show key
  1579.  
  1580.  The coordinates <x>, <y> (and <z> for `splot`s) specify the location
  1581.  of the key on the plot. The key is drawn as a sequence of lines, with
  1582.  one plot described on each line. On the right hand side of each line
  1583.  is a representation that attempts to mimic the way the curve is
  1584.  plotted.  On the left side of each line is the text description,
  1585.  obtained from the `plot` command. See `plot title` to change this
  1586.  description. The lines are vertically arranged so an imaginary
  1587.  straight line divides the left- and right-hand sides of the key. It is
  1588.  the coordinates of this line that are specified with the `set key`
  1589.  command. In a `plot`, only the x and y coordinates are used to specify
  1590.  the line position.  For a `splot`, x, y and z are all being used as a
  1591.  3-d location mapped using the same mapping as the plot itself to form
  1592.  the required 2-d screen position of the imaginary line.
  1593.  
  1594.  Some or all of the key may be outside of the plot boundary, although
  1595.  this may interfere with other labels and may cause an error on some
  1596.  devices.
  1597.  
  1598.  Examples:
  1599.  
  1600.  This places the key at the default location:
  1601.          set key
  1602.  This disables the key:
  1603.          set nokey
  1604.  This places a key at coordinates 2,3.5,2
  1605.          set key 2,3.5,2
  1606. ?set label
  1607. ?set nolabel
  1608. ?show label
  1609. ?label
  1610. ?nolabel
  1611.  Arbitrary labels can be placed on the plot using the `set label`
  1612.  command.  If the z coordinate is given on a `plot` it is ignored; if
  1613.  it is missing on a `splot` it is assumed to be 0.
  1614.  
  1615.  Syntax:
  1616.  
  1617.           set label {<tag>} {"<label_text>"} {at <x>,<y>{,<z>}}
  1618.                             {<justification>}
  1619.           set nolabel {<tag>}
  1620.           show label
  1621.  
  1622.  
  1623.  The text defaults to "", and the position to 0,0,0.  The <x>, <y>, and
  1624.  <z> values are in the graph's coordinate system.  The tag is an
  1625.  integer that is used to identify the label. If no <tag> is given, the
  1626.  lowest unused tag value is assigned automatically. The tag can be used
  1627.  to delete or change a specific label. To change any attribute of an
  1628.  existing label, use the `set label` command with the appropriate tag,
  1629.  and specify the parts of the label to be changed.
  1630.  
  1631.  By default, the text is placed flush left against the point x,y,z.
  1632.  To adjust the way the label is positioned with respect to the point
  1633.  x,y,z, add the parameter <justification>, which may be `left`, `right`
  1634.  or `center`, indicating that the point is to be at the left, right or
  1635.  center of the text. Labels outside the plotted boundaries are
  1636.  permitted but may interfere with axes labels or other text.
  1637.  
  1638.  Examples:
  1639.  
  1640.  To set a label at (1,2) to "y=x" use:
  1641.           set label "y=x" at 1,2
  1642.  To set a label "y=x^2" with the right of the text at (2,3,4), and tag
  1643.  the label number 3, use:
  1644.           set label 3 "y=x^2" at 2,3,4 right
  1645.  To change the preceding label to center justification, use:
  1646.           set label 3 center
  1647.  To delete label number 2 use:
  1648.           set nolabel 2
  1649.  To delete all labels use:
  1650.           set nolabel
  1651.  To show all labels (in tag order) use:
  1652.           show label
  1653.  
  1654.  (The EEPIC, Imagen, LaTeX, and TPIC drivers allow \\ in a string to specify
  1655.  a newline.)
  1656. ?set logscale
  1657. ?set nologscale
  1658. ?show logscale
  1659. ?logscale
  1660. ?nologscale
  1661.  Log scaling may be set on the x, y, and z axes.
  1662.  
  1663.  Syntax:
  1664.          set logscale <axes> <base>
  1665.          set nologscale <axes>
  1666.          show logscale
  1667.  
  1668.  where <axes> may be any combinations of `x`, `y`, and `z`, in any
  1669.  order, and where <base> is the base of the log scaling.  If <base>
  1670.  is not given, then 10 is assumed.  If <axes> is not given then all
  1671.  three axes are assumed.  The command `set logscale` turns on log
  1672.  scaling on the specified axes, while `set nologscale` turns off
  1673.  log scaling.
  1674.  
  1675.  Examples:
  1676.  
  1677.  To enable log scaling in both x and z axes:
  1678.         set logscale xz
  1679.  To enable scaling log base 2 of the y axis:
  1680.         set logscale y 2
  1681.  To disable z axis log scaling:
  1682.         set nologscale z
  1683. ?set mapping
  1684. ?show mapping
  1685. ?mapping
  1686.  
  1687.  Syntax:
  1688.          set mapping { cartesian | spherical | cylindrical }
  1689.  
  1690.  Data for `splot`s are usually in regular Euclidean space and are
  1691.  provided in Cartesian coordinates. Such 3-d data require three
  1692.  coordinates (x, y and z) or one coordinate (only z) in each line in
  1693.  the data file.  In order to be able to use spherical or cylindrical
  1694.  coordinate systems, use the `set mapping` command. In both cases two
  1695.  coordinates are expected in each line of the data. For a spherical
  1696.  coordinate system, these are theta and phi (in units as specified by
  1697.  `set angles`) and the mapping is:
  1698.  
  1699.          x = cos( theta ) * cos( phi )
  1700.          y = sin( theta ) * cos( phi )
  1701.          z = sin( phi )
  1702.  
  1703.  For a cylindrical coordinate system, the mapping uses two variables,
  1704.  theta (in units as specified by `set angles`) and z:
  1705.  
  1706.          x = cos( theta )
  1707.          y = sin( theta )
  1708.          z = z
  1709.  
  1710.  Again, note that mapping will affect data file `splot`s only.
  1711. ?set offsets
  1712. ?show offsets
  1713. ?offsets
  1714.  The amount of the graph that the plot takes up may be controlled to
  1715.  some extent with the `set offsets` command. This command takes four
  1716.  offset arguments: <left>, <right>, <top> and <bottom>. By default,
  1717.  each offset is 0. Each offset may be a constant or an expression. Left
  1718.  and right offsets are given in units of the x axis, while top and
  1719.  bottom offsets are given in units of the y axis. The plot of sin(x),
  1720.  displayed with offsets of 0, 0, 2, 2 will take up 1/3 of the
  1721.  displayed y axis. Offsets are particularly useful with polar
  1722.  coordinates as a means of compensating for aspect ratio distortion.
  1723.  Offsets are ignored in `splot`s.
  1724.  
  1725.  Syntax:
  1726.          set offsets <left>, <right>, <top>, <bottom>
  1727.          show offsets
  1728. ?set output
  1729. ?show output
  1730. ?output
  1731.  By default, plots are displayed to the standard output. The
  1732.  `set output` command redirects the display to the specified file
  1733.  or device.
  1734.  
  1735.  Syntax:
  1736.          set output {"<filename>"}
  1737.          show output
  1738.  
  1739.  The filename must be enclosed in quotes. If the filename is
  1740.  omitted, output will be sent to the standard output.
  1741.  
  1742.  On machines with popen functions (UNIX), output can be piped
  1743.  through a shell command if the first letter of the filename
  1744.  is '|'.  For instance,
  1745.  
  1746.  Syntax:
  1747.          set output "|lpr -Plaser filename"
  1748.          set output "|lp -dlaser filename"
  1749.  
  1750.  (On MSDOS machines, set output "prn" will direct the output
  1751.  to the default printer.)
  1752.  
  1753. ?set parametric
  1754. ?set noparametric
  1755. ?show parametric
  1756. ?parametric
  1757. ?noparametric
  1758.  The `set parametric` command changes the meaning of `plot` (`splot`)
  1759.  from normal functions to parametric functions. The command
  1760.  `set noparametric` changes the plotting style back to normal,
  1761.  single-valued expression plotting.
  1762.  
  1763.  In 2-d plotting, a parametric function is determined by a pair
  1764.  of parametric functions operating on a parameter. An example
  1765.  of a 2-d parametric function would be plot sin(t),cos(t) (which
  1766.  defines a circle).
  1767.  
  1768.  For 3-d plotting, the surface is described as x=f(u,v), y=g(u,v),
  1769.  z=h(u,v). Therefore a triplet of functions are required. An example of
  1770.  3-d parametric function would be cos(u)*cos(v),cos(u)*sin(v),sin(u)
  1771.  (which defines a sphere). It takes three parametric function
  1772.  specifications in terms of the parametric dummy arguments to describe
  1773.  a single graph.
  1774.  
  1775.  The total set of possible plots is a superset of the simple f(x)
  1776.  style plots, since the two (three) functions can describe the
  1777.  x and y (and z) values to be computed separately. In fact,
  1778.  plots of the type t,f(t) (u,v,f(u,v)) are equivalent to those
  1779.  produced with f(x) when the x values are computed using the
  1780.  identity function as the first function.
  1781.  
  1782.  Note that the order the parametric functions are specified is
  1783.  xfunction, yfunction (and zfunction) and that each operates over the
  1784.  common parametric domain.
  1785.  
  1786.  Also, the `set parametric` function implies a new range of values.
  1787.  Whereas the normal f(x) and f(x,y) style plotting assume an xrange
  1788.  and yrange (and zrange), the parametric mode additionally specifies a
  1789.  trange, urange, and vrange. These ranges may be set
  1790.  directly with `set trange`, `set urange` and `set vrange`, or by
  1791.  specifying the range on the `plot` or `splot` commands. Currently
  1792.  the default range for these parametric variables is [-5:5].
  1793.  Setting the ranges to something more meaningful is expected.
  1794. ?set polar
  1795. ?set nopolar
  1796. ?show polar
  1797. ?polar
  1798. ?nopolar
  1799.  The `set polar` command changes the meaning of the plot from
  1800.  rectangular coordinates to polar coordinates. In polar coordinates,
  1801.  the dummy variable (x) is an angle. The range of this angle is changed
  1802.  from whatever it was to [0:2*pi], or, if degree unit has been selected,
  1803.  to [0:360] (see `set angles`).
  1804.  
  1805.  The command `set nopolar` changes the meaning of the plot back to the
  1806.  default rectangular coordinate system. The range of x is changed from
  1807.  whatever it was to [-10:10].
  1808.  
  1809.  The `set polar` command is not supported for `splot`s.  See the
  1810.  `set mapping` command for similar functionality for `splot`s.
  1811.  
  1812.  While in polar coordinates the meaning of an expression in x is really
  1813.  r = f(x), where x is an angle of rotation. The xrange controls the
  1814.  domain (the angle) of the function, and the yrange controls the range
  1815.  (the radius). The plot is plotted in a rectangular box, and the x and
  1816.  y axes are both in units of the radius. Thus, the yrange controls both
  1817.  dimensions of the plot output. The tics and units are written along
  1818.  the axes rather than at the left and bottom. These unit are offset by
  1819.  <rmin> specified by the `rrange` (See `set rrange`). It is not
  1820.  possible to specify different output dimensions in the x or y
  1821.  directions. The yrange can be used to shift the plot diagonally to
  1822.  display only the first or third quadrants.
  1823.  
  1824.  Syntax:
  1825.          set polar
  1826.          set nopolar
  1827.          show polar
  1828.  Example:
  1829.          set polar
  1830.          plot x*sin(x)
  1831.          plot [-2*pi:2*pi] [-3:3] x*sin(x)
  1832.  The first plot uses the default polar angular domain of 0 to 2*pi.
  1833.  The radius (and the size of the plot) is scaled automatically. The
  1834.  second plot expands the domain, and restricts the range of the radius
  1835.  (and the size of the plot) to [-3:3].
  1836. ?set rrange
  1837. ?show rrange
  1838. ?rrange
  1839.  The `set rrange` command sets the radial range used to compute x and y
  1840.  values when in polar mode. If not in polar mode (see `set polar`) then
  1841.  this range is not used. Use of this command offsets the polar
  1842.  singularity to the <rmin> value and shifts the units on the axes tic
  1843.  marks. For instance, `set rrange [-40:40]` would set the origin to -40
  1844.  and would plot values of radial values between -40 to 40. Thus, if
  1845.  360 degrees of data were plotted, then the plot would extend 80 units
  1846.  in radially from the origin.  To view the entire plot,  a
  1847.  `set yrange [-80:80]` command would create a square viewport with
  1848.  a circular plot tangent at the axes.  Because `xrange` is used
  1849.  specify the angular extent, only a square viewport can be specified
  1850.  by `yrange`.  For instance, `set yrange [0:80]` would display the
  1851.  first quadrant and `set yrange [-80:0]` would display the third
  1852.  quadrant.  Any square viewport of any size can be specified but it
  1853.  is constrained to be centered on a 45 degree line.
  1854.  
  1855.  This range may also be specified on the `plot` command line when in
  1856.  polar mode.
  1857.  
  1858.  Syntax:
  1859.          set rrange [{<rmin> : <rmax>}]
  1860.  
  1861.  where <rmin> and <rmax> terms are constants or expressions.
  1862.  
  1863.  Both the <rmin> and <rmax> terms are optional. Anything omitted will
  1864.  not be changed, so
  1865.          set rrange [:10]
  1866.  changes rmax to 10 without affecting rmin.
  1867. ?set samples
  1868. ?show samples
  1869. ?samples
  1870.  The sampling rate of functions may be changed by the `set samples`
  1871.  command. By default, sampling is set to 100 points. A higher sampling
  1872.  rate will produce more accurate plots, but will take longer. This
  1873.  parameter no longer has any effect on data-file plotting.
  1874.  
  1875.  Syntax:
  1876.          set samples <samples_1> {,<samples_2>}
  1877.          show samples
  1878.  
  1879.  When a 2-d plot is being done, only the value of <samples_1> is
  1880.  relevant.
  1881.  
  1882.  When a surface plot is being done without the removal of hidden
  1883.  lines, the value of samples specifies the number of samples that are
  1884.  evaluated per iso line. Each iso-v line will have <sample_1> samples
  1885.  and each iso-u line will have <sample_2> samples. If you only specify
  1886.  <samples_1>, <samples_2> will be set to the same value as <samples_1>.
  1887.  See also `set isosamples`.
  1888. ?set size
  1889. ?show size
  1890. ?size
  1891.  The `set size` command scales the displayed size of the plot.  On some
  1892.  terminals, changing the size of the plot will result in text being
  1893.  misplaced. Increasing the size of the plot may produce strange
  1894.  results. Decreasing is safer.
  1895.  
  1896.  Syntax:
  1897.  
  1898.          set size {<xscale>,<yscale>}
  1899.          show size
  1900.  
  1901.  The <xscale> and <yscale> values are the scaling factors for the size.
  1902.  The defaults (1,1) are selected if the scaling factors are omitted.
  1903.  
  1904.  Examples:
  1905.  
  1906.  To set the size to normal size use:
  1907.          set size
  1908.  To make the plot half size use:
  1909.          set size 0.5,0.5
  1910.  To make a landscape plot have a 1:1 aspect ratio in polar mode use:
  1911.          set size 0.721,1.0
  1912.  To show the size use:
  1913.          show size
  1914.  
  1915.  For the LaTeX and Fig terminals the default size (scale factor 1,1)
  1916.  is 5 inches wide by 3 inches high. The big Fig terminal (`bfig`) is 7
  1917.  inches wide by 5 inches high. The postscript default is landscape mode
  1918.  10 inches wide and 7 inches high.
  1919.  Note that the size of the plot includes the space used by the labels;
  1920.  the plotting area itself is smaller.
  1921. ?set style
  1922. ?show style
  1923. ?style
  1924. ?lines
  1925. ?points
  1926. ?linespoints
  1927. ?impulses
  1928. ?dots
  1929. ?steps
  1930. ?errorbars
  1931. ?boxes
  1932. ?boxerrorbars
  1933. ?bargraph
  1934.  Plots may be displayed in one of eight styles: `lines`, `points`,
  1935.  `linespoints`, `impulses`, `dots`, `steps`, `errorbars`, `boxes`, or
  1936.  `boxerrorbars`.  The `lines` style connects adjacent points with lines.
  1937.  The `points` style displays a small symbol at each point.
  1938.  The `linespoints` style does both `lines` and `points`.
  1939.  The `impulses` style displays a vertical line from the x axis
  1940.  (or from the grid base for `splot`) to each point. The `dots` style
  1941.  plots a tiny dot at each point; this is useful for
  1942.  scatter plots with many points.
  1943.  
  1944.  The `errorbars` style is only relevant to 2-d data file plotting. It
  1945.  is treated like `points` for `splot`s and function `plot`s. For data
  1946.  `plot`s, `errorbars` is like `points`, except that a vertical error
  1947.  bar is also drawn: for each point (x,y), a line is drawn from
  1948.  (x,ylow) to (x,yhigh). A tic mark is placed at the ends of the error
  1949.  bar. The ylow and yhigh values are read from the data file's columns,
  1950.  as specified with the `using` option to plot. See `plot errorbars` for
  1951.  more information.
  1952.  
  1953.  The `boxes` style is only relevant to 2-d plotting.  It draws
  1954.  a box centred about the given x coordinate from the yaxis to the given
  1955.  y coordinate.   The width of the box is obtained in one of three
  1956.  ways.  If a data file has a fifth column, this will be used to set
  1957.  the width of the box.  Otherwise, if a width has been set using the
  1958.  `set boxwidth` command, this will be used.  Otherwise the width of each
  1959.  box will be calculated automatically so that it touches the adjacent
  1960.  boxes.  Another style called `boxerrorbars` is also available and is
  1961.  only  relevant to 2-d data file plotting.  This style is a combination
  1962.  of the `boxes` and `errorbars` styles.
  1963.  
  1964.  The `steps` style is only relevant to 2-d plotting.  This style
  1965.  connects consecutive points with two line segments: the first
  1966.  from (x1,y1) to (x2,y1) and the second from (x2,y1) to (x2,y2).
  1967.  
  1968.  Default styles are chosen with the `set function style` and
  1969.  `set data style` commands. See `plot style` for information about
  1970.  how to override the default plotting style for individual functions.
  1971.  
  1972.  Syntax:
  1973.          set function style <style>
  1974.          set data style <style>
  1975.          show function style
  1976.          show data style
  1977.  
  1978.  where <style> is `lines`, `points`, `linespoints`, `impulses`,
  1979.  `dots`, `steps`, `errorbars`, `boxes`, or `boxerrorbars`.
  1980. ?set surface
  1981. ?set nosurface
  1982. ?show surface
  1983. ?surface
  1984.  `set surface` controls the display of surfaces. It is useful if
  1985.  contours are to be displayed by themselves. Whenever `set nosurface`
  1986.  is issued, no surface isolines/mesh will be drawn. See also
  1987.  `set contour`.
  1988.  
  1989.  Syntax:
  1990.          set surface
  1991.          set nosurface
  1992.          show surface
  1993. ?set terminal
  1994. ?show terminal
  1995. ?terminal
  1996.  GNUPLOT supports many different graphics devices. Use the
  1997.  `set terminal` command to select the type of device for which
  1998.  GNUPLOT will produce output.
  1999.  
  2000.  Syntax:
  2001.          set terminal {<terminal-type>}
  2002.          show terminal
  2003.  
  2004.  If <terminal-type> is omitted, GNUPLOT will list the available
  2005.  terminal types. <terminal-type> may be abbreviated.
  2006.  
  2007.  Use `set output` to redirect this output to a file or device.
  2008.  
  2009.  Several terminals have additional options. For example, see `dumb`,
  2010.  `iris4d`, `hpljii` or `postscript`.
  2011. ?set terminal aifm
  2012. ?aifm
  2013.  Several options may be set in the Adobe Illustrator 3.0 driver.
  2014.  
  2015.  Syntax:
  2016.          set terminal aifm {<color>}
  2017.                                  {"<fontname>"} {<fontsize>}
  2018.  
  2019.  Selecting default sets all options to their default values.
  2020.  <color> is either `color` or `monochrome`.
  2021.  "<fontname>" is the name of a valid PostScript font.
  2022.  <fontsize> is the size of the font in PostScript points, before
  2023.  scaling by the `set size` command.
  2024.  Defaults are `monochrome`, "Helvetica", and 14pt.
  2025.  
  2026.  Also, since AI does not really support multiple pages, multiple
  2027.  graphs will be output directly on one another.  However, each graph
  2028.  will be grouped individually, making it easy to separate them inside
  2029.  AI (just pick them up and move them).
  2030.  
  2031.  Examples:
  2032.  
  2033.          set term aifm
  2034.          set term aifm 22
  2035.          set size 0.7,1.4
  2036.          set term aifm color "Times-Roman" 14
  2037.  
  2038. ?set terminal atari
  2039. ?atari
  2040.  The `atari` terminal has an option to set the character size and the
  2041.  screen colors.  The driver expects a space separated list the char size
  2042.  and maximal 16 3 digit hex numbers where each digit represents RED, GREEN
  2043.  and BLUE (in that order).  The range of 0-15 is scaled to whatever color
  2044.  range the screen actually has.  On a normal ST screen, odd and even
  2045.  intensities are the same.
  2046.  
  2047.  Examples:
  2048.  
  2049.         set terminal atari 4 # (use small (6x6) font)
  2050.         set terminal atari 6 0 # (set monochrome screen to white on black)
  2051.         set terminal atari 13 0 fff f00 f0 f ff f0f ff0
  2052.         # (set first eight colors to black, white, green, blue, cyan, \
  2053.           purple, and yellow and use large font (8x16).)
  2054.  
  2055.  Additionally, if an environment variable GNUCOLORS exists, its
  2056.  contents are interpreted as an options string, but an explicit terminal
  2057.  option takes precedence.
  2058.  
  2059. ?set terminal dumb
  2060. ?dumb
  2061.  The dumb terminal driver has an optional size specification.
  2062.  
  2063.  Syntax:
  2064.          set terminal dumb {<xsize> <ysize>}
  2065.  
  2066.  where <xsize> and <ysize> set the size of the dumb terminals. Default
  2067.  is 79 by 24.
  2068.  
  2069.  Examples:
  2070.          set term dumb
  2071.          set term dumb 79 49 #(VGA screen - why would anyone want to do that!?)
  2072. ?set terminal epson
  2073. ?set terminal epson180
  2074. ?set terminal epson60
  2075. ?set terminal starc
  2076. ?set terminal tandy60
  2077. ?epson
  2078.  
  2079.  This set of drivers support Epson printers and derivatives.   See also
  2080.  the NEC driver.  `epson` is a generic 9 wire printer with a resolution
  2081.  of 512x384. `starc` is a Star Color printer with the same resolution.
  2082.  `epson180` and `epson60` are 180 dpi and 60 dpi drivers for newer
  2083.  24 wire printers.  This also includes bubble jet printers.  Their
  2084.  resolutions are 1260x1080 and 480x360, respectively.  The `tandy60`
  2085.  is identical to the `epson60` driver with one additional escape
  2086.  sequence to start IBM mode.  With all of these drivers, a binary
  2087.  copy is required on a PC to print.  Do not use `print`.
  2088.  
  2089.      copy file /b lpt1:
  2090.  
  2091.  
  2092. ?set terminal gpic
  2093. ?gpic
  2094.  
  2095.  This driver is only known to work the Free Software Foundation
  2096.  gpic/groff package.  Modification for the Document Workbench
  2097.  pic/troff package would be appreciated.  FSF gpic can also
  2098.  produce TeX output.
  2099.  
  2100.  A simple graph can be formatted using
  2101.  
  2102.       groff -p -mpic -Tps file.pic > file.ps.
  2103.  
  2104.  The output from pic can be pipe-lined into eqn, so it is possible to put
  2105.  complex functions in a graph with the set label and set {x/y}label commands.
  2106.  For instance,
  2107.  
  2108.     set ylab '@space 0 int from 0 to x alpha ( t ) roman d t@'
  2109.  
  2110.  Will label the y-axis with a nice integral if formatted with the
  2111.  command:
  2112.  
  2113.     gpic filename.pic | geqn -d@@ -Tps | groff -m[macro-package] -Tps > filename.ps
  2114.  
  2115.  Figures made this way can be scaled to fit into a document. The pic
  2116.  language is easy to understand, so the graphs can be edited by hand if
  2117.  need be. All coordinates in the pic-file produced by gnuplot are given
  2118.  as x+gnuplotx and y+gnuploty. By default x and y are given the value 0
  2119.  If this line is removed with an editor in a number of files one can
  2120.  put several graphs i one figure like this (default size is 5.0x3.0 inches)
  2121.  
  2122.     .PS 8.0
  2123.     x=0;y=3
  2124.     copy "figa.pic"
  2125.     x=5;y=3
  2126.     copy "figb.pic"
  2127.     x=0;y=0
  2128.     copy "figc.pic"
  2129.     x=5;y=0
  2130.     copy "figd.pic"
  2131.     .PE
  2132.  
  2133.  This will produce an 8 inches wide figure with four graphs in two rows
  2134.  on top of each other
  2135.  
  2136.  One can also achieve the same thing by the command
  2137.  
  2138.    set term pic x y
  2139.  
  2140.  For example, using
  2141.  
  2142.    .PS 6.0
  2143.    copy "trig.pic"
  2144.    .PE
  2145.  
  2146. ?set terminal hpljii
  2147. ?hpljii
  2148.  The HP LaserJet II and HP DeskJet drivers have a single option.
  2149.  
  2150.  Syntax:
  2151.          set terminal hpljii {<resolution>}
  2152.          set terminal hpdj   {<resolution>}
  2153.  
  2154.  where <resolution> is the resolution of the output in dots per inch.
  2155.  It must be `75`, `100`, `150` or `300`.  Note: there must be
  2156.  enough memory available to rasterize at the higher resolutions.
  2157.  
  2158.  Example:
  2159.          set terminal hpljii 150
  2160.  
  2161. ?set terminal latex
  2162. ?latex
  2163.  The LaTeX and EMTeX driver allows one to specify a font type and a font
  2164.  size for the labels around a gnuplot graph.
  2165.  
  2166.  Options are:
  2167.  Fonts:
  2168.        default          (Roman 10 point)
  2169.        courier
  2170.        roman
  2171.  
  2172.  at any size you specify. (BEWARE METAFONT will not like odd sizes.)
  2173.  eg.
  2174.        gnuplot> set term latex courier 5
  2175.  
  2176.  Unless your driver is capable of building fonts at any size (e.g. dvips),
  2177.  stick to the standard 10, 11 and 12 point size.
  2178.  
  2179. ?set terminal iris4d
  2180. ?iris4d
  2181.  The iris4d driver can operate in two modes.
  2182.  
  2183.  Syntax:
  2184.          set terminal iris4d {24}
  2185.  
  2186.  If the hardware supports only 8 bits, use the default
  2187.  `set terminal iris4d`. If, however, the hardware supports 24 bits
  2188.  (8 per red/green/blue), use `set terminal iris4d 24`.
  2189.  
  2190.  When using 24-bit mode, the colors can be directly specified via the
  2191.  file .gnuplot_iris4d that is searched in the current directory and
  2192.  then in the home directory specified by the HOME environment variable.
  2193.  This file holds RGB values for the background, border, labels and nine
  2194.  plotting colors, in that order. For example, here is a file containing
  2195.  the default colors:
  2196.  
  2197.          85   85   85     /* Back Ground */
  2198.          0    0    0      /* Boundary */
  2199.          170  0    170    /* Labeling */
  2200.          85   255  255    /* Plot Color 1 */
  2201.          170  0    0      /* Plot Color 2 */
  2202.          0    170  0      /* Plot Color 3 */
  2203.          255  85   255    /* Plot Color 4 */
  2204.          255  255  85     /* Plot Color 5 */
  2205.          255  85   85     /* Plot Color 6 */
  2206.          85   255  85     /* Plot Color 7 */
  2207.          0    170  170    /* Plot Color 8 */
  2208.          170  170  0      /* Plot Color 9 */
  2209.  
  2210.  This file has exactly 12 lines of RGB triples. No empty lines are
  2211.  allowed and anything after the third number in line is ignored.
  2212.  
  2213. ?set terminal mf
  2214. ?mf
  2215. ?metafont
  2216.  The mf terminal driver creates a input file to the MetaFont program.
  2217.  Thus a figure may be used in the TeX document in the same way as a
  2218.  character is.
  2219.  
  2220.  To use the plot in a document the MetaFont program must be run
  2221.  with the output file from GnuPlot as input. Thus, the user needs a basic
  2222.  knowledge of the font creating process and inclusion of a new font in a
  2223.  document. However, if the Metafont program is set up properly at the
  2224.  local site an unexperienced user could perform the operation without
  2225.  much trouble.
  2226.  
  2227.  The text support is based on a MetaFont character set.
  2228.  Currently the Computer Modern Roman font set is input but the
  2229.  user are in principal free to chose whatever fonts he/she needs.
  2230.  The MetaFont source files for the chosen font must be available.
  2231.  Each character is stored in a separate picture variable in MetaFont. These
  2232.  variables may be manipulated (rotated, scaled etc.) when characters are
  2233.  needed. The drawback is the interpretation time in the MetaFont
  2234.  program. On some machines (i.e. PC) the limited amount of memory available
  2235.  may also cause problem if too many pictures are stored.
  2236.  
  2237. ?set terminal mf detailed
  2238. ?mf detailed
  2239. ?metafont detailed
  2240.  
  2241.  - Set your terminal to metafont:
  2242.    set terminal mf
  2243.  - Select an output-file, e.g.:
  2244.    set output "myfigures.mf"
  2245.  - Do your plots. Each plot will generate a separate character. Its default
  2246.  size will be 5*3 inches. You can change the size by saying set size 0.5,0.5
  2247.  or whatever fraction of the default size you want to have.
  2248.  
  2249.  - Quit gnuplot.
  2250.  
  2251.  - Generate a tfm- and gf-file by running metafont on the output of gnuplot.
  2252.  Since the plot is quite large (5*3 in), you will have to use a version
  2253.  of metafont that has a value of at least 150000 for memmax. On Unix-systems
  2254.  these are conventionally installed under the name bigmf. For the following
  2255.  assume that the command virmf stands for a big version of metafont. For example:
  2256.  
  2257.  - Invoke metafont:
  2258.      virmf '&plain'
  2259.  - Select the output device: At the metafont prompt ('*') type:
  2260.      \mode:=CanonCX;     % or whatever printer you use
  2261.  - Optionally select a magnification:
  2262.      mag:=1;             % or whatever you wish
  2263.  - Input the gnuplot-file:
  2264.      input myfigures.mf
  2265.  On a typical Unix machine there will usually be a script called mf that
  2266.  executes virmf '&plain', so you probably can substitute mf for virmf &plain.
  2267.  This will generate two files: mfput.tfm and mfput.$$$gf (where $$$ indicates
  2268.  the resolution of your device). The above can be conveniently achieved by
  2269.  typing everything on the command line, e.g.:
  2270.  virmf '&plain' '\mode:=CanonCX; mag:=1; input myfigures.mf'
  2271.  In this case the output files will be named myfigures.tfm and
  2272.  myfigures.300gf.
  2273.  
  2274.  - Generate a pk-file from the gf-file using gftopk:
  2275.    gftopk myfigures.300gf myfigures.300pk
  2276.  The name of the output-file for gftopk depends on the dvi-driver you use.
  2277.  Ask your local TeX-administrator about the naming conventions.
  2278.  Next, either install the tfm- and pk-files in the appropriate directories,
  2279.  or set your environment-variables properly. Usually this involves setting
  2280.  TEXFONTS to include the current directory and do the same thing for the
  2281.  environment-variable that your dvi-driver uses (no standard name here...).
  2282.  This step is necessary so that TeX will find the font-metric file and your
  2283.  dvi-driver will find the pk-file.
  2284.  
  2285.  - To include your plots in your document you have to tell TeX the font:
  2286.    \font\gnufigs=myfigures
  2287.  Each plot you made is stored in a single character. The first plot is
  2288.  character 0, the second is character 1, and so on... After doing the above
  2289.  step you can use the plots just like any other characters. Therefore, to
  2290.  place plots 1 and 2 centered in your document, all you have to do is:
  2291.    \centerline{\gnufigs\char0}
  2292.    \centerline{\gnufigs\char1}
  2293.  in plain TeX. For LaTeX you can, of course, use the picture environment
  2294.  and place the plot according to your wishes using the \makebox and \put
  2295.  macros.
  2296.  
  2297.  It saves you a lot of time, once you have generated the
  2298.  font, since TeX handles the plots as characters and uses minimal time to
  2299.  place them. Also the documents you make change more often, than the plots
  2300.  do. Also it saves a lot of TeX-memory. One last advantage of
  2301.  using the metafont-driver is that the dvi-file really remains device
  2302.  independent, because no \special-commands are used as in the eepic- and
  2303.  tpic-drivers.
  2304. ?set terminal mif
  2305. ?mif
  2306.  Several options may be set in the MIF 3.00 driver.
  2307.  
  2308.  Syntax:
  2309.       set terminal mif {<pentype>} {<curvetype>} {<help>}
  2310.  
  2311.  <pentype> selects "colour" of the graphics.
  2312.       `colour`     plot lines with line types >= 0 in colour (MIF sep. 2-7).
  2313.       `monochrome` plot all line types in black (MIF sep. 0).
  2314.  <curvetype> selects how "curves" are plotted.
  2315.       `polyline`   plot curves as continuous curves.
  2316.       `vectors`    plot curves as collections of vectors
  2317.  <help> print online help on standard error output.
  2318.       `help`       print a short description of the usage, and the options
  2319.       `?`          print a short description of the usage
  2320.  
  2321.  This terminal driver produces Frame Maker MIF format version 3.00. It
  2322.  plots in MIF Frames with the size 15*10 [cm], and plot primitives with
  2323.  the same pen will be grouped in the same MIF group. Plot primitives in
  2324.  a gnuplot plot will be plotted in a MIF Frame, and several MIF Frames
  2325.  are collected in one large MIF Frame.
  2326.  Plot primitives with line types >= 0 will as default be drawn in colour.
  2327.  As default curves are plotted as continuous lines. The MIF font used for
  2328.  text is "Times".
  2329.  
  2330.  Examples:
  2331.  
  2332.       set term mif
  2333.       set term mif vectors
  2334.       set term mif help
  2335.  
  2336.  
  2337. ?set terminal nec-cp6
  2338. ?nec-cp6
  2339.  One option may be set in the nec-cp6 driver.  The resolution of this
  2340.  driver is 400x320.
  2341.  
  2342.  Syntax:
  2343.          set terminal nec-cp6 monochrome
  2344.          set terminal nec-cp6 color
  2345.          set terminal nec-cp6 draft
  2346.  
  2347. ?set terminal pbm
  2348. ?pbm
  2349.  Several options may be set in the PBMplus driver.
  2350.  
  2351.  Syntax:
  2352.          set terminal pbm {<fontsize>} {<colormode>}
  2353.  
  2354.  where <fontsize> is `small`, `medium`, or `large` and <colormode> is
  2355.  `monochrome`, `gray` or `color`.
  2356.  Default size is 640 pixels wide and 480 pixels high.
  2357.  The output for `monochrome` is a portable bitmap (one bit per pixel).
  2358.  The output for `gray` is a portable graymap (three bits per pixel).
  2359.  The output for `color` is a portable pixmap (color, four bits per pixel).
  2360.  The output of these drivers can be used with Jef Poskanzer's
  2361.  excellent PBMPLUS package which provides programs to convert
  2362.  the above PBMPLUS formats to GIF, TIFF, MacPaint, Macintosh PICT,
  2363.  PCX, X11 bitmap and many others.
  2364.  
  2365.  Examples:
  2366.  
  2367.          set term pbm small
  2368.          set size 2,2
  2369.          set term pbm color medium
  2370.  
  2371. ?set terminal pcl5
  2372. ?pcl5
  2373.  Three options may be set in the pcl5 driver.  The driver
  2374.  actually uses HPGL-2 but there is a name conflict among
  2375.  the terminal devices.
  2376.  
  2377.  Syntax:
  2378.          set terminal pcl5 {<mode>} {<font>} {<fontsize>}
  2379.  
  2380.  where <mode> is `landscape`, or `portrait`, <font> is `stick`,
  2381.  `univers`, or `cg_times`, and fontsize is the size in points.
  2382.          set terminal pcl5 landscape
  2383.  
  2384. ?set terminal postscript
  2385. ?postscript
  2386.  Several options may be set in the PostScript driver.
  2387.  
  2388.  Syntax:
  2389.          set terminal postscript {<mode>} {<color>} {<dashed>}
  2390.                                  {"<fontname>"} {<fontsize>}
  2391.  
  2392.  where <mode> is `landscape`, `portrait`, `eps` or `default`.
  2393.  Selecting default sets all options to their defaults.
  2394.  <color> is either `color` or `monochrome`.
  2395.  <dashed> is either `solid` or `dashed`.
  2396.  "<fontname>" is the name of a valid PostScript font.
  2397.  <fontsize> is the size of the font in PostScript points.
  2398.  Defaults are `landscape`, `monochrome`, `dashed`, "Helvetica", and 14pt.
  2399.  Default size of PostScript plot is landscape mode 10 inches wide
  2400.  and 7 inches high.
  2401.  
  2402.  To get EPS output, use the `eps` mode and make only one plot per file.
  2403.  In `eps` mode the whole plot is halved in size; the fonts are half the
  2404.  given size, and the plot is 5 inches wide and 3.5 inches high.
  2405.  
  2406.  Examples:
  2407.  
  2408.          set term postscript default       # old postscript
  2409.          set term postscript landscape 22  # old psbig
  2410.          set term postscript eps 14   # old epsf1
  2411.          set term postscript eps 22   # old epsf2
  2412.          set size 0.7,1.4
  2413.          set term post portrait color "Times-Roman" 14
  2414.  
  2415. ?set terminal table
  2416. ?table
  2417.  Instead of producing a picture, term type `table` prints out
  2418.  the evaluation results in a multicolumn ASCII table of X Y Z values.
  2419.  For those times when you really want to see the numbers, now you
  2420.  can see them on the screen or save to a file.
  2421.  
  2422. ?set terminal windows
  2423. ?windows
  2424.  Three options may be set in the windows driver.
  2425.  
  2426.  Syntax:
  2427.          set terminal windows {<color>} {"<fontname>"} {<fontsize>}
  2428.  
  2429.  `<color>` is either `color` or `monochrome`.
  2430.  `"<fontname>"` is the name of a valid Windows font.
  2431.  `<fontsize>` is the size of the font in points.
  2432.  
  2433. ?set terminal windows graph-menu
  2434. ?graph-menu
  2435.  The `gnuplot graph` window has the following options on a pop up menu
  2436.  accessed by pressing the right mouse button or selecting `Options`
  2437.  from the system menu:
  2438.  
  2439.  `Bring to Top` when checked brings the graph window to
  2440.  the top after every plot.
  2441.  
  2442.  `Color` when checked enables color linestyles.
  2443.  When unchecked it forces monochrome linestyles.
  2444.  
  2445.  `Copy to Clipboard` copies a bitmap and a Metafile picture.
  2446.  
  2447.  `Background...` sets the window background color.
  2448.  
  2449.  `Choose Font...` selects the font used in the graphics window.
  2450.  
  2451.  `Line Styles...` allows customization of the line colors
  2452.  and styles.
  2453.  
  2454.  `Print...` prints the graphics windows using a Windows printer
  2455.  driver and allows selection of the printer and scaling of the output.
  2456.  The output produced by `Print` is not as good as that from gnuplot's
  2457.  own printer drivers.
  2458.  
  2459.  `Update wgnuplot.ini` saves the current window locations, window
  2460.  sizes, text window font, text window font size, graph window font,
  2461.  graph window font size, background color and linestyles to the
  2462.  initialisation file `WGNUPLOT.INI`.
  2463.  
  2464. ?set terminal windows printing
  2465. ?printing
  2466.  In order of preference, graphs may be be printed in the
  2467.  following ways.
  2468.  
  2469.  `1.` Use the gnuplot command `set terminal` to select a printer
  2470.  and `set output` to redirect output to a file.
  2471.  
  2472.  `2.` Select the `Print...` command from the `gnuplot graph` window.
  2473.  An extra command `screendump` does this from the text window.
  2474.  
  2475.  `3.` If `set output "PRN"` is used, output will go to a temporary file.
  2476.  When you exit from gnuplot or when you change the output with another
  2477.  `set output` command, a dialog box will appear for you to select
  2478.  a Windows printer.  If you choose OK, the output will be printed
  2479.  on the selected printer, passing unmodified through the print
  2480.  manager.  It is possible to accidently (or deliberately) send
  2481.  printer output meant for one printer to an incompatible printer.
  2482.  
  2483. ?set terminal windows text-menu
  2484. ?text-menu
  2485.  The `gnuplot text` window has the following options on a pop up menu
  2486.  accessed by pressing the right mouse button or selecting `Options`
  2487.  from the system menu:
  2488.  
  2489.  `Copy to Clipboard` copies marked text to the clipboard.
  2490.  
  2491.  `Paste` copies text from the clipboard as if typed by the user.
  2492.  
  2493.  `Choose Font...` selects the font used in the text window.
  2494.  
  2495.  `Update wgnuplot.ini` saves the current text window location, text
  2496.  window size, text window font and text window font size to the
  2497.  initialisation file `WGNUPLOT.INI`.
  2498.  
  2499.  `MENU BAR`
  2500.  
  2501.  If the menu file `WGNUPLOT.MNU` is found in the same directory as
  2502.  WGNUPLOT.EXE, then the menu specified in `WGNUPLOT.MNU` will
  2503.  be loaded.
  2504.  
  2505.  Menu commands are:
  2506.    [Menu]       Start a new menu with the name on the following line
  2507.    [EndMenu]    End current menu.
  2508.    --           Insert a horizontal menu separator
  2509.    |            Insert a vertical menu separator
  2510.    [Button]     Put next macro on a push button instead of a menu.
  2511.  
  2512.  Macros take two lines with the macro name (menu entry) on the first
  2513.  line and the macro on the second line.  Leading spaces are ignored.
  2514.  
  2515.  Macros commands are:
  2516.    [INPUT]      Input string with prompt terminated by [EOS] or {ENTER}
  2517.    [EOS]        End Of String terminator.  Generates no output.
  2518.    [OPEN]       Get name of file to open from list box, with title of
  2519.                 list box terminated by [EOS], followed by default
  2520.                 filename terminated by [EOS] or {ENTER}
  2521.                 This uses COMMDLG.DLL from Windows 3.1.
  2522.    [SAVE]       Get name of file to save.  Similar to [OPEN]
  2523.  
  2524.  Macros character substitutions are:
  2525.    {ENTER}      Carriage Return '\r'
  2526.    {TAB}        Tab     '\011'
  2527.    {ESC}        Escape  '\033'
  2528.    {^A}         '\001'
  2529.    ...
  2530.    {^_}         '\031'
  2531.  
  2532.  Macros are limited to 256 characters after expansion.
  2533.  
  2534. ?set terminal windows wgnuplot.ini
  2535. ?wgnuplot.ini
  2536.  Windows gnuplot will read some of its options from the `[WGNUPLOT]` section
  2537.  of `WGNUPLOT.INI` in the Windows directory.
  2538.  An example `WGNUPLOT.INI` file is shown below.
  2539.   [WGNUPLOT]
  2540.   TextOrigin=0 0
  2541.   TextSize=640 150
  2542.   TextFont=Terminal,9
  2543.   GraphOrigin=0 150
  2544.   GraphSize=640 330
  2545.   GraphFont=Arial,10
  2546.   GraphColor=1
  2547.   GraphToTop=1
  2548.   GraphBackground=255 255 255
  2549.   Border=0 0 0 0 0
  2550.   Axis=192 192 192 2 2
  2551.   Line1=0 0 255 0 0
  2552.   Line2=0 255 0 0 1
  2553.   Line3=255 0 0 0 2
  2554.   Line4=255 0 255 0 3
  2555.   Line5=0 0 128 0 4
  2556.  The `GraphFont` entry specifies the font name and size in points.
  2557.  The 5 numbers given in the `Border`, `Axis` and `Line` entries are
  2558.  the `Red` intensity (0-255), `Green` intensity, `Blue` intensity,
  2559.  `Color Linestyle` and `Mono Linestyle`.
  2560.  `Linestyles` are 0=SOLID, 1=DASH, 2=DOT, 3=DASHDOT, 4=DASHDOTDOT.
  2561.  In the example `WGNUPLOT.INI` file above, Line 2 is a green solid
  2562.  line in color mode, or a dashed line in monochrome mode.
  2563.  The default line width is 1 pixel.  If `Linestyle` is negative it
  2564.  specifies the width of a SOLID line in pixels.
  2565.  Line1 and any linestyle used with the `points` style must be
  2566.  SOLID with unit width.
  2567.  
  2568. ?set terminal windows windows3.0
  2569. ?windows3.0
  2570.  Windows 3.1 is preferred, but WGNUPLOT will run under Windows 3.0
  2571.  with the following restrictions:
  2572.  
  2573.  `1.` COMMDLG.DLL and SHELL.DLL (available with Windows 3.1 or Borland C++ 3.1)
  2574.  must be in the windows directory.
  2575.  
  2576.  `2.` WGNUPLOT.HLP produced by Borland C++ 3.1 is in Windows 3.1 format.
  2577.  You need to use the WINHELP.EXE supplied with Borland C++ 3.1.
  2578.  
  2579.  `3.` It won't run in real mode due to lack of memory.
  2580.  
  2581.  `4.` Truetype fonts are not available in the graph window.
  2582.  
  2583.  `5.` Drag-drop does not work.
  2584.  
  2585. ?set tics
  2586. ?show tics
  2587. ?tics
  2588.  By default, tics are drawn inwards from the border on all four sides.
  2589.  The `set tics` command can be used to change the tics to be
  2590.  drawn outwards on the left and bottom borders only.
  2591.  This is useful when doing impulse plots.
  2592.  
  2593.  Syntax:
  2594.          set tics {<direction>}
  2595.          show tics
  2596.  
  2597.  where <direction> may be `in` or `out`. `set tics` defaults to `in`.
  2598.  
  2599.  See also the `set xtics`, `set ytics`, and `set ztics` command for more
  2600.  control of tic marks.
  2601. ?set ticslevel
  2602. ?show ticslevel
  2603. ?ticslevel
  2604.  Using splot, in 3-d plots, one can adjust the relative height of the
  2605.  vertical (Z) axis using `set ticslevel`. The numeric argument provided
  2606.  specifies the location of the bottom of the scale. a zero will put it
  2607.  on the bottom grid and any positive number somewhere along the z axis.
  2608.  
  2609.  Syntax:
  2610.          set ticslevel {<level>}
  2611.          show tics
  2612.  
  2613.  where <level> is a non negative numeric argument. For example,
  2614.  
  2615.          set ticslevel 0.5
  2616.  
  2617.  sets the tics level to the default value.
  2618.  
  2619.  See also the `set view`.
  2620. ?set time
  2621. ?show time
  2622. ?time
  2623.  The optional `set time` places the time and date of the plot either
  2624.  at the top or bottom of the left margin. The exact location is
  2625.  device dependent.
  2626.  
  2627.  Syntax:
  2628.          set time {<xoff>}{,<yoff>}
  2629.          set notime
  2630.          show time
  2631.  
  2632.  Specifying constants <xoff> or <yoff> as optional offsets for the time
  2633.  will move the time <xoff> or <yoff> character screen coordinates. For
  2634.  example,
  2635.  
  2636.          set time ,-3
  2637.  
  2638.  will change only the y offset of the time, moving the title down by
  2639.  roughly the height of three characters.
  2640.  
  2641. ?set title
  2642. ?show title
  2643. ?title
  2644.  The `set title` command produces a plot title that is centered at the
  2645.  top of the plot. Using the optional x,y screen offsets, the title
  2646.  can be placed anywhere on the plot. `set title` with no parameters
  2647.  clears the title.
  2648.  
  2649.  Syntax:
  2650.           set title {"<title-text>"} {<xoff>}{,<yoff>}
  2651.           show title
  2652.  
  2653.  Specifying constants <xoff> or <yoff> as optional offsets for the
  2654.  title will move the title <xoff> or <yoff> character screen
  2655.  coordinates. Note these are screen coordinates and not plot
  2656.  coordinates. For example,
  2657.  
  2658.           set title ,-1
  2659.  
  2660.  will change only the y offset of the title, moving the title down by
  2661.  roughly the height of one character.
  2662.  
  2663.  (The EEPIC, Imagen, LaTeX, and TPIC drivers allow \\ in a string to specify
  2664.  a newline.)
  2665. ?set trange
  2666. ?show trange
  2667. ?trange
  2668.  The `set trange` command sets the parametric range used to compute
  2669.  x and y values when in parametric mode. If not in parametric mode
  2670.  (see `set parametric`) then this range is not used. This command
  2671.  does not affect x/y autoscaling or x/y ranges.
  2672.  
  2673.  This range may also be specified on the `plot` command line when
  2674.  in parametric mode.
  2675.  
  2676.  Syntax:
  2677.          set trange [{<tmin> : <tmax>}]
  2678.  
  2679.  where <tmin> and <tmax> terms are constants or expressions.
  2680.  
  2681.  Both the <tmin> and <tmax> terms are optional. Anything omitted will
  2682.  not be changed, so
  2683.          set trange [:10]
  2684.  changes tmax to 10 without affecting tmin.  See also `set urange` and
  2685.  `set parametric`.
  2686. ?set urange
  2687. ?show urange
  2688. ?urange
  2689.  The `set urange` and `set vrange` commands sets the parametric ranges used
  2690.  to compute x, y, and z values when in `splot` parametric mode. If not in
  2691.  parametric mode (see `set parametric`) then these ranges are not used. This
  2692.  command does not affect x/y autoscaling or x/y ranges.
  2693.  
  2694.  This range may also be specified on the `splot` command line when
  2695.  in parametric mode.  See `plot` for more information
  2696.  
  2697.  Syntax:
  2698.          set urange [{<umin> : <umax>}]
  2699.  
  2700.  where <umin> and <umax> terms are constants or expressions.
  2701.  
  2702.  Both the <umin> and <umax> terms are optional. Anything omitted will
  2703.  not be changed, so
  2704.          set urange [:10]
  2705.  changes umax to 10 without affecting umin.  See also `set trange`.
  2706. ?show variables
  2707.  The `show variables` command lists all user-defined variables and
  2708.  their values.
  2709.  
  2710.  Syntax:
  2711.          show variables
  2712. ?set view
  2713. ?show view
  2714. ?view
  2715.  The `set view` command sets the view point for `splot`s. This
  2716.  command controls the way the 3-d coordinates of the plot are mapped
  2717.  into the 2-d screen space. This command provides controls to both
  2718.  rotation and scaling of the plotted data but supports orthographic
  2719.  projections only.
  2720.  
  2721.  Syntax:
  2722.          set view <rot_x> {,{<rot_z>}{,{<scale>}{,<scale_z>}}}
  2723.          show view
  2724.  
  2725.  where <rot_x> and <rot_z> control the rotation angles (in degrees)
  2726.  along a virtual 3-d coordinate system aligned with the screen such
  2727.  that the screen horizontal axis is x, screen vertical axis is y, and
  2728.  the axis perpendicular to the screen is z. <rot_x> is bounded to the
  2729.  [0:180] range with a default of 60 degrees, while <rot_z> is bounded
  2730.  to the [0:360] range with a default of 30 degrees. <scale> controls
  2731.  the scaling of the entire `splot`, while <scale_z> scales the z axis
  2732.  only. Both scales default to 1.0.
  2733.  
  2734.  Examples:
  2735.          set view 60, 30, 1, 1
  2736.          set view ,,0.5
  2737.  
  2738.  The first sets all the four default values. The second changes
  2739.  only scale, to 0.5.
  2740.  
  2741.  See also `set ticslevel`.
  2742. ?set vrange
  2743. ?show vrange
  2744. ?vrange
  2745.  The `set vrange` command is similar to the `set urange` command.
  2746.  Please see `set urange`.
  2747. ?set xlabel
  2748. ?show xlabel
  2749. ?xlabel
  2750.  The `set xlabel` command sets the x-axis label that is centered along
  2751.  the x axis. Using the optional x,y screen offsets, the label can be
  2752.  placed anywhere on the plot. `set xlabel` with no parameters clears
  2753.  the label.
  2754.  
  2755.  Syntax:
  2756.           set xlabel {"<label>"} {<xoff>}{,<yoff>}
  2757.           show xlabel
  2758.  
  2759.  Specifying constants <xoff> or <yoff> as optional offsets for the
  2760.  label will move the label <xoff> or <yoff> character screen
  2761.  coordinates. For example,
  2762.  
  2763.           set xlabel -1
  2764.  
  2765.  will change only the x offset of the xlabel, moving the label roughly
  2766.  one character width to the left.
  2767.  
  2768.  (The EEPIC, Imagen, LaTeX, and TPIC drivers allow \\ in a string to specify
  2769.  a newline.)
  2770. ?set xrange
  2771. ?show xrange
  2772. ?xrange
  2773.  The `set xrange` command sets the horizontal range that will be
  2774.  displayed. This command turns x axis autoscaling off.
  2775.  
  2776.  This range may also be specified on the `plot` command line.
  2777.  
  2778.  Syntax:
  2779.          set xrange [{<xmin> : <xmax>}]
  2780.  
  2781.  where <xmin> and <xmax> terms are constants or expressions.
  2782.  
  2783.  Both the <xmin> and <xmax> terms are optional. Anything omitted will
  2784.  not be changed, so
  2785.          set xrange [:10]
  2786.  changes xmax to 10 without affecting xmin.
  2787. ?set xtics
  2788. ?set noxtics
  2789. ?show xtics
  2790. ?xtics
  2791. ?noxtics
  2792.  Fine control of the x axis tic marks is possible with the
  2793.  `set xtics` command. The x-axis tic marks may be turned off with the
  2794.  `set noxtics` command. They may be turned on (the default state) with
  2795.  `set xtics`.
  2796.  
  2797.  Syntax:
  2798.           set xtics { {<start>, <incr>{, <end>}} |
  2799.                       {({"<label>"} <pos> {, {"<label>"} <pos>}...)} }
  2800.           set noxtics
  2801.           show xtics
  2802.  
  2803.  The <start>, <incr>, <end> form specifies that a series of tics will
  2804.  be plotted on the x axis between the x values <start> and <end>
  2805.  with an increment of <incr>. If <end> is not given it is assumed to be
  2806.  infinity. The increment may be negative. For example,
  2807.            set xtics 0,.5,10
  2808.  makes tics at 0, 0.5, 1, 1.5, ..., 9.5, 10.
  2809.  
  2810.  The ("<label>" <pos>, ...) form allows arbitrary tic positions or
  2811.  non-numeric tic labels. A set of tics are a set of positions, each
  2812.  with its own optional label. Note that the label is a string enclosed
  2813.  by quotes, and may be a constant string, such as "hello", or contain
  2814.  formatting information for the tic number (which is the same as the
  2815.  position), such as "%3f clients". See `set format` for more
  2816.  information about this case. The label may even be empty.
  2817.  Examples:
  2818.           set xtics ("low" 0, "medium" 50, "high" 100)
  2819.           set xtics (1,2,4,8,16,32,64,128,256,512,1024)
  2820.           set xtics ("bottom" 0, "" 10, "top" 20)
  2821.  
  2822.  Tics will only be plotted when in range.
  2823.  
  2824.  The `set ytics` and `set noytics` commands work identically.
  2825.  See also the `set format` command.
  2826. ?set xdtics
  2827. ?set noxdtics
  2828. ?show xdtics
  2829. ?xdtics
  2830. ?noxdtics
  2831.  The `set xdtics` commands converts the x axis tic marks to days of
  2832.  the week where 0=Sun and 6=Sat.  Overflows are converted modulo 7
  2833.  to dates.
  2834.  
  2835.  Examples:
  2836.         set xdtics
  2837.  
  2838.  Sets x axis tics in days.
  2839.  
  2840.  The `set ydtics` `set zdtics` and `set noydtics` `set nozdtics` commands
  2841.  work identically.
  2842.  See also the `set format` command.
  2843.  
  2844. ?set xmtics
  2845. ?set noxmtics
  2846. ?show xmtics
  2847. ?xmtics
  2848. ?noxmtics
  2849.  The `set xmtics` commands converts the x axis tic marks to months of
  2850.  the years where 1=Jan and 12=Dec.  Overflows are converted modulo 12
  2851.  to months.
  2852.  
  2853.  Examples:
  2854.         set xmtics
  2855.  
  2856.  Sets x axis tics into months.
  2857.  
  2858.  The `set ymtics` `set zmtics` and `set noymtics` `set nozmtics` commands
  2859.  work identically.
  2860.  See also the `set format` command.
  2861.  
  2862. ?set xzeroaxis
  2863. ?set noxzeroaxis
  2864. ?show xzeroaxis
  2865. ?xzeroaxis
  2866. ?noxzeroaxis
  2867.  `set xzeroaxis` draws the x-axis. By default, this option is on.
  2868.  `set noxzeroaxis` causes GNUPLOT to omit the x-axis.
  2869.  
  2870.  Syntax:
  2871.          set xzeroaxis
  2872.          set noxzeroaxis
  2873.          show xzeroaxis
  2874. ?set ylabel
  2875. ?show ylabel
  2876. ?ylabel
  2877.  The `set ylabel` command sets the y-axis label.  The position of this
  2878.  label depends on the terminal, and can be one of the following three
  2879.  positions (the position can be adjusted with optional parameters).
  2880.  
  2881.  1. Horizontal text flushed left at the top left of the plot.
  2882.  Terminals that cannot rotate text will probably use this method.
  2883.  
  2884.  2. Vertical text centered vertically at the left of the plot.
  2885.  Terminals that can rotate text will probably use this method.
  2886.  
  2887.  3. Horizontal text centered vertically at the left of the plot.
  2888.  The EEPIC, LaTeX and TPIC drivers use this method. The user must insert
  2889.  line breaks using \\ to prevent the ylabel from overwriting
  2890.  the plot. To produce a vertical row of characters, add \\
  2891.  between every printing character (but this is ugly).
  2892.  
  2893.  Syntax:
  2894.           set ylabel {"<label>"} {<xoff>}{,<yoff>}
  2895.           show ylabel
  2896.  
  2897.  With no parameters, the label is cleared. Specifying constants <xoff>
  2898.  or <yoff> as optional offsets for the label will move the label <xoff>
  2899.  or <yoff> character screen coordinates. For example,
  2900.  
  2901.           set ylabel -1
  2902.  
  2903.  will change only the x offset of the ylabel, moving the label roughly
  2904.  one character width left of its default position. This is especially
  2905.  useful with the LaTeX driver.
  2906.  
  2907.  (The EEPIC, Imagen, LaTeX, and TPIC drivers allow \\ in a string to specify
  2908.  a newline.)
  2909. ?set yrange
  2910. ?show yrange
  2911. ?yrange
  2912.  The `set yrange` command sets the vertical range that will be
  2913.  displayed. This command turns y axis autoscaling off.
  2914.  
  2915.  This range may also be specified on the `plot` command line.
  2916.  
  2917.  Syntax:
  2918.          set yrange [{<ymin> : <ymax>}]
  2919.  
  2920.  where <ymin> and <ymax> terms are constants or expressions.
  2921.  
  2922.  Both the <ymin> and <ymax> terms are optional. Anything omitted will
  2923.  not be changed, so
  2924.          set yrange [:10]
  2925.  changes ymax to 10 without affecting ymin.
  2926. ?set ytics
  2927. ?set noytics
  2928. ?show ytics
  2929. ?ytics
  2930. ?noytics
  2931.  The `set ytics` and `set noytics` commands are similar to the `set xtics`
  2932.  and `set noxtics` commands. Please see `set xtics`.
  2933. ?set ydtics
  2934. ?set noydtics
  2935. ?show ydtics
  2936. ?ydtics
  2937. ?noydtics
  2938.  The `set ydtics` and `set noydtics` commands are similar to the `set xdtics`
  2939.  and `set noxdtics` commands. Please see `set xdtics`.
  2940. ?set ymtics
  2941. ?set noymtics
  2942. ?show ymtics
  2943. ?ymtics
  2944. ?noymtics
  2945.  The `set ymtics` and `set noymtics` commands are similar to the `set xmtics`
  2946.  and `set noxmtics` commands. Please see `set xmtics`.
  2947. ?set yzeroaxis
  2948. ?set noyzeroaxis
  2949. ?show yzeroaxis
  2950. ?yzeroaxis
  2951. ?noyzeroaxis
  2952.  `set yzeroaxis` draws the y-axis. By default, this option is on.
  2953.  `set noyzeroaxis` causes GNUPLOT to omit the y-axis.
  2954.  
  2955.  Syntax:
  2956.          set yzeroaxis
  2957.          set noyzeroaxis
  2958.          show yzeroaxis
  2959. ?set zero
  2960. ?show zero
  2961. ?zero
  2962.  The `zero` value is the default threshold for values approaching 0.0.
  2963.  GNUPLOT will not plot a point if its imaginary part is greater in
  2964.  magnitude than the `zero` threshold. Axis ranges cannot be less than
  2965.  `zero`. The default `zero` value is 1e-8. This can be changed with
  2966.  the `set zero` command.
  2967.  
  2968.  Syntax:
  2969.          set zero <expression>
  2970.          show zero
  2971. ?set zeroaxis
  2972. ?set nozeroaxis
  2973. ?show zeroaxis
  2974. ?zeroaxis
  2975. ?nozeroaxis
  2976.  `set zeroaxis` draws the x-axis and y-axis. By default, this option is
  2977.  on.  `set nozeroaxis` causes GNUPLOT to omit the axes, and is
  2978.  equivalent to `set noxzeroaxis; set noyzeroaxis.`
  2979.  
  2980.  Syntax:
  2981.          set zeroaxis
  2982.          set nozeroaxis
  2983.          show zeroaxis
  2984.  See `set xzeroaxis` and `set yzeroaxis`.
  2985. ?set zlabel
  2986. ?show zlabel
  2987. ?zlabel
  2988.  The `set zlabel` command sets the z-axis label that is centered along
  2989.  the z axis. Using the optional x,y screen offsets, the label can be
  2990.  placed anywhere on the plot. `set zlabel` with no parameters clears
  2991.  the label.
  2992.  
  2993.  Syntax:
  2994.           set zlabel {"<label>"} {<xoff>}{,<yoff>}
  2995.           show zlabel
  2996.  
  2997.  Specifying constants <xoff> or <yoff> as optional offsets for the
  2998.  label will move the label <xoff> or <yoff> character screen
  2999.  coordinates. For example,
  3000.  
  3001.           set zlabel ,1
  3002.  
  3003.  will change only the y offset of the zlabel, moving the label roughly
  3004.  one character height up.
  3005.  
  3006.  The zlabel will be drawn whenever surfaces or contours are plotted,
  3007.  in the space above the grid level.
  3008.  
  3009.  (The EEPIC, Imagen, LaTeX, and TPIC drivers allow \\ in a string to specify
  3010.  a newline.)
  3011. ?set zrange
  3012. ?show zrange
  3013. ?zrange
  3014.  The `set zrange` command sets the vertical range that will be
  3015.  displayed. This command turns z axis autoscaling off.  The zrange is
  3016.  used only by `splot` and is ignored by `plot`.
  3017.  
  3018.  This range may also be specified on the `splot` command line.
  3019.  
  3020.  Syntax:
  3021.          set zrange [{<zmin> : <zmax>}]
  3022.  
  3023.  where <zmin> and <zmax> terms are constants or expressions.
  3024.  
  3025.  Both the <zmin> and <zmax> terms are optional. Anything omitted will
  3026.  not be changed, so
  3027.          set zrange [2:]
  3028.  changes zmin to 2 without affecting zmax.
  3029. ?set ztics
  3030. ?set noztics
  3031. ?show ztics
  3032. ?ztics
  3033. ?noztics
  3034.  The `set ztics` and `set noztics` commands are similar to the
  3035.  `set xtics` and `set noxtics` commands. Please see `set xtics`.
  3036. ?set zdtics
  3037. ?set nozdtics
  3038. ?show zdtics
  3039. ?zdtics
  3040. ?nozdtics
  3041.  The `set zdtics` and `set nozdtics` commands are similar to the
  3042.  `set xdtics` and `set noxdtics` commands. Please see `set xdtics`.
  3043.  
  3044. ?set zmtics
  3045. ?set nozmtics
  3046. ?show zmtics
  3047. ?zmtics
  3048. ?nozmtics
  3049.  The `set zmtics` and `set nozmtics` commands are similar to the
  3050.  `set xmtics` and `set noxmtics` commands. Please see `set xmtics`.
  3051. ?shell
  3052.  The `shell` command spawns an interactive shell. To return to
  3053.  GNUPLOT, type `logout` if using VMS, `exit` or the END-OF-FILE
  3054.  character if using Unix, `endcli` if using AmigaDOS, or `exit` if
  3055.  using MS-DOS or OS/2.
  3056.  
  3057.  A single shell command may be spawned by preceding it with the !
  3058.  character ($ if using VMS) at the beginning of a command line.
  3059.  Control will return immediately to GNUPLOT after this command is
  3060.  executed. For example, in VMS, AmigaDOS, MS-DOS or OS/2,
  3061.  
  3062.       ! dir
  3063.  
  3064.  prints a directory listing and then returns to GNUPLOT.
  3065.  
  3066.  On an Atari, the `!` command first checks whether a shell is already
  3067.  loaded and uses it, if available. This is practical if GNUPLOT is run
  3068.  from `gulam`, for example.
  3069. ?splot
  3070. ?surface plot
  3071.  Three-dimensional surface and contour plotting is available in
  3072.  GNUPLOT with the `splot` command. See the `plot` command for features
  3073.  common to the `plot` command.
  3074.  
  3075.  See also `set contour`, `set cntrparam`, and `set surface`.
  3076.  
  3077. ?binary-data
  3078. ?binary files
  3079.  Gnuplot will dynamically determine if a datafile is ASCII or
  3080.  binary.  ASCII data files are discussed in the `plot` section.
  3081.  For three dimensions, single precision floats are stored as follows:
  3082.  
  3083.        <ncols> <x0> <x1> <x2> ...
  3084.        <y0> <z0,0> <z0,1> <z0,2> ...
  3085.        <y1> <z1,0> <z1,1> <z1,2> ...
  3086.  
  3087.  which is converted into triplet:
  3088.  
  3089.        <x0> <y0> <z0,0>
  3090.        <x0> <y1> <z0,1>
  3091.        <x0> <y2> <z0,2>
  3092.  
  3093.        <x1> <y0> <z1,0>
  3094.        <x1> <y1> <z1,1>
  3095.        <x1> <y2> <z1,2>
  3096.  
  3097.  These triplets are then converted into gnuplot iso_curves and then
  3098.  uses gnuplot to do the rest of the plotting.
  3099.  
  3100.  A collection of matrix and vector manipulation routines (in C) are
  3101.  provided in `gnubin.c`.  The routine to write binary data is
  3102.  
  3103.   int fwrite_matrix(file,m,nrl,nrl,ncl,nch,row_title,column_title)
  3104.  
  3105.  An example of using these routines is provided in the file `bf_test.c`.
  3106.  The corresponding demo file is `demo/binary.dem`.
  3107. ?startup
  3108. ?start
  3109. ?.gnuplot
  3110.  When GNUPLOT is run, it looks for an initialization file to load.
  3111.  This file is called `.gnuplot` on Unix and AmigaDOS systems, and
  3112.  `GNUPLOT.INI` on other systems. If this file is not found in the
  3113.  current directory, the program will look for it in the home directory
  3114.  (under AmigaDOS, AtariTOS, MS-DOS and OS/2, the environment variable
  3115.  GNUPLOT should contain the name of this directory).  Note: if NOCWDRC
  3116.  is defined during the installation, GNUPLOT will not read from the
  3117.  current directory.
  3118.  
  3119.  If this file is found, GNUPLOT executes the commands in this file.
  3120.  This is most useful for setting the terminal type and defining any
  3121.  functions or variables that are used often.
  3122. ?substitution
  3123.  Command-line substitution is specified by a system command enclosed in
  3124.  backquotes. This command is spawned and the output it produces
  3125.  replaces the name of the command (and backquotes) on the command line.
  3126.  
  3127.  Newlines in the output produced by the spawned command are replaced
  3128.  with blanks.
  3129.  
  3130.  Command-line substitution can be used anywhere on the GNUPLOT command
  3131.  line.
  3132.  
  3133.  Example:
  3134.  
  3135.  This will run the program `leastsq` and replace `leastsq` (including
  3136.  backquotes) on the command line with its output:
  3137.  
  3138.           f(x) = `leastsq`
  3139.  
  3140.  or, in VMS
  3141.  
  3142.           f(x) = `run leastsq`
  3143. ?userdefined
  3144. ?variables
  3145.  New user-defined variables and functions of one through five variables may
  3146.  be declared and used anywhere.
  3147.  
  3148.  User-defined function syntax:
  3149.          <function-name> ( <dummy1> {,<dummy2> {, ...} } ) = <expression>
  3150.  
  3151.  where <expression> is defined in terms of <dummy1> through <dummy5>.
  3152.  
  3153.  User-defined variable syntax:
  3154.          <variable-name> = <constant-expression>
  3155.  
  3156.  Examples:
  3157.          w = 2
  3158.          q = floor(tan(pi/2 - 0.1))
  3159.          f(x) = sin(w*x)
  3160.          sinc(x) = sin(pi*x)/(pi*x)
  3161.          delta(t) = (t == 0)
  3162.          ramp(t) = (t > 0) ? t : 0
  3163.          min(a,b) = (a < b) ? a : b
  3164.          comb(n,k) = n!/(k!*(n-k)!)
  3165.          len3d(x,y,z) = sqrt(x*x+y*y+z*z)
  3166.  
  3167.  Note that the variable `pi` is already defined.
  3168.  
  3169.  See `show functions` and `show variables`.
  3170. ?bugs
  3171.  The bessel functions do not work for complex arguments.
  3172.  
  3173.  The gamma function does not work for complex arguments.
  3174.  
  3175.  There is a bug in the stdio library for old Sun operating systems
  3176.  (SunOS Sys4-3.2). The "%g" format for 'printf' sometimes incorrectly
  3177.  prints numbers (e.g., 200000.0 as "2"). Thus, tic mark labels may be
  3178.  incorrect on a Sun4 version of GNUPLOT. A work-around is to rescale
  3179.  the data or use the `set format` command to change the tic mark format
  3180.  to "%7.0f" or some other appropriate format. This appears to have been
  3181.  fixed in SunOS 4.0.
  3182.  
  3183.  Another bug: On a Sun3 under SunOS 4.0, and on Sun4's under Sys4-3.2
  3184.  and SunOS 4.0, the 'sscanf' routine incorrectly parses "00 12" with
  3185.  the format "%f %f" and reads 0 and 0 instead of 0 and 12. This
  3186.  affects data input. If the data file contains x coordinates that are
  3187.  zero but are specified like '00', '000', etc, then you will read the
  3188.  wrong y values. Check any data files or upgrade the SunOS.
  3189.  It appears to have been fixed in SunOS 4.1.1.
  3190.  
  3191.  Microsoft C 5.1 has a nasty bug associated with the %g format for
  3192.  printf. When any of the formats "%.2g", "%.1g", "%.0g", "%.g" are
  3193.  used, printf will incorrectly print numbers in the range 1e-4 to 1e-1.
  3194.  Numbers that should be printed in the %e format are incorrectly
  3195.  printed in the %f format, with the wrong number of zeros after the
  3196.  decimal point.
  3197.  
  3198.  To work around this problem, use the %e or %f formats explicitly.
  3199.  
  3200.  GNUPLOT, when compiled with Microsoft C, did not work correctly on two
  3201.  VGA displays that were tested. The CGA, EGA and VGA drivers should
  3202.  probably be rewritten to use the Microsoft C graphics library.
  3203.  GNUPLOT compiled with Borland C++ uses the Turbo C graphics drivers and
  3204.  does work correctly with VGA displays.
  3205.  
  3206.  VAX/VMS 4.7 C compiler release 2.4 also has a poorly implemented %g
  3207.  format for printf. The numbers are printed numerically correct, but
  3208.  may not be in the requested format. The K&R second edition says that
  3209.  for the %g format, %e is used if the exponent is less than -4 or greater
  3210.  than or equal to the precision. The VAX uses %e format if the exponent
  3211.  is less than -1. The VAX appears to take no notice of the precision
  3212.  when deciding whether to use %e or %f for numbers less than 1.
  3213.  To work around this problem, use the %e or %f formats explicitly.
  3214.  From the VAX C 2.4 release notes:
  3215.  e,E,f,F,g,G  Result will always contain a decimal  point.
  3216.  For g and G, trailing zeros will not be removed from the result.
  3217.  
  3218.  VAX/VMS 5.2 C compiler release 3.0 has a slightly better implemented
  3219.  %g format than release 2.4, but not much. Trailing decimal points are
  3220.  now removed, but trailing zeros are still not removed from %g numbers
  3221.  in exponential format.
  3222.  
  3223.  ULTRIX X11R3 has a bug that causes the X11 driver to display "every
  3224.  other" plot.  The bug seems to be fixed in DEC's release of X11R4 so
  3225.  newer releases of ULTRIX don't seem to have the problem.  Solutions for
  3226.  older sites include upgrading the X11 libraries (from DEC or direct from
  3227.  MIT) or defining ULTRIX_KLUDGE when compiling the x11.trm file.  Note
  3228.  that the kludge is not an ideal fix, however.
  3229.  
  3230.  The constant HUGE was incorrectly defined in the NeXT OS 2.0 operating
  3231.  system.  HUGE should be set to 1e38 in plot.h. This error has been
  3232.  corrected in the 2.1 version of NeXT OS.
  3233.  
  3234.  Some older models of HP plotters do not have a page eject command 'PG'.
  3235.  The current HPGL driver uses this command in HPGL_reset.  This may need
  3236.  to be removed for these plotters.  The current PCL5 driver uses HPGL/2
  3237.  for text as well as graphics.  This should be modified to use scalable
  3238.  PCL fonts.
  3239.  
  3240.  On the Atari version, it is not possible to send output directly to
  3241.  the printer (using `/dev/lp` as output file), since CRs are added to LFs in
  3242.  binary output. As a workaround write the output to a file and copy it to
  3243.  the printer afterwards using a shell command.
  3244.  
  3245.  Please report any bugs to bug-gnuplot@dartmouth.edu.
  3246.