home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / graphchart / gnuplot / !GnuPlot / Docs / doc / GNUPLOT
Encoding:
Text File  |  1993-06-04  |  126.6 KB  |  3,626 lines

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