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