home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gnuplapi.zip / gnuplot-api-os2 / examples / GnuplotTerminals.pod < prev    next >
Encoding:
Text File  |  1999-06-06  |  70.1 KB  |  2,109 lines

  1. =head1 NAME
  2.  
  3. Term::GnuplotTerminals - documentation of C<gnuplot> output devices
  4.  
  5. =head1 aed767
  6.  
  7. The C<aed512> and C<aed767> terminal drivers support AED graphics terminals.
  8. The two drivers differ only in their horizontal ranges, which are 512 and
  9. 768 pixels, respectively.  Their vertical range is 575 pixels.  There are
  10. no options for these drivers.
  11.  
  12.  
  13.  
  14. =head1 aifm
  15.  
  16. Several options may be set in C<aifm>---the Adobe Illustrator 3.0+ driver.
  17.  
  18. Syntax:
  19.  
  20.       set terminal aifm {<color>} {"<fontname>"} {<fontsize>}
  21.  
  22. <color> is either C<color> or C<monochrome>; "<fontname>" is the name of a
  23. valid PostScript font; <fontsize> is the size of the font in PostScript
  24. points, before scaling by the C<set size> command.  Selecting C<default> sets
  25. all options to their default values: C<monochrome>, "Helvetica", and 14pt.
  26.  
  27. Since AI does not really support multiple pages, multiple graphs will be
  28. drawn directly on top of one another.  However, each graph will be grouped
  29. individually, making it easy to separate them inside AI (just pick them up
  30. and move them).
  31.  
  32. Examples:
  33.  
  34.       set term aifm
  35.       set term aifm 22
  36.       set size 0.7,1.4; set term aifm color "Times-Roman" 14
  37.  
  38.  
  39.  
  40. =head1 amiga
  41.  
  42. The C<amiga> terminal, for Commodore Amiga computers, allows the user to
  43. plot either to a screen (default), or, if Kickstart 3.0 or higher is
  44. installed, to a window on the current public screen. The font and its size
  45. can also be selected.
  46.  
  47. Syntax:
  48.  
  49.       set terminal amiga {screen | window} {"<fontname>"} {<fontsize>}
  50.  
  51. The default font is 8-point "topaz".
  52.  
  53. The screen option uses a virtual screen, so it is possible that the graph
  54. will be larger than the screen.
  55.  
  56.  
  57.  
  58. =head1 apollo
  59.  
  60. The C<apollo> terminal driver supports the Apollo Graphics Primitive Resource
  61. with rescaling after window resizing.  It has no options.
  62.  
  63. If a fixed-size window is desired, the C<gpr> terminal may be used instead.
  64.  
  65.  
  66.  
  67. =head1 atari ST (via AES)
  68.  
  69. The C<atari> terminal has options to set the character size and the screen
  70. colors.
  71.  
  72. Syntax:
  73.  
  74.       set terminal atari {<fontsize>} {<col0> <col1> ... <col15.}
  75.  
  76. The character size must appear if any colors are to be specified.  Each of
  77. the (up to 16) colors is given as a three-digit hex number, where the digits
  78. represent RED, GREEN and BLUE (in that order).  The range of 0--15 is scaled
  79. to whatever color range the screen actually has.  On a normal ST screen, odd
  80. and even intensities are the same.
  81.  
  82. Examples:
  83.  
  84.       set terminal atari 4    # use small (6x6) font
  85.       set terminal atari 6 0  # set monochrome screen to white on black
  86.       set terminal atari 13 0 fff f00 f0 f ff f0f
  87.                  # set first seven colors to black, white, green, blue,
  88.                  # cyan, purple, and yellow and use large font (8x16).
  89.  
  90. Additionally, if an environment variable GNUCOLORS exists, its contents are
  91. interpreted as an options string, but an explicit terminal option takes
  92. precedence.
  93.  
  94.  
  95.  
  96. =head1 atari ST (via VDI)
  97.  
  98. The C<vdi> terminal is the same as the C<atari> terminal, except that it sends
  99. output to the screen via the VDI and not into AES-Windows.
  100.  
  101. The C<vdi> terminal has options to set the character size and the screen
  102. colors.
  103.  
  104. Syntax:
  105.  
  106.       set terminal vdi {<fontsize>} {<col0> <col1> ... <col15.}
  107.  
  108. The character size must appear if any colors are to be specified.  Each of
  109. the (up to 16) colors is given as a three-digit hex number, where the digits
  110. represent RED, GREEN and BLUE (in that order).  The range of 0--15 is scaled
  111. to whatever color range the screen actually has.  On a normal ST screen, odd
  112. and even intensities are the same.
  113.  
  114. Examples:
  115.  
  116.       set terminal vdi 4    # use small (6x6) font
  117.       set terminal vdi 6 0  # set monochrome screen to white on black
  118.       set terminal vdi 13 0 fff f00 f0 f ff f0f
  119.                  # set first seven colors to black, white, green, blue,
  120.                  # cyan, purple, and yellow and use large font (8x16).
  121.  
  122. Additionally, if an environment variable GNUCOLORS exists, its contents are
  123. interpreted as an options string, but an explicit terminal option takes
  124. precedence.
  125.  
  126.  
  127.  
  128. =head1 cgi
  129.  
  130. The C<cgi> and C<hcgi> terminal drivers support SCO CGI drivers.  C<hcgi> is for
  131. printers; the environment variable CGIPRNT must be set.  C<cgi> may be used
  132. for either a display or hardcopy; if the environment variable CGIDISP is set,
  133. then that display is used.  Otherwise CGIPRNT is used.
  134.  
  135. These terminals have no options.
  136.  
  137.  
  138.  
  139. =head1 cgm
  140.  
  141. The C<cgm> terminal generates a Computer Graphics Metafile.  This file format
  142. is a subset of the ANSI X3.122-1986 standard entitled "Computer Graphics -
  143. Metafile for the Storage and Transfer of Picture Description Information".
  144. Several options may be set in C<cgm>.
  145.  
  146. Syntax:
  147.  
  148.       set terminal cgm {<mode>} {<color>} {<rotation>} {solid | dashed}
  149.                        {width <plot_width>} {linewidth <line_width>}
  150.                        {"<font>"} {<fontsize>}
  151.  
  152. where <mode> is C<landscape>, C<portrait>, or C<default>;
  153. <color> is either C<color> or C<monochrome>; 
  154. <rotation> is either C<rotate> or C<norotate>;
  155. C<solid> draws all curves with solid lines, overriding any dashed patterns;
  156. <plot_width> is the width of the page in points; 
  157. <line_width> is the line width in points; 
  158. <font> is the name of a font; and 
  159. C<<fontsize>> is the size of the font in points.
  160.  
  161. By default, C<cgm> uses rotated text for the Y axis label.
  162.  
  163. The first six options can be in any order.  Selecting C<default> sets all
  164. options to their default values.
  165.  
  166. Examples:
  167.  
  168.       set terminal cgm landscape color rotate dashed width 432 \
  169.                      linewidth 1  'Arial Bold' 12       # defaults
  170.       set terminal cgm 14 linewidth 2  14  # wider lines & larger font
  171.       set terminal cgm portrait 'Times Roman Italic' 12
  172.       set terminal cgm color solid    # no pesky dashes!
  173.  
  174.  
  175.  
  176. =head2 font
  177.  
  178. The first part of a Computer Graphics Metafile, the metafile description,
  179. includes a font table.  In the picture body, a font is designated by an
  180. index into this table.  By default, this terminal generates a table with
  181. the following fonts:
  182.  
  183.        Arial
  184.        Arial Italic
  185.        Arial Bold
  186.        Arial Bold Italic
  187.        Times Roman
  188.        Times Roman Italic
  189.        Times Roman Bold
  190.        Times Roman Bold Italic
  191.        Helvetica
  192.        Roman
  193.  
  194. Case is not distinct, but the modifiers must appear in the above order (that
  195. is, not 'Arial Italic Bold').  'Arial Bold' is the default font.
  196.  
  197. You may also specify a font name which does not appear in the default font
  198. table.  In that case, a new font table is constructed with the specified
  199. font as its only entry.  You must ensure that the spelling, capitalization,
  200. and spacing of the name are appropriate for the application that will read
  201. the CGM file.
  202.  
  203.  
  204.  
  205. =head2 fontsize
  206.  
  207. Fonts are scaled assuming the page is 6 inches wide.  If the C<size> command
  208. is used to change the aspect ratio of the page or the CGM file is converted
  209. to a different width (e.g. it is imported into a document in which the
  210. margins are not 6 inches apart), the resulting font sizes will be different.
  211. To change the assumed width, use the C<width> option.
  212.  
  213.  
  214.  
  215. =head2 linewidth
  216.  
  217. The C<linewidth> option sets the width of lines in pt.  The default width is
  218. 1 pt.  Scaling is affected by the actual width of the page, as discussed
  219. under the C<fontsize> and C<width> options
  220.  
  221.  
  222.  
  223. =head2 rotate
  224.  
  225. The C<norotate> option may be used to disable text rotation.  For example,
  226. the CGM input filter for Word for Windows 6.0c can accept rotated text, but
  227. the DRAW editor within Word cannot.  If you edit a graph (for example, to
  228. label a curve), all rotated text is restored to horizontal.  The Y axis
  229. label will then extend beyond the clip boundary.  With C<norotate>, the Y
  230. axis label starts in a less attractive location, but the page can be edited
  231. without damage.  The C<rotate> option confirms the default behavior.
  232.  
  233.  
  234.  
  235. =head2 solid
  236.  
  237. The C<solid> option may be used to disable dashed line styles in the
  238. plots.  This is useful when color is enabled and the dashing of the lines
  239. detracts from the appearance of the plot. The C<dashed> option confirms the
  240. default behavior, which gives a different dash pattern to each curve.
  241.  
  242.  
  243.  
  244. =head2 size
  245.  
  246. Default size of a CGM page is 32599 units wide and 23457 units high for
  247. landscape, or 23457 units wide by 32599 units high for portrait.
  248.  
  249.  
  250.  
  251. =head2 width
  252.  
  253. All distances in the CGM file are in abstract units.  The application that
  254. reads the file determines the size of the final page.  By default, the width
  255. of the final page is assumed to be 6 inches (15.24 cm).  This distance is
  256. used to calculate the correct font size, and may be changed with the C<width>
  257. option.  The keyword should be followed by the width in points.  (Here, a
  258. point is 1/72 inch, as in PostScript.  This unit is known as a "big point"
  259. in TeX.)  C<gnuplot> arithmetic can be used to convert from other units, as
  260. follows:
  261.  
  262.       set terminal cgm width 432            # default
  263.       set terminal cgm width 6*72           # same as above
  264.       set terminal cgm width 10/2.54*72     # 10 cm wide
  265.  
  266.  
  267.  
  268. =head2 winword6
  269.  
  270. The default font table was chosen to match, where possible, the default font
  271. assignments made by the Computer Graphics Metafile input filter for
  272. Microsoft Word 6.0c, although the filter makes available only 'Arial' and
  273. 'Times Roman' fonts and their bold and/or italic variants.  Other fonts such
  274. as 'Helvetica' and 'Roman' are not available.  If the CGM file includes a
  275. font table, the filter mostly ignores it.  However, it changes certain font
  276. assignments so that they disagree with the table.  As a workaround, the
  277. C<winword6> option deletes the font table from the CGM file.  In this case,
  278. the filter makes predictable font assignments.  'Arial Bold' is correctly
  279. assigned even with the font table present, which is one reason it was chosen
  280. as the default.
  281.  
  282. C<winword6> disables the color tables for a similar reason---with the color
  283. table included, Microsoft Word displays black for color 7.
  284.  
  285. Linewidths and pointsizes may be changed with C<set linestyle>.
  286.  
  287.  
  288.  
  289. =head1 corel
  290.  
  291. The C<corel> terminal driver supports CorelDraw.
  292.  
  293. Syntax:
  294.  
  295.       set terminal corel {  default
  296.                           | {monochrome | color
  297.                                {<fontname> {"<fontsize>" 
  298.                                   {<xsize> <ysize> {<linewidth> }}}}}
  299.  
  300. where the fontsize and linewidth are specified in points and the sizes in
  301. inches.  The defaults are monochrome, "SwitzerlandLight", 22, 8.2, 10 and 1.2.
  302.  
  303.  
  304.  
  305. =head1 debug
  306.  
  307. This terminal is provided to allow for the debugging of C<gnuplot>.  It is
  308. likely to be of use only for users who are modifying the source code.
  309.  
  310.  
  311.  
  312. =head1 svga
  313.  
  314. The C<svga> terminal driver supports PCs with SVGA graphics.  It can only be
  315. be used if it is compiled with DJGPP.  Its only option is the font.
  316.  
  317. Syntax:
  318.  
  319.       set terminal svga {"<fontname>"}
  320.  
  321.  
  322.  
  323. =head1 dumb
  324.  
  325. The C<dumb> terminal driver has an optional size specification and trailing
  326. linefeed control.
  327.  
  328. Syntax:
  329.  
  330.       set terminal dumb {[no]feed} {<xsize> <ysize>}
  331.  
  332. where <xsize> and <ysize> set the size of the dumb terminals. Default is
  333. 79 by 24. The last newline is printed only if C<feed> is enabled.
  334.  
  335. Examples:
  336.  
  337.       set term dumb nofeed
  338.       set term dumb 79 49 # VGA screen---why would anyone do that?
  339.  
  340.  
  341.  
  342. =head1 dxf
  343.  
  344. The C<dxf> terminal driver creates pictures that can be imported into AutoCad
  345. (Release 10.x).  It has no options of its own, but some features of its plots
  346. may be modified by other means.  The default size is 120x80 AutoCad units,
  347. which can be changed by C<set size>.  C<dxf> uses seven colors (white, red,
  348. yellow, green, cyan, blue and magenta), which can be changed only by
  349. modifying the source file.  If a black-and-white plotting device is used, the
  350. colors are mapped to differing line thicknesses.  See the description of the
  351. AutoCad print/plot command.
  352.  
  353.  
  354.  
  355. =head1 dxy800a
  356.  
  357. This terminal driver supports the Roland DXY800A plotter.  It has no options.
  358.  
  359.  
  360.  
  361. =head1 eepic
  362.  
  363. The C<eepic> terminal driver supports the extended LaTeX picture environment.
  364. It is an alternative to the C<latex> driver.
  365.  
  366. The output of this terminal is intended for use with the "eepic.sty" macro
  367. package for LaTeX.  To use it, you need "eepic.sty", "epic.sty" and a
  368. printer driver that supports the "tpic" \specials.  If your printer driver
  369. doesn't support those \specials, "eepicemu.sty" will enable you to use some
  370. of them.
  371.  
  372. Although dotted and dashed lines are possible with C<eepic> and are tempting,
  373. they do not work well for high-sample-rate curves, fusing the dashes all
  374. together into a solid line.  For now, the C<eepic> driver creates only solid
  375. lines.  There is another gnuplot driver (C<tpic>) that supports dashed lines,
  376. but it cannot be used if your DVI driver doesn't support "tpic" \specials.
  377.  
  378. All drivers for LaTeX offer a special way of controlling text positioning:
  379. If any text string begins with '{', you also need to include a '}' at the
  380. end of the text, and the whole text will be centered both horizontally
  381. and vertically by LaTeX. --- If the text string begins with '[', you need
  382. to continue it with: a position specification (up to two out of t,b,l,r),
  383. ']{', the text itself, and finally, '}'. The text itself may be anything
  384. LaTeX can typeset as an LR-box. \rule{}{}'s may help for best positioning.
  385.  
  386. The C<eepic> terminal has no options.
  387.  
  388. Examples:
  389. About label positioning:
  390. Use gnuplot defaults (mostly sensible, but sometimes not really best):
  391.  
  392.        set title '\LaTeX\ -- $ \gamma $'
  393.  
  394. Force centering both horizontally and vertically:
  395.  
  396.        set label '{\LaTeX\ -- $ \gamma $}' at 0,0
  397.  
  398. Specify own positioning (top here):
  399.  
  400.        set xlabel '[t]{\LaTeX\ -- $ \gamma $}'
  401.  
  402. The other label -- account for long ticlabels:
  403.  
  404.        set ylabel '[r]{\LaTeX\ -- $ \gamma $\rule{7mm}{0pt}'
  405.  
  406.  
  407.  
  408. =head1 emxvga
  409.  
  410. The C<emxvga>, C<emxvesa> and C<vgal> terminal drivers support PCs with SVGA,
  411. vesa SVGA and VGA graphics boards, respectively.  They are intended to be
  412. compiled with "emx-gcc" under either DOS or OS/2.  They also need VESA and
  413. SVGAKIT maintained by Johannes Martin (JMARTIN@GOOFY.ZDV.UNI-MAINZ.DE) with
  414. additions by David J. Liu (liu@phri.nyu.edu).
  415.  
  416. Syntax:
  417.  
  418.       set terminal emxvga
  419.       set terminal emxvesa {vesa-mode}
  420.       set terminal vgal
  421.  
  422. The only option is the vesa mode for C<emxvesa>, which defaults to G640x480x256.
  423.  
  424.  
  425.  
  426. =head1 epson-180dpi
  427.  
  428. This driver supports a family of Epson printers and derivatives.
  429.  
  430. C<epson-180dpi> and C<epson-60dpi> are drivers for Epson LQ-style 24-pin
  431. printers with resolutions of 180 and 60 dots per inch, respectively.
  432.  
  433. C<epson-lx800> is a generic 9-pin driver appropriate for printers like the
  434. Epson LX-800, the Star NL-10 and NX-1000, the PROPRINTER, and so forth.
  435.  
  436. C<nec-cp6> is generix 24-pin driver that can be used for printers like the
  437. NEC CP6 and the Epson LQ-800.
  438.  
  439. The C<okidata> driver supports the 9-pin OKIDATA 320/321 Standard printers.
  440.  
  441. The C<starc> driver is for the Star Color Printer.
  442.  
  443. The C<tandy-60dpi> driver is for the Tandy DMP-130 series of 9-pin, 60-dpi
  444. printers.
  445.  
  446. Only C<nec-cp6> has any options.
  447.  
  448. Syntax:
  449.  
  450.       set terminal nec-cp6 {monochrome | colour | draft}
  451.  
  452. which defaults to monochrome.
  453.  
  454. With each of these drivers, a binary copy is required on a PC to print.  Do
  455. not use C<print>---use instead C<copy file /b lpt1:>.
  456.  
  457.  
  458.  
  459. =head1 excl
  460.  
  461. The C<excl> terminal driver supports Talaris printers such as the EXCL Laser
  462. printer and the 1590.  It has no options.
  463.  
  464.  
  465.  
  466. =head1 hercules
  467.  
  468. These drivers supports PC monitors with autodetected graphics boards.  They
  469. can be used only when compiled with Zortech C/C++.  None have options.
  470.  
  471.  
  472.  
  473. =head1 fig
  474.  
  475. The C<fig> terminal device generates output in the Fig graphics language.
  476.  
  477. Syntax:
  478.  
  479.       set terminal fig {monochrome | color} {small | big}
  480.                        {pointsmax <max_points>}
  481.                        {landscape | portrait}
  482.                        {metric | inches}
  483.                        {fontsize <fsize>}
  484.                        {size <xsize> <ysize>}
  485.                        {thickness <units>}
  486.                        {depth <layer>}
  487.  
  488. C<monochrome> and C<color> determine whether the picture is black-and-white or
  489. C<color>.  C<small> and C<big> produce a 5x3 or 8x5 inch graph in the default
  490. C<landscape> mode and 3x5 or 5x8 inches in C<portrait> mode.  <max_points>
  491. sets the maximum number of points per polyline.  Default units for editing
  492. with "xfig" may be C<metric> or C<inches>.  C<fontsize> sets the size of the
  493. text font to <fsize> points.  C<size> sets (overrides) the size of the drawing
  494. area to <xsize>*<ysize> in units of inches or centimeters depending on the
  495. C<inches> or C<metric> setting in effect.  C<depth> sets the default depth layer
  496. for all lines and text.  The default depth is 10 to leave room for adding
  497. material with "xfig" on top of the plot.
  498.  
  499. C<thickness> sets the default line thickness, which is 1 if not specified.
  500. Overriding the thickness can be achieved by adding a multiple of 100 to the
  501. to the C<linetype> value for a C<plot> command.  In a similar way the C<depth>
  502. of plot elements (with respect to the default depth) can be controlled by
  503. adding a multiple of 1000 to <linetype>.  The depth is then <layer> +
  504. <linetype>/1000 and the thickness is (<linetype>%1000)/100 or, if that is
  505. zero, the default line thickness.
  506.  
  507. Additional point-plot symbols are also available with the C<fig> driver. The
  508. symbols can be used through C<pointtype> values % 100 above 50, with different
  509. fill intensities controlled by <pointtype> % 5 and outlines in black (for
  510. <pointtype> % 10 < 5) or in the current color.  Available symbols are
  511.  
  512.         50 - 59:  circles
  513.         60 - 69:  squares
  514.         70 - 79:  diamonds
  515.         80 - 89:  upwards triangles
  516.         90 - 99:  downwards triangles
  517.  
  518. The size of these symbols is linked to the font size.  The depth of symbols
  519. is by default one less than the depth for lines to achieve nice error bars.
  520. If <pointtype> is above 1000, the depth is <layer> + <pointtype>/1000-1.  If
  521. <pointtype>%1000 is above 100, the fill color is (<pointtype>%1000)/100-1.
  522.  
  523. Available fill colors are (from 1 to 9): black, blue, green, cyan, red,
  524. magenta, yellow, white and dark blue (in monochrome mode: black for 1 to 6
  525. and white for 7 to 9).
  526.  
  527. See C<plot with> for details of <linetype> and <pointtype>.
  528.  
  529. The C<big> option is a substitute for the C<bfig> terminal in earlier versions,
  530. which is no longer supported.
  531.  
  532. Examples:
  533.  
  534.       set terminal fig monochrome small pointsmax 1000  # defaults
  535.  
  536.       plot 'file.dat' with points linetype 102 pointtype 759
  537.  
  538. would produce circles with a blue outline of width 1 and yellow fill color.
  539.  
  540.       plot 'file.dat' using 1:2:3 with err linetype 1 pointtype 554
  541.  
  542. would produce errorbars with black lines and circles filled red.  These
  543. circles are one layer above the lines (at depth 9 by default).
  544.  
  545. To plot the error bars on top of the circles use
  546.  
  547.       plot 'file.dat' using 1:2:3 with err linetype 1 pointtype 2554
  548.  
  549.  
  550.  
  551. =head1 gif
  552.  
  553. The C<gif> terminal driver generates output in GIF format.  It uses Thomas
  554. Boutell's gd library, which is available from http://www.boutell.com/gd/
  555.  
  556. Syntax:
  557.  
  558.       set terminal gif {transparent} {interlace}
  559.                        {small | medium | large}
  560.                        {size <x>,<y>}
  561.                        {<color0> <color1> <color2> ...}
  562.  
  563. C<transparent> instructs the driver to generate transparent GIFs.  The first
  564. color will be the transparent one.
  565.  
  566. C<interlace> instructs the driver to generate interlaced GIFs.
  567.  
  568. The choice of fonts is C<small> (6x12 pixels), C<medium> (7x13 Bold) or C<large>
  569. (8x16).
  570.  
  571. The size <x,y> is given in pixels---it defaults to 640x480.  The number of
  572. pixels can be also modified by scaling with the C<set size> command.
  573.  
  574. Each color must be of the form 'xrrggbb', where x is the literal character
  575. 'x' and 'rrggbb' are the red, green and blue components in hex.  For example,
  576. 'x00ff00' is green.  The background color is set first, then the border
  577. colors, then the X & Y axis colors, then the plotting colors.  The maximum
  578. number of colors that can be set is 256.
  579.  
  580. Examples:
  581.  
  582.       set terminal gif small size 640,480 \
  583.                        xffffff x000000 x404040 \
  584.                        xff0000 xffa500 x66cdaa xcdb5cd \
  585.                        xadd8e6 x0000ff xdda0dd x9500d3    # defaults
  586.  
  587. which uses white for the non-transparent background, black for borders, gray
  588. for the axes, and red, orange, medium aquamarine, thistle 3, light blue, blue,
  589. plum and dark violet for eight plotting colors.
  590.  
  591.       set terminal gif transparent xffffff \
  592.                        x000000 x202020 x404040 x606060 \
  593.                        x808080 xA0A0A0 xC0C0C0 xE0E0E0 \
  594.  
  595. which uses white for the transparent background, black for borders, dark
  596. gray for axes, and a gray-scale for the six plotting colors.
  597.  
  598. The page size is 640x480 pixels.  The C<gif> driver can create either color
  599. or monochromatic output, but you have no control over which is produced.
  600.  
  601. The current version of the C<gif> driver does not support animated GIFs.
  602.  
  603.  
  604.  
  605. =head1 unixplot
  606.  
  607. The C<unixplot> driver produces device-independent output in the GNU plot
  608. graphics language.  The default size of the PostScript results generated by
  609. "plot2ps" is 5 x 3 inches; this can be increased up to about 8.25 x 8.25 by
  610. C<set size>.
  611.  
  612. Syntax:
  613.  
  614.       set terminal unixplot {"<fontname>"} {<fontsize>}
  615.  
  616. which defaults to 10-point "Courier".
  617.  
  618. There is a non-GNU version of the C<unixplot> driver which cannot be compiled
  619. unless this version is left out.
  620.  
  621.  
  622.  
  623. =head1 gpic
  624.  
  625. The C<gpic> terminal driver generates GPIC graphs in the Free Software
  626. Foundations's "groff" package.  The default size is 5 x 3 inches.  The only
  627. option is the origin, which defaults to (0,0).
  628.  
  629. Syntax:
  630.  
  631.       set terminal gpic {<x> <y>}
  632.  
  633. where C<x> and C<y> are in inches.
  634.  
  635. A simple graph can be formatted using
  636.  
  637.       groff -p -mpic -Tps file.pic > file.ps.
  638.  
  639. The output from pic can be pipe-lined into eqn, so it is possible to put
  640. complex functions in a graph with the C<set label> and C<set {x/y}label>
  641. commands.  For instance,
  642.  
  643.       set ylab '@space 0 int from 0 to x alpha ( t ) roman d t@'
  644.  
  645. will label the y axis with a nice integral if formatted with the command:
  646.  
  647.       gpic filename.pic | geqn -d@@ -Tps | groff -m[macro-package] -Tps
  648.           > filename.ps
  649.  
  650. Figures made this way can be scaled to fit into a document.  The pic language
  651. is easy to understand, so the graphs can be edited by hand if need be.  All
  652. co-ordinates in the pic-file produced by C<gnuplot> are given as x+gnuplotx
  653. and y+gnuploty.  By default x and y are given the value 0.  If this line is
  654. removed with an editor in a number of files, one can put several graphs in
  655. one figure like this (default size is 5.0x3.0 inches):
  656.  
  657.       .PS 8.0
  658.       x=0;y=3
  659.       copy "figa.pic"
  660.       x=5;y=3
  661.       copy "figb.pic"
  662.       x=0;y=0
  663.       copy "figc.pic"
  664.       x=5;y=0
  665.       copy "figd.pic"
  666.       .PE
  667.  
  668. This will produce an 8-inch-wide figure with four graphs in two rows on top
  669. of each other.
  670.  
  671. One can also achieve the same thing by the command
  672.  
  673.       set terminal gpic x y
  674.  
  675. for example, using
  676.  
  677.       .PS 6.0
  678.       copy "trig.pic"
  679.       .PE
  680.  
  681.  
  682.  
  683. =head1 gpr
  684.  
  685. The C<gpr> terminal driver supports the Apollo Graphics Primitive Resource
  686. for a fixed-size window.  It has no options.
  687.  
  688. If a variable window size is desired, use the C<apollo> terminal instead.
  689.  
  690.  
  691.  
  692. =head1 grass
  693.  
  694. The C<grass> terminal driver gives C<gnuplot> capabilities to users of the 
  695. GRASS geographic information system.  Contact grassp-list@moon.cecer.army.mil
  696. for more information.  Pages are written to the current frame of the GRASS
  697. Graphics Window.  There are no options.
  698.  
  699.  
  700.  
  701. =head1 hp2623a
  702.  
  703. The C<hp2623a> terminal driver supports the Hewlett Packard HP2623A.  It has
  704. no options.
  705.  
  706.  
  707.  
  708. =head1 hp2648
  709.  
  710. The C<hp2648> terminal driver supports the Hewlett Packard HP2647 and HP2648.
  711. It has no options.
  712.  
  713.  
  714.  
  715. =head1 hp500c
  716.  
  717. The C<hp500c> terminal driver supports the Hewlett Packard HP DeskJet 500c.
  718. It has options for resolution and compression.
  719.  
  720. Syntax:
  721.  
  722.       set terminal hp500c {<res>} {<comp>}
  723.  
  724. where C<res> can be 75, 100, 150 or 300 dots per inch and C<comp> can be "rle",
  725. or "tiff".  Any other inputs are replaced by the defaults, which are 75 dpi
  726. and no compression.  Rasterization at the higher resolutions may require a
  727. large amount of memory.
  728.  
  729.  
  730.  
  731. =head1 hpgl
  732.  
  733. The C<hpgl> driver produces HPGL output for devices like the HP7475A plotter.
  734. There are two options which can be set---the number of pens and "eject", which
  735. tells the plotter to eject a page when done.  The default is to use 6 pens
  736. and not to eject the page when done.
  737.  
  738. The international character sets ISO-8859-1 and CP850 are recognized via
  739. C<set encoding iso_8859_1> or C<set encoding cp850> (see C<set encoding> for
  740. details).
  741.  
  742. Syntax:
  743.  
  744.       set terminal hpgl {<number_of_pens>} {eject}
  745.  
  746. The selection
  747.  
  748.       set terminal hpgl 8 eject
  749.  
  750. is equivalent to the previous C<hp7550> terminal, and the selection
  751.  
  752.       set terminal hpgl 4
  753.  
  754. is equivalent to the previous C<hp7580b> terminal.
  755.  
  756. The C<pcl5> driver supports the Hewlett-Packard Laserjet III.  It actually uses
  757. HPGL-2, but there is a name conflict among the terminal devices.  It has
  758. several options
  759.  
  760. Syntax:
  761.  
  762.       set terminal pcl5 {<mode>} {<font>} {<fontsize>}
  763.  
  764. where <mode> is C<landscape>, or C<portrait>, <font> is C<stick>, C<univers>, or
  765. C<cg_times>, and <fontsize> is the size in points.
  766.  
  767. With C<pcl5> international characters are handled by the printer; you just put
  768. the appropriate 8-bit character codes into the text strings.  You don't need
  769. to bother with C<set encoding>.
  770.  
  771. HPGL graphics can be imported by many software packages.
  772.  
  773.  
  774.  
  775. =head1 hpljii
  776.  
  777. The C<hpljii> terminal driver supports the HP Laserjet Series II printer.  The
  778. C<hpdj> driver supports the HP DeskJet 500 printer.  These drivers allow a
  779. choice of resolutions.
  780.  
  781. Syntax:
  782.  
  783.       set terminal hpljii | hpdj {<res>}
  784.  
  785. where C<res> may be 75, 100, 150 or 300 dots per inch; the default is 75.
  786. Rasterization at the higher resolutions may require a large amount of memory.
  787.  
  788. The C<hp500c> terminal is similar to C<hpdj>; C<hp500c> additionally supports
  789. color and compression.
  790.  
  791.  
  792.  
  793. =head1 hppj
  794.  
  795. The C<hppj> terminal driver supports the HP PaintJet and HP3630 printers.  The
  796. only option is the choice of font.
  797.  
  798. Syntax:
  799.  
  800.       set terminal hppj {FNT5X9 | FNT9X17 | FNT13X25}
  801.  
  802. with the middle-sized font (FNT9X17) being the default.
  803.  
  804.  
  805.  
  806. =head1 imagen
  807.  
  808. The C<imagen> terminal driver supports Imagen laser printers.  It is capable
  809. of placing multiple graphs on a single page.
  810.  
  811. Syntax:
  812.  
  813.       set terminal imagen {<fontsize>} {portrait | landscape}
  814.                           {[<horiz>,<vert>]}
  815.  
  816. where C<fontsize> defaults to 12 points and the layout defaults to C<landscape>.
  817. C<<horiz>> and C<<vert>> are the number of graphs in the horizontal and
  818. vertical directions; these default to unity.
  819.  
  820. Example:
  821.  
  822.       set terminal imagen portrait [2,3]
  823.  
  824. puts six graphs on the page in three rows of two in portrait orientation.
  825.  
  826.  
  827.  
  828. =head1 iris4d
  829.  
  830. The C<iris4d> terminal driver supports Silicon Graphics IRIS 4D computers.
  831. Its only option is 8- or 24-bit color depth.  The default is 8.
  832.  
  833. Syntax:
  834.  
  835.       set terminal iris4d {8 | 24}
  836.  
  837. The color depth is not really a choice -- the value appropriate for the
  838. hardware should be selected.
  839.  
  840. When using 24-bit mode, the colors can be directly specified via the file
  841. .gnuplot_iris4d that is searched in the current directory and then in the
  842. home directory specified by the HOME environment variable.  This file holds
  843. RGB values for the background, border, labels and nine plotting colors, in
  844. that order.  For example, here is a file containing the default colors:
  845.  
  846.       85   85   85     Background   (dark gray)
  847.       0    0    0      Boundary     (black)
  848.       170  0    170    Labeling     (magenta)
  849.       85   255  255    Plot Color 1 (light cyan)
  850.       170  0    0      Plot Color 2 (red)
  851.       0    170  0      Plot Color 3 (green)
  852.       255  85   255    Plot Color 4 (light magenta)
  853.       255  255  85     Plot Color 5 (yellow)
  854.       255  85   85     Plot Color 6 (light red)
  855.       85   255  85     Plot Color 7 (light green)
  856.       0    170  170    Plot Color 8 (cyan)
  857.       170  170  0      Plot Color 9 (brown)
  858.  
  859. This file must have exactly 12 lines of RGB triples.  No empty lines are
  860. allowed, and anything after the third number on a line is ignored.
  861.  
  862.  
  863.  
  864. =head1 kyo
  865.  
  866. The C<kyo> and C<prescribe> terminal drivers support the Kyocera laser printer.
  867. The only difference between the two is that C<kyo> uses "Helvetica" whereas
  868. C<prescribe> uses "Courier".  There are no options.
  869.  
  870.  
  871.  
  872. =head1 latex
  873.  
  874. The C<latex> and C<emtex> drivers allow two options.
  875.  
  876. Syntax:
  877.  
  878.       set terminal latex | emtex {courier | roman} {<fontsize>}
  879.  
  880. C<fontsize> may be any size you specify.  The default is 10-point Roman.
  881.  
  882. Unless your driver is capable of building fonts at any size (e.g. dvips),
  883. stick to the standard 10, 11 and 12 point sizes.
  884.  
  885. METAFONT users beware: METAFONT does not like odd sizes.
  886.  
  887. All drivers for LaTeX offer a special way of controlling text positioning:
  888. If any text string begins with '{', you also need to include a '}' at the
  889. end of the text, and the whole text will be centered both horizontally
  890. and vertically by LaTeX. --- If the text string begins with '[', you need
  891. to continue it with: a position specification (up to two out of t,b,l,r),
  892. ']{', the text itself, and finally, '}'. The text itself may be anything
  893. LaTeX can typeset as an LR-box. \rule{}{}'s may help for best positioning.
  894.  
  895. Examples:
  896. About label positioning:
  897. Use gnuplot defaults (mostly sensible, but sometimes not really best):
  898.  
  899.        set title '\LaTeX\ -- $ \gamma $'
  900.  
  901. Force centering both horizontally and vertically:
  902.  
  903.        set label '{\LaTeX\ -- $ \gamma $}' at 0,0
  904.  
  905. Specify own positioning (top here):
  906.  
  907.        set xlabel '[t]{\LaTeX\ -- $ \gamma $}'
  908.  
  909. The other label -- account for long ticlabels:
  910.  
  911.        set ylabel '[r]{\LaTeX\ -- $ \gamma $\rule{7mm}{0pt}'
  912.  
  913.  
  914.  
  915. =head1 linux
  916.  
  917. The C<linux> driver has no additional options to specify.  It looks at the
  918. environment variable GSVGAMODE for the default mode; if not set, it uses
  919. 1024x768x256 as default mode or, if that is not possible, 640x480x16
  920. (standard VGA).
  921.  
  922.  
  923.  
  924. =head1 macintosh
  925.  
  926. Several options may be set in the 'macintosh' driver.
  927.  
  928. Syntax:
  929.  
  930.      set terminal macintosh {singlewin | multiwin} {vertical | novertical} {size <width>, <height> | default}
  931.  
  932. 'singlewin' limits the output to a single window and is useful for animations.
  933. 'multiwin' allows multiple windows.
  934. 'vertical' is only valid under the gx option. With this option, rotated text
  935.  
  936.     be drawn vertically. novertical turns this option off.
  937.  size <width>, <height> overrides the graph size set in the preferences
  938.     dialog until it is cleared with either 'set term mac size default'
  939.     or 'set term mac default'.
  940.  
  941.  'set term mac size default' sets the window size settings to those set in
  942.     the preferences dialog.
  943.  
  944.  'set term mac default' sets all options to their default values.
  945.     Default values: nogx, multiwin, novertical.
  946.  
  947.  If you generate graphs under the multiwin option and then switch to singlewin,
  948.  the next plot command will cause one more window to be created. This new
  949.  window will be reused as long as singlewin is in effect. If you switch back
  950.  to multiwin, generate some graphs, and then switch to singlewin again, the
  951.  orginal 'singlewin' window will be resused if it is still open. Otherwise
  952.  a new 'singlewin' window will be created. The 'singlewin' window is not numbered.
  953.  
  954.  
  955.  
  956. =head1 mf
  957.  
  958. The C<mf> terminal driver creates a input file to the METAFONT program.  Thus a
  959. figure may be used in the TeX document in the same way as is a character.
  960.  
  961. To use a picture in a document, the METAFONT program must be run with the
  962. output file from C<gnuplot> as input.  Thus, the user needs a basic knowledge
  963. of the font creating process and the procedure for including a new font in a
  964. document.  However, if the METAFONT program is set up properly at the local
  965. site, an unexperienced user could perform the operation without much trouble.
  966.  
  967. The text support is based on a METAFONT character set.  Currently the
  968. Computer Modern Roman font set is input, but the user is in principal free to
  969. chose whatever fonts he or she needs.  The METAFONT source files for the
  970. chosen font must be available.  Each character is stored in a separate
  971. picture variable in METAFONT.  These variables may be manipulated (rotated,
  972. scaled etc.) when characters are needed.  The drawback is the interpretation
  973. time in the METAFONT program.  On some machines (i.e. PC) the limited amount
  974. of memory available may also cause problems if too many pictures are stored.
  975.  
  976. The C<mf> terminal has no options.
  977.  
  978.  
  979.  
  980. =head2 METAFONT Instructions
  981.  
  982.  
  983. - Set your terminal to METAFONT:
  984.  
  985.   set terminal mf
  986.  
  987. - Select an output-file, e.g.:
  988.  
  989.   set output "myfigures.mf"
  990.  
  991. - Create your pictures. Each picture will generate a separate character. Its
  992. default size will be 5*3 inches. You can change the size by saying C<set size
  993. 0.5,0.5> or whatever fraction of the default size you want to have.
  994.  
  995. - Quit C<gnuplot>.
  996.  
  997. - Generate a TFM and GF file by running METAFONT on the output of C<gnuplot>.
  998. Since the picture is quite large (5*3 in), you will have to use a version of
  999. METAFONT that has a value of at least 150000 for memmax.  On Unix systems
  1000. these are conventionally installed under the name bigmf.  For the following
  1001. assume that the command virmf stands for a big version of METAFONT.  For
  1002. example:
  1003.  
  1004. - Invoke METAFONT:
  1005.  
  1006.     virmf '&plain'
  1007.  
  1008. - Select the output device: At the METAFONT prompt ('*') type:
  1009.  
  1010.     \mode:=CanonCX;     % or whatever printer you use
  1011.  
  1012. - Optionally select a magnification:
  1013.  
  1014.     mag:=1;             % or whatever you wish
  1015.  
  1016. - Input the C<gnuplot>-file:
  1017.  
  1018.     input myfigures.mf
  1019.  
  1020. On a typical Unix machine there will usually be a script called "mf" that
  1021. executes virmf '&plain', so you probably can substitute mf for virmf &plain.
  1022. This will generate two files: mfput.tfm and mfput.$$$gf (where $$$ indicates
  1023. the resolution of your device).  The above can be conveniently achieved by
  1024. typing everything on the command line, e.g.:
  1025. virmf '&plain' '\mode:=CanonCX; mag:=1; input myfigures.mf'
  1026. In this case the output files will be named myfigures.tfm and
  1027. myfigures.300gf.
  1028.  
  1029. - Generate a PK file from the GF file using gftopk:
  1030.  
  1031.   gftopk myfigures.300gf myfigures.300pk
  1032.  
  1033. The name of the output file for gftopk depends on the DVI driver you use.
  1034. Ask your local TeX administrator about the naming conventions.  Next, either
  1035. install the TFM and PK files in the appropriate directories, or set your
  1036. environment variables properly.  Usually this involves setting TEXFONTS to
  1037. include the current directory and doing the same thing for the environment
  1038. variable that your DVI driver uses (no standard name here...).  This step is
  1039. necessary so that TeX will find the font metric file and your DVI driver will
  1040. find the PK file.
  1041.  
  1042. - To include your pictures in your document you have to tell TeX the font:
  1043.  
  1044.   \font\gnufigs=myfigures
  1045.  
  1046. Each picture you made is stored in a single character.  The first picture is
  1047. character 0, the second is character 1, and so on...  After doing the above
  1048. step, you can use the pictures just like any other characters.  Therefore, to
  1049. place pictures 1 and 2 centered in your document, all you have to do is:
  1050.  
  1051.   \centerline{\gnufigs\char0}
  1052.   \centerline{\gnufigs\char1}
  1053.  
  1054. in plain TeX.  For LaTeX you can, of course, use the picture environment and
  1055. place the picture wherever you wish by using the \makebox and \put macros.
  1056.  
  1057. This conversion saves you a lot of time once you have generated the font;
  1058. TeX handles the pictures as characters and uses minimal time to place them,
  1059. and the documents you make change more often than the pictures do.  It also
  1060. saves a lot of TeX memory.  One last advantage of using the METAFONT driver
  1061. is that the DVI file really remains device independent, because no \special
  1062. commands are used as in the eepic and tpic drivers.
  1063.  
  1064.  
  1065.  
  1066. =head1 mgr
  1067.  
  1068. The C<mgr> terminal driver supports the Mgr Window system.  It has no options.
  1069.  
  1070.  
  1071.  
  1072. =head1 mif
  1073.  
  1074. The C<mif> terminal driver produces Frame Maker MIF format version 3.00.  It
  1075. plots in MIF Frames with the size 15*10 cm, and plot primitives with the same
  1076. pen will be grouped in the same MIF group.  Plot primitives in a C<gnuplot>
  1077. page will be plotted in a MIF Frame, and several MIF Frames are collected in
  1078. one large MIF Frame.  The MIF font used for text is "Times".
  1079.  
  1080. Several options may be set in the MIF 3.00 driver.
  1081.  
  1082. Syntax:
  1083.  
  1084.       set terminal mif {colour | monochrome} {polyline | vectors}
  1085.                        {help | ?}
  1086.  
  1087. C<colour> plots lines with line types >= 0 in colour (MIF sep. 2--7) and
  1088. C<monochrome> plots all line types in black (MIF sep. 0).
  1089. C<polyline> plots curves as continuous curves and C<vectors> plots curves as
  1090. collections of vectors.
  1091. C<help> and C<?> print online help on standard error output---both print a
  1092. short description of the usage; C<help> also lists the options;
  1093.  
  1094. Examples:
  1095.  
  1096.       set term mif colour polylines    # defaults
  1097.       set term mif                     # defaults
  1098.       set term mif vectors
  1099.       set term mif help
  1100.  
  1101.  
  1102.  
  1103. =head1 mtos
  1104.  
  1105. The C<mtos> terminal has no options.  It sends data via a pipe to an external
  1106. program called GPCLIENT.  It runs under MULTITOS, Magic 3.x, MagicMAC. and
  1107. MiNT.  If you cannot find GPCLIENT, than mail to dirk@lstm.uni-erlangen.de.
  1108.  
  1109.  
  1110.  
  1111. =head1 next
  1112.  
  1113. Several options may be set in the next driver.
  1114.  
  1115. Syntax:
  1116.  
  1117.       set terminal next {<mode>} {<type> } {<color>} {<dashed>}
  1118.                  {"<fontname>"} {<fontsize>} title {"<newtitle>"}
  1119.  
  1120. where <mode> is  C<default>, which sets all options to their defaults;
  1121. <type> is either C<new> or C<old>, where C<old> invokes the old single window;
  1122. <color> is either C<color> or C<monochrome>;
  1123. <dashed> is either C<solid> or C<dashed>;
  1124. "<fontname>" is the name of a valid PostScript font;
  1125. <fontsize> is the size of the font in PostScript points; and
  1126. <title> is the title for the GnuTerm window.
  1127. Defaults are  C<new>, C<monochrome>, C<dashed>, "Helvetica", 14pt.
  1128.  
  1129. Examples:
  1130.  
  1131.       set term next default
  1132.       set term next 22
  1133.       set term next color "Times-Roman" 14
  1134.       set term next color "Helvetica" 12 title "MyPlot"
  1135.       set term next old
  1136.  
  1137. Pointsizes may be changed with C<set linestyle>.
  1138.  
  1139.  
  1140.  
  1141. =head1 pbm
  1142.  
  1143. Several options may be set in the C<pbm> terminal---the driver for PBMplus.
  1144.  
  1145. Syntax:
  1146.  
  1147.       set terminal pbm {<fontsize>} {<mode>}
  1148.  
  1149. where <fontsize> is C<small>, C<medium>, or C<large> and <mode> is C<monochrome>,
  1150. C<gray> or C<color>.  The default plot size is 640 pixels wide and 480 pixels
  1151. high; this may be changed by C<set size>.
  1152.  
  1153. The output of the C<pbm> driver depends upon <mode>: C<monochrome> produces a
  1154. portable bitmap (one bit per pixel), C<gray> a portable graymap (three bits
  1155. per pixel) and C<color> a portable pixmap (color, four bits per pixel).
  1156.  
  1157. The output of this driver can be used with Jef Poskanzer's excellent PBMPLUS
  1158. package, which provides programs to convert the above PBMPLUS formats to GIF,
  1159. TIFF, MacPaint, Macintosh PICT, PCX, X11 bitmap and many others.  PBMPLUS may
  1160. be obtained from ftp.x.org.  The relevant files have names that begin with
  1161. "netpbm-1mar1994.p1"; they reside in /contrib/utilities.  The package can
  1162. probably also be obtained from one of the many sites that mirrors ftp.x.org.
  1163.  
  1164. Examples:
  1165.  
  1166.       set terminal pbm small monochrome             # defaults
  1167.       set size 2,2; set terminal pbm color medium
  1168.  
  1169.  
  1170.  
  1171. =head1 dospc
  1172.  
  1173. The C<dospc> terminal driver supports PCs with arbitrary graphics boards, which
  1174. will be automatically detected.  It should be used only if you are not using
  1175. the gcc or Zortec C/C++ compilers.
  1176.  
  1177.  
  1178.  
  1179. =head1 pm
  1180.  
  1181. The C<pm> terminal driver provides an OS/2 Presentation Manager window in
  1182. which the graph is plotted.  The window is opened when the first graph is
  1183. plotted.  This window has its own online help as well as facilities for
  1184. printing, copying to the clipboard and some line type and color adjustments.
  1185. The C<multiplot> option is supported.
  1186.  
  1187. Syntax:
  1188.  
  1189.       set terminal pm {server {n}} {persist} {widelines} {enhanced} {"title"}
  1190.  
  1191. If C<persist> is specified, each graph appears in its own window and all
  1192. windows remain open after C<gnuplot> exits.  If C<server> is specified, all
  1193. graphs appear in the same window, which remains open when C<gnuplot> exits.
  1194. This option takes an optional numerical argument which specifies an instance
  1195. of the server process.  Thus multiple server windows can be in use at the
  1196. same time.
  1197.  
  1198. If C<widelines> is specified, all plots will be drawn with wide lines.  If
  1199. C<enhanced> is specified, sub- and superscripts and multiple fonts are
  1200. enabled using the same syntax as the C<enhanced postscript> option (see
  1201. C<set terminal postscript enhanced> for details).  Font names for the basic
  1202. PostScript fonts may be abbreviated to single letters.
  1203.  
  1204. If C<title> is specified, it will be used as the title of the plot window.
  1205. It will also be used as the name of the server instance, and will override
  1206. the optional numerical argument.
  1207.  
  1208. Linewidths may be changed with C<set linestyle>.
  1209.  
  1210.  
  1211.  
  1212. =head1 png
  1213.  
  1214. The C<png> terminal driver supports Portable Network Graphics.  To compile it,
  1215. you will need  the third-party libraries "libpng" and "zlib"; both are
  1216. available at ftp://ftp.uu.net/graphics/png.  C<png> has two options.
  1217.  
  1218. Syntax:
  1219.  
  1220.       set terminal png {small | medium | large}
  1221.                        {monochrome | gray | color}
  1222.  
  1223. The defaults are small (fontsize) and monochrome.
  1224.  
  1225.  
  1226.  
  1227. =head1 postscript
  1228.  
  1229. Several options may be set in the C<postscript> driver.
  1230.  
  1231. Syntax:
  1232.  
  1233.       set terminal postscript {<mode>} {enhanced | noenhanced}
  1234.                               {color | monochrome} {solid | dashed}
  1235.                               {<duplexing>}
  1236.                               {"<fontname>"} {<fontsize>}
  1237.  
  1238. where <mode> is C<landscape>, C<portrait>, C<eps> or C<default>;
  1239. C<solid> draws all plots with solid lines, overriding any dashed patterns;
  1240. <duplexing> is C<defaultplex>, C<simplex> or C<duplex> ("duplexing" in
  1241. PostScript is the ability of the printer to print on both sides of the same
  1242. page---don't set this if your printer can't do it);
  1243. C<enhanced> activates the "enhanced PostScript" features (subscripts,
  1244. superscripts and mixed fonts);
  1245. C<"<fontname>"> is the name of a valid PostScript font; and C<<fontsize>> is
  1246. the size of the font in PostScript points.
  1247.  
  1248. C<default> mode sets all options to their defaults: C<landscape>, C<monochrome>,
  1249. C<dashed>, C<defaultplex>, C<noenhanced>, "Helvetica" and 14pt.
  1250.  
  1251.  Default size of a PostScript plot is 10 inches wide and 7 inches high.
  1252.  
  1253. C<eps> mode generates EPS (Encapsulated PostScript) output, which is just
  1254. regular PostScript with some additional lines that allow the file to be
  1255. imported into a variety of other applications.  (The added lines are
  1256. PostScript comment lines, so the file may still be printed by itself.)  To
  1257. get EPS output, use the C<eps> mode and make only one plot per file.  In C<eps>
  1258. mode the whole plot, including the fonts, is reduced to half of the default
  1259. size.
  1260.  
  1261. Examples:
  1262.  
  1263.       set terminal postscript default       # old postscript
  1264.       set terminal postscript enhanced      # old enhpost
  1265.       set terminal postscript landscape 22  # old psbig
  1266.       set terminal postscript eps 14        # old epsf1
  1267.       set terminal postscript eps 22        # old epsf2
  1268.       set size 0.7,1.4; set term post portrait color "Times-Roman" 14
  1269.  
  1270. Linewidths and pointsizes may be changed with C<set linestyle>.
  1271.  
  1272. The C<postscript> driver supports about 70 distinct pointtypes, selectable
  1273. through the C<pointtype> option on C<plot> and C<set linestyle>.
  1274.  
  1275. Several possibly useful files about C<gnuplot>'s PostScript are included
  1276. in the /docs/ps subdirectory of the C<gnuplot> distribution and at the
  1277. distribution sites.  These are "ps_symbols.gpi" (a C<gnuplot> command file
  1278. that, when executed, creates the file "ps_symbols.ps" which shows all the
  1279. symbols available through the C<postscript> terminal), "ps_guide.ps" (a
  1280. PostScript file that contains a summary of the enhanced syntax and a page
  1281. showing what the octal codes produce with text and symbol fonts) and
  1282. "ps_file.doc" (a text file that contains a discussion of the organization
  1283. of a PostScript file written by C<gnuplot>).
  1284.  
  1285. A PostScript file is editable, so once C<gnuplot> has created one, you are
  1286. free to modify it to your heart's desire.  See the "editing postscript"
  1287. section for some hints.
  1288.  
  1289.  
  1290.  
  1291. =head2 enhanced postscript
  1292.  
  1293.   Control      Examples        Explanation
  1294.    ^           a^x             superscript
  1295.    _           a_x             subscript
  1296.    @           @x or a@^b_c    phantom box (occupies no width)
  1297.    &           &{space}        inserts space of specified length
  1298.  
  1299.  
  1300. Braces can be used to place multiple-character text where a single character
  1301. is expected (e.g., 2^{10}).  To change the font and/or size, use the full
  1302. form:  {/[fontname][=fontsize | *fontscale] text}.  Thus {/Symbol=20 G} is a
  1303. 20-point GAMMA) and {/*0.75 K} is a K at three-quarters of whatever fontsize
  1304. is currently in effect.  (The '/' character MUST be the first character after
  1305. the '{'.)
  1306.  
  1307. If the encoding vector has been changed by C<set encoding>, the default
  1308. encoding vector can be used instead by following the slash with a dash.  This
  1309. is unnecessary if you use the Symbol font, however---since /Symbol uses its
  1310. own encoding vector, C<gnuplot> will not apply any other encoding vector to
  1311. it.
  1312.  
  1313. The phantom box is useful for a@^b_c to align superscripts and subscripts
  1314. but does not work well for overwriting an accent on a letter.  (To do the
  1315. latter, it is much better to use C<set encoding iso_8859_1> to change to the
  1316. ISO Latin-1 encoding vector, which contains a large variety of letters with
  1317. accents or other diacritical marks.)  Since the box is non-spacing, it is
  1318. sensible to put the shorter of the subscript or superscript in the box (that
  1319. is, after the @).
  1320.  
  1321. Space equal in length to a string can be inserted using the '&' character.
  1322. Thus
  1323.  
  1324.         'abc&{def}ghi'
  1325.  
  1326. would produce
  1327.  
  1328.         'abc   ghi'.
  1329.  
  1330. You can access special symbols numerically by specifying \character-code (in
  1331. octal), e.g., {/Symbol \245} is the symbol for infinity.
  1332.  
  1333. You can escape control characters using \, e.g.,  \\, \{, and so on.
  1334.  
  1335. But be aware that strings in double-quotes are parsed differently than those
  1336. enclosed in single-quotes.  The major difference is that backslashes may need
  1337. to be doubled when in double-quoted strings.
  1338.  
  1339. Examples (these are hard to describe in words---try them!):
  1340.  
  1341.       set xlabel 'Time (10^6 {/Symbol m}s)'
  1342.       set title '{/Symbol=18 \362@_{/=9.6 0}^{/=12 x}} \
  1343.                  {/Helvetica e^{-{/Symbol m}^2/2} d}{/Symbol m}'
  1344.  
  1345. The file "ps_guide.ps" in the /docs/ps subdirectory of the C<gnuplot> source
  1346. distribution contains more examples of the enhanced syntax.
  1347.  
  1348.  
  1349.  
  1350. =head2 editing postscript
  1351.  
  1352. The PostScript language is a very complex language---far too complex to
  1353. describe in any detail in this document.  Nevertheless there are some things
  1354. in a PostScript file written by C<gnuplot> that can be changed without risk of
  1355. introducing fatal errors into the file.
  1356.  
  1357. For example, the PostScript statement "/Color true def" (written into the
  1358. file in response to the command C<set terminal postscript color>), may be
  1359. altered in an obvious way to generate a black-and-white version of a plot.
  1360. Similarly line colors, text colors, line weights and symbol sizes can also be
  1361. altered in straight-forward ways.  Text (titles and labels) can be edited to
  1362. correct misspellings or to change fonts.  Anything can be repositioned, and
  1363. of course anything can be added or deleted, but modifications such as these
  1364. may require deeper knowledge of the PostScript language.
  1365.  
  1366. The organization of a PostScript file written by C<gnuplot> is discussed in
  1367. the text file "ps_file.doc" in the /docs/ps subdirectory.
  1368.  
  1369.  
  1370.  
  1371. =head1 pslatex and pstex
  1372.  
  1373. The C<pslatex> and C<pstex> drivers generate output for further processing by
  1374. LaTeX and TeX, respectively.  Figures generated by C<pstex> can be included
  1375. in any plain-based format (including LaTeX).
  1376.  
  1377. Syntax:
  1378.  
  1379.       set terminal pslatex | |pstex {<color>} {<dashed>} {<rotate>}
  1380.                                     {auxfile} {<font_size>}
  1381.  
  1382. <color> is either C<color> or C<monochrome>.  <rotate> is either C<rotate> or
  1383. C<norotate> and determines if the y-axis label is rotated.  <font_size> is
  1384. used to scale the font from its usual size.
  1385.  
  1386. If C<auxfile> is specified, it directs the driver to put the PostScript
  1387. commands into an auxiliary file instead of directly into the LaTeX file.
  1388. This is useful if your pictures are large enough that dvips cannot handle
  1389. them.  The name of the auxiliary PostScript file is derived from the name of
  1390. the TeX file given on the C<set output> command; it is determined by replacing
  1391. the trailing C<.tex> (actually just the final extent in the file name---and
  1392. the option will be turned off if there is no extent) with C<.ps> in the output
  1393. file name.  Remember to close the file before leaving C<gnuplot>.
  1394.  
  1395. All drivers for LaTeX offer a special way of controlling text positioning:
  1396. If any text string begins with '{', you also need to include a '}' at the
  1397. end of the text, and the whole text will be centered both horizontally
  1398. and vertically by LaTeX. --- If the text string begins with '[', you need
  1399. to continue it with: a position specification (up to two out of t,b,l,r),
  1400. ']{', the text itself, and finally, '}'. The text itself may be anything
  1401. LaTeX can typeset as an LR-box. \rule{}{}'s may help for best positioning.
  1402.  
  1403. Examples:
  1404.  
  1405.       set term pslatex monochrome dashed rotate       # set to defaults
  1406.  
  1407. To write the PostScript commands into the file "foo.ps":
  1408.  
  1409.       set term pslatex auxfile
  1410.       set output "foo.tex"; plot ...: set output
  1411.  
  1412. About label positioning:
  1413. Use gnuplot defaults (mostly sensible, but sometimes not really best):
  1414.  
  1415.        set title '\LaTeX\ -- $ \gamma $'
  1416.  
  1417. Force centering both horizontally and vertically:
  1418.  
  1419.        set label '{\LaTeX\ -- $ \gamma $}' at 0,0
  1420.  
  1421. Specify own positioning (top here):
  1422.  
  1423.        set xlabel '[t]{\LaTeX\ -- $ \gamma $}'
  1424.  
  1425. The other label -- account for long ticlabels:
  1426.  
  1427.        set ylabel '[r]{\LaTeX\ -- $ \gamma $\rule{7mm}{0pt}'
  1428.  
  1429. Linewidths and pointsizes may be changed with C<set linestyle>.
  1430.  
  1431.  
  1432.  
  1433. =head1 pstricks
  1434.  
  1435. The C<pstricks> driver is intended for use with the "pstricks.sty" macro
  1436. package for LaTeX.  It is an alternative to the C<eepic> and C<latex> drivers.
  1437. You need "pstricks.sty", and, of course, a printer that understands
  1438. PostScript, or a converter such as Ghostscript.
  1439.  
  1440. PSTricks is available via anonymous ftp from the /pub directory at
  1441. Princeton.EDU.  This driver definitely does not come close to using the full
  1442. capability of the PSTricks package.
  1443.  
  1444. Syntax:
  1445.  
  1446.       set terminal pstricks {hacktext | nohacktext} {unit | nounit}
  1447.  
  1448. The first option invokes an ugly hack that gives nicer numbers; the second
  1449. has to do with plot scaling.  The defaults are C<hacktext> and C<nounit>.
  1450.  
  1451.  
  1452.  
  1453. =head1 qms
  1454.  
  1455. The C<qms> terminal driver supports the QMS/QUIC Laser printer, the Talaris
  1456. 1200 and others.  It has no options.
  1457.  
  1458.  
  1459.  
  1460. =head1 regis
  1461.  
  1462. The C<regis> terminal device generates output in the REGIS graphics language.
  1463. It has the option of using 4 (the default) or 16 colors.
  1464.  
  1465. Syntax:
  1466.  
  1467.       set terminal regis {4 | 16}
  1468.  
  1469.  
  1470.  
  1471. =head1 rgip
  1472.  
  1473. The C<rgip> and C<uniplex> terminal drivers support RGIP metafiles.  They can
  1474. combine several graphs on a single page, but only one page is allowed in a
  1475. given output file.
  1476.  
  1477. Syntax:
  1478.  
  1479.       set terminal rgip | uniplex {portrait | landscape}
  1480.                                   {[<horiz>,<vert>]} {<fontsize>}
  1481.  
  1482. permissible values for the font size are in the range 1--8, with the default
  1483. being 1.  The default layout is landscape.  Graphs are placed on the page in
  1484. a C<horiz>xC<vert> grid, which defaults to [1,1].
  1485.  
  1486. Example:
  1487.  
  1488.       set terminal uniplex portrait [2,3]
  1489.  
  1490. puts six graphs on a page in three rows of two in portrait orientation.
  1491.  
  1492.  
  1493.  
  1494. =head1 sun
  1495.  
  1496. The C<sun> terminal driver supports the SunView window system.  It has no
  1497. options.
  1498.  
  1499.  
  1500.  
  1501. =head1 tek410x
  1502.  
  1503. The C<tek410x> terminal driver supports the 410x and 420x family of Tektronix
  1504. terminals.  It has no options.
  1505.  
  1506.  
  1507.  
  1508. =head1 table
  1509.  
  1510. Instead of producing a graph, the C<table> terminal prints out the points on
  1511. which a graph would be based, i.e., the results of processing the C<plot> or
  1512. C<splot> command, in a multicolumn ASCII table of X Y {Z} R values.  The
  1513. character R takes on one of three values: "i" if the point is in the active
  1514. range, "o" if it is out-of-range, or "u" if it is undefined.  The data
  1515. format is determined by the format of the axis labels (see C<set format>).
  1516.  
  1517. For those times when you want the numbers, you can display them on the
  1518. screen or save them to a file.  This can be useful if you want to generate
  1519. contours and then save them for further use, perhaps for plotting with
  1520. C<plot>;  see C<set contour> for an example.  The same method can be used to
  1521. save interpolated data (see C<set samples> and C<set dgrid3d>).
  1522.  
  1523.  
  1524.  
  1525. =head1 tek40
  1526.  
  1527. This family of terminal drivers supports a variety of VT-like terminals.
  1528. C<tek40xx> supports Tektronix 4010 and others as well as most TEK emulators;
  1529. C<vttek> supports VT-like tek40xx terminal emulators; C<kc-tek40xx> supports
  1530. MS-DOS Kermit Tek4010 terminal emulators in color: C<km-tek40xx> supports them
  1531. in monochrome; C<selanar> supports Selanar graphics; and C<bitgraph> supports
  1532. BBN Bitgraph terminals.  None have any options.
  1533.  
  1534.  
  1535.  
  1536. =head1 texdraw
  1537.  
  1538. The C<texdraw> terminal driver supports the LaTeX texdraw environment.  It is
  1539. intended for use with "texdraw.sty" and "texdraw.tex" in the texdraw package.
  1540.  
  1541. It has no options.
  1542.  
  1543.  
  1544.  
  1545. =head1 tgif
  1546.  
  1547. Tgif is an X11-based drawing tool---it has nothing to do with GIF.
  1548.  
  1549. The C<tgif> driver supports different pointsizes (with C<set pointsize>),
  1550. different label fonts and font sizes (e.g. C<set label "Hallo" at x,y font
  1551. "Helvetica,34">) and multiple graphs on the page.  The proportions of the
  1552. axes are not changed.
  1553.  
  1554. Syntax:
  1555.  
  1556.       set terminal tgif {portrait | landscape} {<[x,y]>}
  1557.                         {solid | dashed}
  1558.                         {"<fontname>"} {<fontsize>}
  1559.  
  1560. where <[x,y]> specifies the number of graphs in the x and y directions on the
  1561. page, "<fontname>" is the name of a valid PostScript font, and <fontsize>
  1562. specifies the size of the PostScript font.  Defaults are C<portrait>, C<[1,1]>,
  1563. C<dashed>, C<"Helvetica">, and C<18>.
  1564.  
  1565. The C<solid> option is usually prefered if lines are colored, as they often
  1566. are in the editor.  Hardcopy will be black-and-white, so C<dashed> should be
  1567. chosen for that.
  1568.  
  1569. Multiplot is implemented in two different ways.
  1570.  
  1571. The first multiplot implementation is the standard gnuplot multiplot feature:
  1572.  
  1573.       set terminal tgif
  1574.       set output "file.obj"
  1575.       set multiplot
  1576.       set origin x01,y01
  1577.       set size  xs,ys
  1578.       plot ...
  1579.            ...
  1580.       set origin x02,y02
  1581.       plot ...
  1582.       set nomultiplot
  1583.  
  1584. See C<set multiplot> for further information.
  1585.  
  1586. The second version is the [x,y] option for the driver itself.  The advantage
  1587. of this implementation is that everything is scaled and placed automatically
  1588. without the need for setting origins and sizes; the graphs keep their natural
  1589. x/y proportions of 3/2 (or whatever is fixed by C<set size>).
  1590.  
  1591. If both multiplot methods are selected, the standard method is chosen and a
  1592. warning message is given.
  1593.  
  1594. Examples of single plots (or standard multiplot):
  1595.  
  1596.       set terminal tgif                  # defaults
  1597.       set terminal tgif "Times-Roman" 24
  1598.       set terminal tgif landscape
  1599.       set terminal tgif landscape solid
  1600.  
  1601. Examples using the built-in multiplot mechanism:
  1602.  
  1603.       set terminal tgif portrait [2,4]  # portrait; 2 plots in the x-
  1604.                                         # and 4 in the y-direction
  1605.       set terminal tgif [1,2]           # portrait; 1 plot in the x-
  1606.                                         # and 2 in the y-direction
  1607.       set terminal tgif landscape [3,3] # landscape; 3 plots in both
  1608.                                         # directions
  1609.  
  1610.  
  1611.  
  1612. =head1 tkcanvas
  1613.  
  1614. This terminal driver generates tk canvas widget commands.  To use it, rebuild
  1615. C<gnuplot> (after uncommenting or inserting the appropriate line in "term.h"),
  1616. then
  1617.  
  1618.  gnuplot> set term tkcanvas
  1619.  gnuplot> set output 'plot.file'
  1620.  
  1621. After invoking "wish", execute the following sequence of tcl commands:
  1622.  
  1623.  % source plot.file
  1624.  % canvas .c
  1625.  % pack .c
  1626.  % gnuplot .c
  1627.  
  1628. The code generated by C<gnuplot> creates a tcl procedure called "gnuplot"
  1629. that takes the name of a canvas as its argument.  When the procedure is,
  1630. called, it clears the canvas, finds the size of the canvas and draws the plot
  1631. in it, scaled to fit.
  1632.  
  1633. The current version of C<tkcanvas> supports neither C<multiplot> nor C<replot>.
  1634.  
  1635.  
  1636.  
  1637. =head1 tpic
  1638.  
  1639. The C<tpic> terminal driver supports the LaTeX picture environment with tpic
  1640. \specials.  It is an alternative to the C<latex> and C<eepic> terminal drivers.
  1641. Options are the point size, line width, and dot-dash interval.
  1642.  
  1643. Syntax:
  1644.  
  1645.       set terminal tpic <pointsize> <linewidth> <interval>
  1646.  
  1647. where C<pointsize> and C<linewidth> are integers in milli-inches and C<interval>
  1648. is a float in inches.  If a non-positive value is specified, the default is
  1649. chosen: pointsize = 40, linewidth = 6, interval = 0.1.
  1650.  
  1651. All drivers for LaTeX offer a special way of controlling text positioning:
  1652. If any text string begins with '{', you also need to include a '}' at the
  1653. end of the text, and the whole text will be centered both horizontally
  1654. and vertically by LaTeX. --- If the text string begins with '[', you need
  1655. to continue it with: a position specification (up to two out of t,b,l,r),
  1656. ']{', the text itself, and finally, '}'. The text itself may be anything
  1657. LaTeX can typeset as an LR-box. \rule{}{}'s may help for best positioning.
  1658.  
  1659. Examples:
  1660. About label positioning:
  1661. Use gnuplot defaults (mostly sensible, but sometimes not really best):
  1662.  
  1663.        set title '\LaTeX\ -- $ \gamma $'
  1664.  
  1665. Force centering both horizontally and vertically:
  1666.  
  1667.        set label '{\LaTeX\ -- $ \gamma $}' at 0,0
  1668.  
  1669. Specify own positioning (top here):
  1670.  
  1671.        set xlabel '[t]{\LaTeX\ -- $ \gamma $}'
  1672.  
  1673. The other label -- account for long ticlabels:
  1674.  
  1675.        set ylabel '[r]{\LaTeX\ -- $ \gamma $\rule{7mm}{0pt}'
  1676.  
  1677.  
  1678.  
  1679. =head1 unixpc
  1680.  
  1681. The C<unixpc> terminal driver supports AT&T 3b1 and AT&T 7300 Unix PC.  It has
  1682. no options.
  1683.  
  1684.  
  1685.  
  1686. =head1 unixplot
  1687.  
  1688. The C<unixplot> terminal driver generates output in the Unix "plot" graphics
  1689. language.  It has no options.
  1690.  
  1691. This terminal cannot be compiled if the GNU version of plot is to be used;
  1692. in that case, use the C<gnugraph> terminal instead.
  1693.  
  1694.  
  1695.  
  1696. =head1 vx384
  1697.  
  1698. The C<vx384> terminal driver supports the Vectrix 384 and Tandy color
  1699. printers.  It has no options.
  1700.  
  1701.  
  1702.  
  1703. =head1 VWS
  1704.  
  1705. The C<VWS> terminal driver supports the VAX Windowing System.  It has
  1706. no options.  It will sense the display type (monochrome, gray scale,
  1707. or color.)  All line styles are plotted as solid lines.
  1708.  
  1709.  
  1710.  
  1711. =head1 windows
  1712.  
  1713. Three options may be set in the C<windows> terminal driver.
  1714.  
  1715. Syntax:
  1716.  
  1717.       set terminal windows {<color>} {"<fontname>"} {<fontsize>}
  1718.  
  1719. where C<<color>> is either C<color> or C<monochrome>, C<"<fontname>"> is the
  1720. name of a valid Windows font, and C<<fontsize>> is the size of the font in
  1721. points.
  1722.  
  1723. Other options may be set with the graph-menu, the initialization file,
  1724. and C<set linestyle>.
  1725.  
  1726. The Windows version normally terminates immediately as soon as the end of
  1727. any files given as command line arguments is reached (i.e. in non-interactive
  1728. mode). It will also not show the text-window at all, in this mode, only
  1729. the plot. By giving the optional argument
  1730. C</noend> or C<-noend>, you can disable this behaviour.
  1731.  
  1732.  
  1733.  
  1734. =head2 graph-menu
  1735.  
  1736. The C<gnuplot graph> window has the following options on a pop-up menu
  1737. accessed by pressing the right mouse button or selecting C<Options> from the
  1738. system menu:
  1739.  
  1740. C<Bring to Top> when checked brings the graph window to the top after every
  1741. plot.
  1742.  
  1743. C<Color> when checked enables color linestyles.  When unchecked it forces
  1744. monochrome linestyles.
  1745.  
  1746. C<Copy to Clipboard> copies a bitmap and a Metafile picture.
  1747.  
  1748. C<Background...> sets the window background color.
  1749.  
  1750. C<Choose Font...> selects the font used in the graphics window.
  1751.  
  1752. C<Line Styles...> allows customization of the line colors and styles.
  1753.  
  1754. C<Print...> prints the graphics windows using a Windows printer driver and
  1755. allows selection of the printer and scaling of the output.  The output
  1756. produced by C<Print> is not as good as that from C<gnuplot>'s own printer
  1757. drivers.
  1758.  
  1759. C<Update wgnuplot.ini> saves the current window locations, window sizes, text
  1760. window font, text window font size, graph window font, graph window font
  1761. size, background color and linestyles to the initialization file
  1762. C<WGNUPLOT.INI>.
  1763.  
  1764.  
  1765.  
  1766. =head2 printing
  1767.  
  1768. In order of preference, graphs may be be printed in the following ways.
  1769.  
  1770. C<1.> Use the C<gnuplot> command C<set terminal> to select a printer and C<set
  1771. output> to redirect output to a file.
  1772.  
  1773. C<2.> Select the C<Print...> command from the C<gnuplot graph> window.  An extra
  1774. command C<screendump> does this from the text window.
  1775.  
  1776. C<3.> If C<set output "PRN"> is used, output will go to a temporary file.  When
  1777. you exit from C<gnuplot> or when you change the output with another C<set
  1778. output> command, a dialog box will appear for you to select a printer port.
  1779. If you choose OK, the output will be printed on the selected port, passing
  1780. unmodified through the print manager.  It is possible to accidentally (or
  1781. deliberately) send printer output meant for one printer to an incompatible
  1782. printer.
  1783.  
  1784.  
  1785.  
  1786. =head2 text-menu
  1787.  
  1788. The C<gnuplot text> window has the following options on a pop-up menu accessed
  1789. by pressing the right mouse button or selecting C<Options> from the system
  1790. menu:
  1791.  
  1792. C<Copy to Clipboard> copies marked text to the clipboard.
  1793.  
  1794. C<Paste> copies text from the clipboard as if typed by the user.
  1795.  
  1796. C<Choose Font...> selects the font used in the text window.
  1797.  
  1798. C<System Colors> when selected makes the text window honor the System Colors
  1799. set using the Control Panel.  When unselected, text is black or blue on a
  1800. white background.
  1801.  
  1802. C<Update wgnuplot.ini> saves the current text window location, text window
  1803. size, text window font and text window font size to the initialisation file
  1804. C<WGNUPLOT.INI>.
  1805.  
  1806. C<MENU BAR>
  1807.  
  1808. If the menu file C<WGNUPLOT.MNU> is found in the same directory as
  1809. WGNUPLOT.EXE, then the menu specified in C<WGNUPLOT.MNU> will be loaded.
  1810. Menu commands:
  1811.  
  1812. [Menu] starts a new menu with the name on the following line.
  1813.  
  1814. [EndMenu] ends the current menu.
  1815.  
  1816. [--] inserts a horizontal menu separator.
  1817.  
  1818. [|] inserts a vertical menu separator.
  1819.  
  1820. [Button] puts the next macro on a push button instead of a menu.
  1821.  
  1822. Macros take two lines with the macro name (menu entry) on the first line and
  1823. the macro on the second line.  Leading spaces are ignored.  Macro commands:
  1824.  
  1825. [INPUT] --- Input string with prompt terminated by [EOS] or {ENTER}
  1826.  
  1827. [EOS] --- End Of String terminator.  Generates no output.
  1828.  
  1829. [OPEN] --- Get name of file to open from list box, with title of list box
  1830. terminated by [EOS], followed by default filename terminated by [EOS] or
  1831. {ENTER}.  This uses COMMDLG.DLL from Windows 3.1.
  1832.  
  1833. [SAVE] --- Get name of file to save.  Similar to [OPEN]
  1834.  
  1835. Macro character substitutions:
  1836.  
  1837. {ENTER} --- Carriage Return '\r'
  1838.  
  1839. {TAB} --- Tab '\011'
  1840.  
  1841. {ESC} --- Escape '\033'
  1842.  
  1843. {^A} --- '\001'
  1844.  
  1845. ...
  1846.  
  1847. {^_} --- '\031'
  1848.  
  1849. Macros are limited to 256 characters after expansion.
  1850.  
  1851.  
  1852.  
  1853. =head2 wgnuplot.ini
  1854.  
  1855. Windows C<gnuplot> will read some of its options from the C<[WGNUPLOT]> section
  1856. of C<WGNUPLOT.INI> in the Windows directory.  A sample C<WGNUPLOT.INI> file:
  1857.  
  1858.       [WGNUPLOT]
  1859.       TextOrigin=0 0
  1860.       TextSize=640 150
  1861.       TextFont=Terminal,9
  1862.       GraphOrigin=0 150
  1863.       GraphSize=640 330
  1864.       GraphFont=Arial,10
  1865.       GraphColor=1
  1866.       GraphToTop=1
  1867.       GraphBackground=255 255 255
  1868.       Border=0 0 0 0 0
  1869.       Axis=192 192 192 2 2
  1870.       Line1=0 0 255 0 0
  1871.       Line2=0 255 0 0 1
  1872.       Line3=255 0 0 0 2
  1873.       Line4=255 0 255 0 3
  1874.       Line5=0 0 128 0 4
  1875.  
  1876. The C<GraphFont> entry specifies the font name and size in points.  The five
  1877. numbers given in the C<Border>, C<Axis> and C<Line> entries are the C<Red>
  1878. intensity (0--255), C<Green> intensity, C<Blue> intensity, C<Color Linestyle>
  1879. and C<Mono Linestyle>.  C<Linestyles> are 0=SOLID, 1=DASH, 2=DOT, 3=DASHDOT,
  1880. 4=DASHDOTDOT.  In the sample C<WGNUPLOT.INI> file above, Line 2 is a green
  1881. solid line in color mode, or a dashed line in monochrome mode.  The default
  1882. line width is 1 pixel.  If C<Linestyle> is negative, it specifies the width of
  1883. a SOLID line in pixels.  Line1 and any linestyle used with the C<points> style
  1884. must be SOLID with unit width.
  1885.  
  1886.  
  1887.  
  1888. =head2 windows3.0
  1889.  
  1890. Windows 3.1 is preferred, but WGNUPLOT will run under Windows 3.0 with the
  1891. following restrictions:
  1892. C<1.> COMMDLG.DLL and SHELL.DLL (available with Windows 3.1 or Borland C++
  1893. 3.1) must be in the windows directory.
  1894.  
  1895. C<2.> WGNUPLOT.HLP produced by Borland C++ 3.1 is in Windows 3.1 format.
  1896. You need to use the WINHELP.EXE supplied with Borland C++ 3.1.
  1897.  
  1898. C<3.> It will not run in real mode due to lack of memory.
  1899.  
  1900. C<4.> TrueType fonts are not available in the graph window.
  1901.  
  1902. C<5.> Drag-drop does not work.
  1903.  
  1904.  
  1905.  
  1906. =head1 x11
  1907.  
  1908. C<gnuplot> provides the C<x11> terminal type for use with X servers.  This
  1909. terminal type is set automatically at startup if the C<DISPLAY> environment
  1910. variable is set, if the C<TERM> environment variable is set to C<xterm>, or
  1911. if the C<-display> command line option is used.
  1912.  
  1913. Syntax:
  1914.  
  1915.       set terminal x11 {reset} {<n>}
  1916.  
  1917. Multiple plot windows are supported: C<set terminal x11 <n>> directs the
  1918. output to plot window number n.  If n>0, the terminal number will be
  1919. appended to the window title and the icon will be labeled C<gplt <n>>.
  1920. The active window may distinguished by a change in cursor (from default
  1921. to crosshair.)
  1922.  
  1923. Plot windows remain open even when the C<gnuplot> driver is changed to a
  1924. different device.  A plot window can be closed by pressing the letter q
  1925. while that window has input focus, or by choosing C<close> from a window
  1926. manager menu.  All plot windows can be closed by specifying C<reset>, which
  1927. actually terminates the subprocess which maintains the windows (unless
  1928. C<-persist> was specified).
  1929.  
  1930. Plot windows will automatically be closed at the end of the session
  1931. unless the C<-persist> option was given.
  1932.  
  1933. The size or aspect ratio of a plot may be changed by resizing the C<gnuplot>
  1934. window.
  1935.  
  1936. Linewidths and pointsizes may be changed from within C<gnuplot> with
  1937. C<set linestyle>.
  1938.  
  1939. For terminal type C<x11>, C<gnuplot> accepts (when initialized) the standard
  1940. X Toolkit options and resources such as geometry, font, and name from the
  1941. command line arguments or a configuration file.  See the X(1) man page
  1942. (or its equivalent) for a description of such options.
  1943.  
  1944. A number of other C<gnuplot> options are available for the C<x11> terminal.
  1945. These may be specified either as command-line options when C<gnuplot> is
  1946. invoked or as resources in the configuration file "/.Xdefaults".  They are
  1947. set upon initialization and cannot be altered during a C<gnuplot> session.
  1948.  
  1949.  
  1950.  
  1951. =head2 command-line_options
  1952.  
  1953. In addition to the X Toolkit options, the following options may be specified
  1954. on the command line when starting C<gnuplot> or as resources in your
  1955. ".Xdefaults" file:
  1956.  
  1957.   `-clear`   requests that the window be cleared momentarily before a
  1958.              new plot is displayed.
  1959.   `-gray`    requests grayscale rendering on grayscale or color displays.
  1960.              (Grayscale displays receive monochrome rendering by default.)
  1961.   `-mono`    forces monochrome rendering on color displays.
  1962.   `-persist` plot windows survive after main gnuplot program exits
  1963.   `-raise`   raise plot window after each plot
  1964.   `-noraise` do not raise plot window after each plot
  1965.   `-tvtwm`   requests that geometry specifications for position of the
  1966.              window be made relative to the currently displayed portion
  1967.              of the virtual root.
  1968.  
  1969. The options are shown above in their command-line syntax.  When entered as
  1970. resources in ".Xdefaults", they require a different syntax.
  1971.  
  1972. Example:
  1973.  
  1974.       gnuplot*gray: on
  1975.  
  1976. C<gnuplot> also provides a command line option (C<-pointsize <v>>) and a
  1977. resource, C<gnuplot*pointsize: <v>>, to control the size of points plotted
  1978. with the C<points> plotting style.  The value C<v> is a real number (greater
  1979. than 0 and less than or equal to ten) used as a scaling factor for point
  1980. sizes.  For example, C<-pointsize 2> uses points twice the default size, and
  1981. C<-pointsize 0.5> uses points half the normal size.
  1982.  
  1983.  
  1984.  
  1985. =head2 monochome_options
  1986.  
  1987. For monochrome displays, C<gnuplot> does not honor foreground or background
  1988. colors.  The default is black-on-white.  C<-rv> or C<gnuplot*reverseVideo: on>
  1989. requests white-on-black.
  1990.  
  1991.  
  1992.  
  1993.  
  1994. =head2 color_resources
  1995.  
  1996. For color displays, C<gnuplot> honors the following resources (shown here
  1997. with their default values) or the greyscale resources.  The values may be
  1998. color names as listed in the X11 rgb.txt file on your system, hexadecimal
  1999. RGB color specifications (see X11 documentation), or a color name followed
  2000. by a comma and an C<intensity> value from 0 to 1.  For example, C<blue, 0.5>
  2001. means a half intensity blue.
  2002.  
  2003.   gnuplot*background:  white
  2004.   gnuplot*textColor:   black
  2005.   gnuplot*borderColor: black
  2006.   gnuplot*axisColor:   black
  2007.   gnuplot*line1Color:  red
  2008.   gnuplot*line2Color:  green
  2009.   gnuplot*line3Color:  blue
  2010.   gnuplot*line4Color:  magenta
  2011.   gnuplot*line5Color:  cyan
  2012.   gnuplot*line6Color:  sienna
  2013.   gnuplot*line7Color:  orange
  2014.   gnuplot*line8Color:  coral
  2015.  
  2016.  
  2017. The command-line syntax for these is, for example,
  2018.  
  2019. Example:
  2020.  
  2021.       gnuplot -background coral
  2022.  
  2023.  
  2024.  
  2025.  
  2026. =head2 grayscale_resources
  2027.  
  2028. When C<-gray> is selected, C<gnuplot> honors the following resources for
  2029. grayscale or color displays (shown here with their default values).  Note
  2030. that the default background is black.
  2031.  
  2032.   gnuplot*background: black
  2033.   gnuplot*textGray:   white
  2034.   gnuplot*borderGray: gray50
  2035.   gnuplot*axisGray:   gray50
  2036.   gnuplot*line1Gray:  gray100
  2037.   gnuplot*line2Gray:  gray60
  2038.   gnuplot*line3Gray:  gray80
  2039.   gnuplot*line4Gray:  gray40
  2040.   gnuplot*line5Gray:  gray90
  2041.   gnuplot*line6Gray:  gray50
  2042.   gnuplot*line7Gray:  gray70
  2043.   gnuplot*line8Gray:  gray30
  2044.  
  2045.  
  2046.  
  2047.  
  2048.  
  2049. =head2 line_resources
  2050.  
  2051. C<gnuplot> honors the following resources for setting the width (in pixels) of
  2052. plot lines (shown here with their default values.)  0 or 1 means a minimal
  2053. width line of 1 pixel width.  A value of 2 or 3 may improve the appearance of
  2054. some plots.
  2055.  
  2056.   gnuplot*borderWidth: 2
  2057.   gnuplot*axisWidth:   0
  2058.   gnuplot*line1Width:  0
  2059.   gnuplot*line2Width:  0
  2060.   gnuplot*line3Width:  0
  2061.   gnuplot*line4Width:  0
  2062.   gnuplot*line5Width:  0
  2063.   gnuplot*line6Width:  0
  2064.   gnuplot*line7Width:  0
  2065.   gnuplot*line8Width:  0
  2066.  
  2067.  
  2068. C<gnuplot> honors the following resources for setting the dash style used for
  2069. plotting lines.  0 means a solid line.  A two-digit number C<jk> (C<j> and C<k>
  2070. are >= 1  and <= 9) means a dashed line with a repeated pattern of C<j> pixels
  2071. on followed by C<k> pixels off.  For example, '16' is a "dotted" line with one
  2072. pixel on followed by six pixels off.  More elaborate on/off patterns can be
  2073. specified with a four-digit value.  For example, '4441' is four on, four off,
  2074. four on, one off.  The default values shown below are for monochrome displays
  2075. or monochrome rendering on color or grayscale displays.  For color displays,
  2076. the default for each is 0 (solid line) except for C<axisDashes> which defaults
  2077. to a '16' dotted line.
  2078.  
  2079.   gnuplot*borderDashes:   0
  2080.   gnuplot*axisDashes:    16
  2081.   gnuplot*line1Dashes:    0
  2082.   gnuplot*line2Dashes:   42
  2083.   gnuplot*line3Dashes:   13
  2084.   gnuplot*line4Dashes:   44
  2085.   gnuplot*line5Dashes:   15
  2086.   gnuplot*line6Dashes: 4441
  2087.   gnuplot*line7Dashes:   42
  2088.   gnuplot*line8Dashes:   13
  2089.  
  2090.  
  2091.  
  2092.  
  2093. =head1 xlib
  2094.  
  2095. The C<xlib> terminal driver supports the X11 Windows System.  It generates
  2096. gnulib_x11 commands.  C<set term x11> behaves similarly to C<set terminal xlib;
  2097. set output "|gnuplot_x11">.  C<xlib> has no options, but see C<x11>.
  2098.  
  2099.  
  2100.  
  2101. =head1 AUTHOR
  2102.  
  2103. Autogenerated from F<*.trm> files in C<gnuplot> terminals subdirectory.
  2104.  
  2105. =head1 SEE ALSO
  2106.  
  2107. L<Term::Gnuplot>.
  2108.  
  2109.