home *** CD-ROM | disk | FTP | other *** search
/ Math Solutions 1995 October / Math_Solutions_CD-ROM_Walnut_Creek_October_1995.iso / pc / mac / docs_1 / graph.doc < prev    next >
Encoding:
Text File  |  1995-07-17  |  54.8 KB  |  1,165 lines

  1.  
  2.  
  3.  
  4.                           Yorick Documentation
  5.                 for functions, variables, and structures
  6.                          defined in file graph.i
  7.                    Printed: Sat Mar 18 22:51:38 1995
  8.  
  9.    Contents:
  10.  
  11.               animate                                 mphase
  12.               arrowl                                  msize
  13.               arroww                                  mspace
  14.               aspect                                  opaque
  15.               bytscl                                  palette
  16.               closed                                  path
  17.               color                                   pause
  18.               current_window                          plc
  19.               ecolor                                  pldefault
  20.               edges                                   pldj
  21.               eps                                     pledit
  22.               ewidth                                  plf
  23.               fma                                     plg
  24.               font                                    pli
  25.               gridxy                                  plm
  26.               hcp                                     plmesh
  27.               hcp_file                                plq
  28.               hcp_finish                              plsys
  29.               hcp_out                                 plt
  30.               hcpoff                                  pltitle
  31.               hcpon                                   plv
  32.               height                                  range
  33.               hide                                    rays
  34.               histeq_scale                            redraw
  35.               hollow                                  region
  36.               justify                                 rphase
  37.               legend                                  rspace
  38.               limits                                  smooth
  39.               logxy                                   triangle
  40.               marker                                  type
  41.               marks                                   unzoom
  42.               mcolor                                  width
  43.               mesh_loc                                window
  44.               mouse                                   winkill
  45.               moush                                   zoom_factor
  46.  
  47.                                                      FROM animate TO closed
  48.  
  49.                                                                     animate
  50. /* DOCUMENT animate
  51.          or animate, 0/1
  52.      without any arguments, toggles animation mode; with argument 0,
  53.      turns off animation mode, with argument 1 turns on animation mode.
  54.      In animation mode, the X window associated with a graphics window
  55.      is actually an offscreen pixmap which is bit-blitted onscreen
  56.      when an fma command is issued.  This is confusing unless you are
  57.      actually trying to make a movie, but results in smoother animation
  58.      if you are.  Generally, you should turn animation on, run your movie,
  59.      then turn it off.
  60.    SEE ALSO: window, fma, plg
  61.  */
  62.  
  63.                                                                      arrowl
  64.     /* SEE rspace     */
  65.  
  66.                                                                      arroww
  67.     /* SEE rspace     */
  68.  
  69.                                                                      aspect
  70.     /* SEE hollow     */
  71.  
  72.                                                                      bytscl
  73. /* DOCUMENT bytscl(z)
  74.          or bytscl(z, top=max_byte, cmin=lower_cutoff, cmax=upper_cutoff)
  75.      returns a char array of the same shape as Z, with values linearly
  76.      scaled to the range 0 to one less than the current palette size.
  77.      If MAX_BYTE is specified, the scaled values will run from 0 to
  78.      MAX_BYTE instead.
  79.      If LOWER_CUTOFF and/or UPPER_CUTOFF are specified, Z values outside
  80.      this range are mapped to the cutoff value; otherwise the linear
  81.      scaling maps the extreme values of Z to 0 and MAX_BYTE.
  82.    SEE ALSO: plf, pli, histeq_scale
  83.  */
  84.  
  85.                                                                      closed
  86. /* DOCUMENT closed=   plotting keyword
  87.          or smooth=   plotting keyword
  88.      selects closed curves (closed=1) or default open curves (closed=0),
  89.      or Bezier smoothing (smooth>0) or default piecewise linear curves
  90.      (smooth=0).  The value of smooth can be 1, 2, 3, or 4 to get
  91.      successively more smoothing.  Only the Bezier control points are
  92.      plotted to an X window; the actual Bezier curves will show up in
  93.      PostScript hardcopy files.  Closed curves join correctly, which
  94.      becomes more noticeable for wide lines; non-solid closed curves
  95.      may look bad because the dashing pattern may be incommensurate
  96.      with the length of the curve.
  97.    PLOTTING COMMANDS: plg, plc (smooth only)
  98.    SEE ALSO: type, width, color, marks, marker, rays
  99.  */
  100.  
  101.                                                        FROM color TO ewidth
  102.  
  103.                                                                       color
  104. /* DOCUMENT color=   plotting keyword
  105.      selects line or text color.  Valid values are the strings "bg", "fg",
  106.      "black", "white", "red", "green", "blue", "cyan", "magenta", "yellow",
  107.      or a 0-origin index into the current palette.  The default is "fg".
  108.      Negative numbers may be used instead of the strings: -1 is bg
  109.      (background), -2 is fg (foreground), -3 is black, -4 is white,
  110.      -5 is red, -6 is green, -7 is blue, -8 is cyan, -9 is magenta, and
  111.      -10 is yellow.
  112.    PLOTTING COMMANDS: plg, plm, plc, pldj, plt
  113.    SEE ALSO: type, width, marks, marker, mcolor, rays, closed, smooth
  114.  */
  115.  
  116.                                                              current_window
  117. /* DOCUMENT n= current_window()
  118.      returns the number of the current graphics window, or -1 if none.
  119.  */
  120.  
  121.                                                                      ecolor
  122.     /* SEE edges     */
  123.  
  124.                                                                       edges
  125. /* DOCUMENT edges=   plotting keyword
  126.          or ecolor=   plotting keyword
  127.          or ewidth=   plotting keyword
  128.      set the appearance of the zone edges in a filled mesh plot (plf).
  129.      By default, edges=0, and the zone edges are not plotted.  If
  130.      edges=1, a solid line is drawn around each zone after it is
  131.      filled; the edge color and width are given by ecolor and ewidth,
  132.      which are "fg" and 1.0 by default.
  133.    PLOTTING COMMANDS: plf
  134.    SEE ALSO: color, width
  135.  */
  136.  
  137.                                                                         eps
  138. /* DOCUMENT eps, name
  139.      writes the picture in the current graphics window to the Encapsulated
  140.      PostScript file NAME+".epsi" (i.e.- the suffix .epsi is added to NAME).
  141.      The eps function requires the ps2epsi utility which comes with the
  142.      project GNU Ghostscript program.  Any hardcopy file associated with
  143.      the current window is first closed, but the default hardcopy file is
  144.      unaffected.  As a side effect, legends are turned off and color table
  145.      dumping is turned on for the current window.
  146.      The external variable PS2EPSI_FORMAT contains the format for the
  147.      command to start the ps2epsi program.
  148.    SEE ALSO: window, fma, hcp, hcp_finish, plg
  149.  */
  150.  
  151.                                                                      ewidth
  152.     /* SEE edges     */
  153.  
  154.                                                            FROM fma TO font
  155.  
  156.                                                                         fma
  157. /* DOCUMENT fma
  158.      frame advance the current graphics window.  The current picture
  159.      remains displayed in the associated X window until the next element
  160.      is actually plotted.
  161.    SEE ALSO: window, hcp, animate, plg
  162.  */
  163.  
  164.                                                                        font
  165. /* DOCUMENT font=     plotting keyword
  166.          or height=   plotting keyword
  167.          or opaque=   plotting keyword
  168.          or path=     plotting keyword
  169.          or justify=  plotting keyword
  170.      selects text properties.  The font can be any of the strings
  171.      "courier", "times", "helvetica" (the default), "symbol", or
  172.      "schoolbook".  Append "B" for boldface and "I" for italic, so
  173.      "courierB" is boldface Courier, "timesI" is Times italic, and
  174.      "helveticaBI" is bold italic (oblique) Helvetica.  Your X server
  175.      should have the Adobe fonts (available free from the MIT X
  176.      distribution tapes) for all these fonts, preferably at both 75
  177.      and 100 dpi.  Occasionally, a PostScript printer will not be
  178.      equipped for some fonts; often New Century Schoolbook is missing.
  179.      The font keyword may also be an integer: 0 is Courier, 4 is Times,
  180.      8 is Helvetica, 12 is Symbol, 16 is New Century Schoolbook, and
  181.      you add 1 to get boldface and/or 2 to get italic (or oblique).
  182.  
  183.      The height is the font size in points; 14.0 is the default.
  184.      X windows only has 8, 10, 12, 14, 18, and 24 point fonts, so
  185.      don't stray from these sizes if you want what you see on the
  186.      screen to be a reasonably close match to what will be printed.
  187.  
  188.      By default, opaque=0 and text is transparent.  Set opaque=1 to
  189.      white-out a box before drawing the text.  The default path
  190.      (path=0) is left-to-right text; set path=1 for top-to-bottom text.
  191.  
  192.      The default text justification, justify="NN" is normal is both
  193.      the horizontal and vertical directions.  Other possibilities
  194.      are "L", "C", or "R" for the first character, meaning left,
  195.      center, and right horizontal justification, and "T", "C", "H",
  196.      "A", or "B", meaning top, capline, half, baseline, and bottom
  197.      vertical justification.  The normal justification "NN" is equivalent
  198.      to "LA" if path=0, and to "CT" if path=1.  Common values are
  199.      "LA", "CA", and "RA" for garden variety left, center, and right
  200.      justified text, with the y coordinate at the baseline of the
  201.      last line in the string presented to plt.  The characters labeling
  202.      the right axis of a plot are "RH", so that the y value of the
  203.      text will match the y value of the corresponding tick.  Similarly,
  204.      the characters labeling the bottom axis of a plot are "CT".
  205.      The justification may also be a number, horizontal+vertical,
  206.      where horizontal is 0 for "N", 1 for "L", 2 for "C", or 3 for "R",
  207.      and vertical is 0 for "N", 4 for "T", 8 for "C", 12 for "H",
  208.  
  209.                                                       FROM font TO hcp_file
  210.  
  211.      16 for "A", or 20 for "B".
  212.  
  213.    PLOTTING COMMANDS: plt
  214.    SEE ALSO: color
  215.  */
  216.  
  217.                                                                      gridxy
  218. /* DOCUMENT gridxy, flag
  219.          or gridxy, xflag, yflag
  220.      Turns on or off grid lines according to FLAG.  In the first form, both
  221.      the x and y axes are affected.  In the second form, XFLAG and YFLAG
  222.      may differ to have different grid options for the two axes.  In either
  223.      case, a FLAG value of 0 means no grid lines (the default), a value of
  224.      1 means grid lines at all major ticks (the level of ticks which get
  225.      grid lines can be set in the style sheet), and a FLAG value of 2 means
  226.      that the coordinate origin only will get a grid line.  In styles with
  227.      multiple coordinate systems, only the current coordinate system is
  228.      affected.
  229.      The keywords can be used to affect the style of the grid lines.
  230.    KEYWORDS: color, type, width
  231.    SEE ALSO: window, plsys, limits, range, logxy
  232.  */
  233.  
  234.                                                                         hcp
  235. /* DOCUMENT hcp
  236.             hcpon
  237.         hcpoff
  238.      The hcp command sends the picture displayed in the current graphics
  239.      window to the hardcopy file.  (The name of the default hardcopy file
  240.      can be specified using hcp_file; each individual graphics window may
  241.      have its own hardcopy file as specified by the window command.)
  242.      The hcpon command causes every fma (frame advance) command to do
  243.      and implicit hcp, so that every frame is sent to the hardcopy file.
  244.      The hcpoff command reverts to the default "demand only" mode.
  245.    SEE ALSO: window, fma, plg
  246.  */
  247.  
  248.                                                                    hcp_file
  249. /* DOCUMENT hcp_file, filename, dump=0/1
  250.      sets the default hardcopy file to FILENAME.  If FILENAME ends with
  251.      ".ps", the file will be a PostScript file, otherwise it will be a
  252.      binary CGM file.  By default, the hardcopy file name will be
  253.      "Aa00.cgm", or "Ab00.cgm" if that exists, or "Ac00.cgm" if both
  254.      exist, and so on.  The default hardcopy file gets hardcopy from all
  255.      graphics windows which do not have their own specific hardcopy file
  256.      (see the window command).  If the dump keyword is present and non-zero,
  257.      the current palette will be dumped at the beginning of each frame
  258.      of the default hardcopy file.  With dump=0, the default behavior of
  259.      converting all colors to a gray scale is restored.
  260.    SEE ALSO: window, fma, hcp, plg
  261.  */
  262.  
  263.                                             FROM hcp_finish TO histeq_scale
  264.  
  265.                                                                  hcp_finish
  266. /* DOCUMENT filename= hcp_finish()
  267.          or filename= hcp_finish(n)
  268.      closes the current hardcopy file and returns the filename.
  269.      If N is specified, closes the hcp file associated with window N
  270.      and returns its name; use hcp_finish(-1) to close the default
  271.      hardcopy file.
  272.    SEE ALSO: window, fma, hcp, hcp_out, plg
  273.  */
  274.  
  275.                                                                     hcp_out
  276. /* DOCUMENT hcp_out
  277.          or hcp_out, n
  278.      finishes the current hardcopy file and sends it to the printer.
  279.      If N is specified, prints the hcp file associated with window N;
  280.      use hcp_out,-1 to print the default hardcopy file.
  281.      Unless the KEEP keyword is supplied and non-zero, the file will
  282.      be deleted after it is processed by gist and sent to lpr.
  283.    SEE ALSO: window, fma, hcp, hcp_finish, plg
  284.  */
  285.  
  286.                                                                      hcpoff
  287.     /* SEE hcp     */
  288.  
  289.                                                                       hcpon
  290.     /* SEE hcp     */
  291.  
  292.                                                                      height
  293.     /* SEE font     */
  294.  
  295.                                                                        hide
  296. /* DOCUMENT hide=   plotting keyword
  297.      sets the visibility of a plotted element.  The default is hide=0,
  298.      which means that the element will be visible.  Use hide=1 to remove
  299.      the element from the plot (but not from the display list).
  300.    PLOTTING COMMANDS: plg, plm, plc, plv, plf, pli, plt, pldj
  301.    SEE ALSO: legend
  302.  */
  303.  
  304.                                                                histeq_scale
  305. /* DOCUMENT histeq_scale(z, top=top_value, cmin=cmin, cmax=cmax)
  306.      returns a byte-scaled version of the array Z having the property
  307.      that each byte occurs with equal frequency (Z is histogram
  308.      equalized).  The result bytes range from 0 to TOP_VALUE, which
  309.      defaults to one less than the size of the current palette (or
  310.      255 if no pli, plf, or palette command has yet been issued).
  311.  
  312.      If non-nil CMIN and/or CMAX is supplied, values of Z beyond these
  313.      cutoffs are not included in the frequency counts.
  314.  
  315.    SEE ALSO: bytscl, plf, pli
  316.  */
  317.  
  318.                                                       FROM hollow TO limits
  319.  
  320.                                                                      hollow
  321. /* DOCUMENT hollow=   plotting keyword
  322.          or aspect=   plotting keyword
  323.      set the appearance of the "darts" of a vector field plot.  The
  324.      default darts, hollow=0, are filled; use hollow=1 to get just the
  325.      dart outlines.  The default is aspect=0.125; aspect is the ratio
  326.      of the half-width to the length of the darts.  Use the color
  327.      keyword to control the color of the darts.
  328.    PLOTTING COMMANDS: plv
  329.    SEE ALSO: color
  330.  */
  331.  
  332.                                                                     justify
  333.     /* SEE font     */
  334.  
  335.                                                                      legend
  336. /* DOCUMENT legend=   plotting keyword
  337.      sets the legend for a plot.  The default legend is a concatentation
  338.      of the strings used in the original plotting command (plg, plm, etc.),
  339.      except for the plt command, which has no default legend.
  340.      Legends are never plotted to the X window; use the plq command to
  341.      see them interactively.  Legends will appear in hardcopy output
  342.      unless they have been explicitly turned off.
  343.    PLOTTING COMMANDS: plg, plm, plc, plv, plf, pli, plt, pldj
  344.    SEE ALSO: hide
  345.  */
  346.  
  347.                                                                      limits
  348. /* DOCUMENT limits
  349.          or limits, xmin, xmax, ymin, ymax,
  350.                 square=0/1, nice=0/1, restrict=0/1
  351.      or old_limits= limits()
  352.      or limits, old_limits
  353.  
  354.      In the first form, restores all four plot limits to extreme values.
  355.  
  356.      In the second form, sets the plot limits in the current coordinate
  357.      system to XMIN, XMAX, YMIN, YMAX, which may be nil or omitted to
  358.      leave the corresponding limit unchanged, a number to fix the
  359.      corresponding limit to a specified value, or the string "e" to
  360.      make the corresponding limit take on the extreme value of the
  361.      currently displayed data.
  362.  
  363.      If present, the square keyword determines whether limits marked
  364.      as extreme values will be adjusted to force the x and y scales
  365.      to be equal (square=1) or not (square=0, the default).
  366.      If present, the nice keyword determines whether limits will be
  367.      adjusted to nice values (nice=1) or not (nice=0, the default).
  368.      There is a subtlety in the meaning of "extreme value" when one
  369.      or both of the limits on the OPPOSITE axis have fixed values --
  370.      does the "extreme value" of the data include points which
  371.      will not be plotted because their other coordinate lies outside
  372.      the fixed limit on the opposite axis (restrict=0, the default),
  373.      or not (restrict=1)?
  374.  
  375.  
  376.                                                       FROM limits TO marker
  377.  
  378.      If called as a function, limits returns an array of 5 doubles;
  379.      OLD_LIMITS(1:4) are the current xmin, xmax, ymin, and ymax,
  380.      and int(OLD_LIMITS(5)) is a set of flags indicating extreme
  381.      values and the square, nice, restrict, and log flags.
  382.  
  383.      In the fourth form, OLD_LIMITS is as returned by a previous
  384.      limits call, to restore the limits to a previous state.
  385.  
  386.      In an X window, the limits may also be adjusted interactively
  387.      with the mouse.  Drag left to zoom in and pan (click left to zoom
  388.      in on a point without moving it), drag middle to pan, and click
  389.      (and drag) right to zoom out (and pan).  If you click just above
  390.      or below the plot, these operations will be restricted to the
  391.      x-axis; if you click just to the left or right, the operations
  392.      are restricted to the y-axis.  A shift-left click, drag, and
  393.      release will expand the box you dragged over to fill the plot
  394.      (other popular software zooms with this paradigm).  If the
  395.      rubber band box is not visible with shift-left zooming, try
  396.      shift-middle or shift-right for alternate XOR masks.  Such
  397.      mouse-set limits are equivalent to a limits command specifying
  398.      all four limits EXCEPT that the unzoom command can revert to
  399.      the limits before a series of mouse zooms and pans.
  400.  
  401.      The limits you set using the limits or range functions carry over
  402.      to the next plot -- that is, an fma operation does NOT reset the
  403.      limits to extreme values.
  404.  
  405.    SEE ALSO: plsys, range, logxy, zoom_factor, unzoom, plg
  406.  */
  407.  
  408.                                                                       logxy
  409. /* DOCUMENT logxy, xflag, yflag
  410.      sets the linear/log axis scaling flags for the current coordinate
  411.      system.  XFLAG and YFLAG may be nil or omitted to leave the
  412.      corresponding axis scaling unchanged, 0 to select linear scaling,
  413.      or 1 to select log scaling.
  414.    SEE ALSO: plsys, limits, range, plg, gridxy
  415.  */
  416.  
  417.                                                                      marker
  418. /* DOCUMENT marker=   plotting keyword
  419.      selects the character used for occasional markers along a polyline,
  420.      or for the polymarker if type is "none".  The special values
  421.      '\1', '\2', '\3', '\4', and '\5' stand for point, plus, asterisk,
  422.      circle, and cross, which are prettier than text characters on output
  423.      to some devices.  The default marker is the next available capital
  424.      letter, 'A', 'B', ..., 'Z'.
  425.    PLOTTING COMMANDS: plg, plc
  426.    SEE ALSO: type, width, color, marks, rays, mspace, mphase, msize, mcolor
  427.  */
  428.  
  429.                                                         FROM marks TO mouse
  430.  
  431.                                                                       marks
  432. /* DOCUMENT marks=   plotting keyword
  433.      selects unadorned lines (marks=0), or lines with occasional markers
  434.      (marks=1).  Ignored if type is "none" (indicating polymarkers instead
  435.      of occasional markers).  The spacing and phase of the occasional
  436.      markers can be altered using the mspace and mphase keywords; the
  437.      character used to make the mark can be altered using the marker
  438.      keyword.
  439.    PLOTTING COMMANDS: plg, plc
  440.    SEE ALSO: type, width, color, marker, rays, mspace, mphase, msize, mcolor
  441.  */
  442.  
  443.                                                                      mcolor
  444.     /* SEE mspace     */
  445.  
  446.                                                                    mesh_loc
  447. /* DOCUMENT mesh_loc(y0, x0)
  448.          or mesh_loc(y0, x0, y, x)
  449.          or mesh_loc(y0, x0, y, x, ireg)
  450.      returns the zone index (=i+imax*(j-1)) of the zone of the mesh
  451.      (X,Y) (with optional region number array IREG) containing the
  452.      point (X0,Y0).  If (X0,Y0) lies outside the mesh, returns 0.
  453.      Thus, eg- ireg(mesh_loc(x0, y0, y, x, ireg)) is the region number of
  454.      the region containing (x0,y0).  If no mesh specified, uses default.
  455.      X0 and Y0 may be arrays as long as they are conformable.
  456.    SEE ALSO: plmesh, moush, mouse
  457.  */
  458.  
  459.                                                                       mouse
  460. /* DOCUMENT result= mouse(system, style, prompt)
  461.      displays a PROMPT, then waits for a mouse button to be pressed,
  462.      then released.  Returns array of eleven doubles:
  463.        result= [x_pressed, y_pressed, x_released, y_released,
  464.                 xndc_pressed, yndc_pressed, xndc_released, yndc_released,
  465.             system, button, modifiers]
  466.  
  467.      If SYSTEM>=0, the first four coordinate values will be relative to
  468.      that coordinate system.
  469.      For SYSTEM<0, the first four coordinate values will be relative to
  470.      the coordinate system under the mouse when the button was pressed.
  471.      The second four coordinates are always normalized device coordinates,
  472.      which start at (0,0) in the lower left corner of the 8.5x11 sheet of
  473.      paper the picture will be printed on, with 0.0013 NDC unit being
  474.      1/72.27 inch (1.0 point).  Look in the style sheet for the location
  475.      of the viewport in NDC coordinates (see the style keyword).
  476.  
  477.      If STYLE is 0, there will be no visual cues that the mouse
  478.      command has been called; this is intended for a simple click.
  479.      If STYLE is 1, a rubber band box will be drawn; if STYLE is 2,
  480.      a rubber band line will be drawn.  These disappear when the
  481.      button is released.
  482.  
  483.      Clicking a second button before releasing the first cancels the
  484.      mouse function, which will then return nil.
  485.      Ordinary text input also cancels the mouse function, which again
  486.  
  487.                                                        FROM mouse TO opaque
  488.  
  489.      returns nil.
  490.  
  491.      The left button reverses forground for background (by XOR) in
  492.      order to draw the rubber band (if any).  The middle and right
  493.      buttons use other masks, in case the rubber band is not visible
  494.      with the left button.
  495.  
  496.      long(result(9)) is the coordinate system in which the first four
  497.      coordinates are to be interpreted.
  498.      long(result(10)) is the button which was pressed, 1 for left, 2
  499.      for middle, and 3 for right (4 and 5 are also possible).
  500.      long(result(11)) is a mask representing the modifier keys which
  501.      were pressed during the operation: 1 for shift, 2 for shift lock,
  502.      4 for control, 8 for mod1 (alt or meta), 16 for mod2, 32 for mod3,
  503.      64 for mod4, and 128 for mod5.
  504.  
  505.    SEE ALSO: moush
  506.  */
  507.  
  508.                                                                       moush
  509. /* DOCUMENT moush()
  510.          or moush(y, x, ireg)
  511.      returns the 1-origin zone index for the point clicked in
  512.      for the default mesh, or for the mesh (X,Y) (region array IREG).
  513.  */
  514.  
  515.                                                                      mphase
  516.     /* SEE mspace     */
  517.  
  518.                                                                       msize
  519.     /* SEE mspace     */
  520.  
  521.                                                                      mspace
  522. /* DOCUMENT mspace=   plotting keyword
  523.          or mphase=   plotting keyword
  524.          or msize=    plotting keyword
  525.          or mcolor=   plotting keyword
  526.      selects the spacing, phase, and size of occasional markers placed
  527.      along polylines.  The msize also selects polymarker size if type
  528.      is "none".  The spacing and phase are in NDC units (0.0013 NDC
  529.      equals 1.0 point); the default mspace is 0.16, and the default
  530.      mphase is 0.14, but mphase is automatically incremented for
  531.      successive curves on a single plot.  The msize is in relative
  532.      units, with the default msize of 1.0 representing 10 points.
  533.      The mcolor keyword is the same as the color keyword, but controls
  534.      the marker color instead of the line color.  Setting the color
  535.      automatically sets the mcolor to the same value, so you only
  536.      need to use mcolor if you want the markers for a curve to be a
  537.      different color than the curve itself.
  538.    PLOTTING COMMANDS: plg, plc
  539.    SEE ALSO: type, width, color, marks, marker, rays
  540.  */
  541.  
  542.                                                                      opaque
  543.     /* SEE font     */
  544.  
  545.                                                         FROM palette TO plc
  546.  
  547.                                                                     palette
  548. /* DOCUMENT palette, filename
  549.          or palette, source_window_number
  550.          or palette, red, green, blue, ntsc=1/0
  551.          or palette, red, green, blue, gray
  552.      or palette, red, green, blue, query=1
  553.      or palette, red, green, blue, gray, query=1
  554.      sets (or retrieves with query=1) the palette for the current
  555.      graphics window.  The FILENAME is the name of a Gist palette file;
  556.      the standard palettes are "earth.gp", "stern.gp", "rainbow.gp",
  557.      "heat.gp", "gray.gp", and "yarg.gp".  Use the maxcolors keyword
  558.      in the pldefault command to put an upper limit on the number of
  559.      colors which will be read from the palette in FILENAME.
  560.  
  561.      In the second form, the palette for the current window is copied
  562.      from the SOURCE_WINDOW_NUMBER.  If the X colormap for the window is
  563.      private, there will still be two separate X colormaps for the two
  564.      windows, but they will have the same color values.
  565.  
  566.      In the third form, RED, GREEN, and BLUE are 1-D arrays of the same
  567.      length specifying the palette you wish to install; the values
  568.      should vary between 0 and 255, and your palette should have no
  569.      more than 240 colors.  If ntsc=0, monochrome devices (such as most
  570.      laser printers) will use the average brightness to translate your
  571.      colors into gray; otherwise, the NTSC (television) averaging will
  572.      be used (.30*RED+.59*GREEN+.11*BLUE).  Alternatively, you can specify
  573.      GRAY explicitly.
  574.  
  575.      Ordinarily, the palette is not dumped to a hardcopy file
  576.      (color hardcopy is still rare and expensive), but you can
  577.      force the palette to dump using the window or hcp_file commands.
  578.    SEE ALSO: window, fma, hcp, pldefault, plg
  579.  */
  580.  
  581.                                                                        path
  582.     /* SEE font     */
  583.  
  584.                                                                       pause
  585. /* DOCUMENT pause, milliseconds
  586.      pause for the specified number of milliseconds of wall clock
  587.      time, or until input arrives from the keyboard.
  588.      This is intended for use in creating animated sequences.
  589.  */
  590.  
  591.                                                                         plc
  592. /* DOCUMENT plc, z, y, x, levs=z_values
  593.          or plc, z, y, x, ireg, levs=z_values
  594.      or plc, z, levs=z_values
  595.      plots a contours of Z on the mesh Y versus X.  Y, X, and IREG are
  596.      as for plm.  The Z array must have the same shape as Y and X.
  597.      The function being contoured takes the value Z at each point
  598.      (X,Y) -- that is, the Z array is presumed to be point-centered.
  599.      The Y, X, and IREG arguments may all be omitted to default to the
  600.      mesh set by the most recent plmesh call.
  601.      The LEVS keyword is a list of the values of Z at which you want
  602.  
  603.                                                       FROM plc TO pldefault
  604.  
  605.      contour curves.  The default is eight contours spanning the
  606.      range of Z.
  607.      The following keywords are legal (each has a separate help entry):
  608.    KEYWORDS: legend, hide
  609.          type, width, color, smooth
  610.              marks, marker, mspace, mphase
  611.          smooth, triangle, region
  612.    SEE ALSO: plg, plm, plc, plv, plf, pli, plt, pldj, plmesh
  613.              limits, logxy, range, fma, hcp
  614.  */
  615.  
  616.                                                                   pldefault
  617. /* DOCUMENT pldefault, key1=value1, key2=value2, ...
  618.      sets default values for the various properties of graphical elements.
  619.  
  620.      The keywords can be most of the keywords that can be passed to the
  621.      plotting commands:
  622.        plg:  color, type, width,
  623.              marks, mcolor, msize, mspace, mphase,
  624.          rays, rspace, rphase, arrowl, arroww
  625.        pldj: color, type, width
  626.        plt:  color, font, height, path, justify, opaque
  627.        plm:  color, type, width
  628.        plv:  color, hollow, width, aspect
  629.        plc:  color, type, width,
  630.              marks, mcolor, marker, msize, mspace, mphase
  631.        plf:  edges, ecolor, ewidth
  632.  
  633.      The initial default values are:
  634.        color="fg", type="solid", width=1.0 (1/2 point),
  635.        marks=1, mcolor="fg", msize=1.0 (10 points),
  636.           mspace=0.16, mphase=0.14,
  637.        rays=0, arrowl=1.0 (10 points), arroww=1.0 (4 points),
  638.           rspace=0.13, rphase=0.11375,
  639.        font="helvetica", height=12.0, path=0, justify="NN", opaque=0,
  640.        hollow= 0, aspect=0.125,
  641.        edges=0, ecolor="fg", ewidth=1.0 (1/2 point)
  642.  
  643.      Additional default keywords are:
  644.        dpi, style, legends  (see window command)
  645.        palette              (to set default filename as in palette command)
  646.        maxcolors            (default 200)
  647.  
  648.    SEE ALSO: window, plsys, plq, pledit, plg
  649.  */
  650.  
  651.                                                            FROM pldj TO plf
  652.  
  653.                                                                        pldj
  654. /* DOCUMENT pldj, x0, y0, x1, y1
  655.      plots disjoint lines from (X0,Y0) to (X1,Y1).  X0, Y0, X1, and Y1
  656.      may have any dimensionality, but all must have the same number of
  657.      elements.
  658.      The following keywords are legal (each has a separate help entry):
  659.    KEYWORDS: legend, hide
  660.          type, width, color
  661.    SEE ALSO: plg, plm, plc, plv, plf, pli, plt, pldj
  662.              limits, logxy, range, fma, hcp
  663.  */
  664.  
  665.                                                                      pledit
  666. /* DOCUMENT pledit, key1=value1, key2=value2, ...
  667.          or pledit, n_element, key1=value1, key2=value2, ...
  668.          or pledit, n_element, n_contour, key1=value1, key2=value2, ...
  669.      changes some property of element number N_ELEMENT (and contour
  670.      number N_CONTOUR of that element).  If N_ELEMENT and N_CONTOUR are
  671.      omitted, the default is the most recently added element, or the
  672.      element specified in the most recent plq query command.
  673.  
  674.      The keywords can be any of the keywords that apply to the current
  675.      element.  These are:
  676.        plg:  color, type, width,
  677.              marks, mcolor, marker, msize, mspace, mphase,
  678.          rays, rspace, rphase, arrowl, arroww,
  679.          closed, smooth
  680.        pldj: color, type, width
  681.        plt:  color, font, height, path, justify, opaque
  682.        plm:  region, boundary, inhibit, color, type, width
  683.        plf:  region
  684.        plv:  region, color, hollow, width, aspect, scale
  685.        plc:  region, color, type, width,
  686.              marks, mcolor, marker, msize, mspace, mphase
  687.          smooth, levs
  688.      (For contours, if you aren't talking about a particular N_CONTOUR,
  689.       any changes will affect ALL the contours.)
  690.  
  691.      A plv (vector field) element can also take the scalem
  692.      keyword to multiply all vector lengths by a specified factor.
  693.  
  694.      A plt (text) element can also take the dx and/or dy
  695.      keywords to adjust the text position by (dx,dy).
  696.  
  697.    SEE ALSO: window, plsys, plq, pldefault, plg
  698.  */
  699.  
  700.                                                                         plf
  701. /* DOCUMENT plf, z, y, x
  702.          or plf, z, y, x, ireg
  703.      or plf, z
  704.      plots a filled mesh Y versus X.  Y, X, and IREG are as for plm.
  705.      The Z array must have the same shape as Y and X, or one smaller
  706.      in both dimensions.  If Z is of type char, it is used "as is",
  707.      otherwise it is linearly scaled to fill the current palette, as
  708.  
  709.                                                             FROM plf TO pli
  710.  
  711.      with the bytscl function.
  712.      (See the bytscl function for explanation of top, cmin, cmax.)
  713.      The mesh is drawn with each zone in the color derived from the Z
  714.      function and the current palette; thus Z is interpreted as a
  715.      zone-centered array.
  716.      The Y, X, and IREG arguments may all be omitted to default to the
  717.      mesh set by the most recent plmesh call.
  718.      A solid edge can optionally be drawn around each zone by setting
  719.      the EDGES keyword non-zero.  ECOLOR and EWIDTH determine the edge
  720.      color and width.  The mesh is drawn zone by zone in order from
  721.      IREG(2+imax) to IREG(jmax*imax) (the latter is IREG(imax,jmax)),
  722.      so you can achieve 3D effects by arranging for this order to
  723.      coincide with back-to-front order.  If Z is nil, the mesh zones
  724.      are filled with the background color, which you can use to
  725.      produce 3D wire frames.
  726.      The following keywords are legal (each has a separate help entry):
  727.    KEYWORDS: legend, hide
  728.          region, top, cmin, cmax, edges, ecolor, ewidth
  729.    SEE ALSO: plg, plm, plc, plv, plf, pli, plt, pldj, plmesh,
  730.              limits, logxy, range, fma, hcp, palette, bytscl, histeq_scale
  731.  */
  732.  
  733.                                                                         plg
  734. /* DOCUMENT plg, y, x
  735.          or plg, y
  736.      plots a graph of Y versus X.  Y and X must be 1-D arrays of equal
  737.      length; if X is omitted, it defaults to [1, 2, ..., numberof(Y)].
  738.      The following keywords are legal (each has a separate help entry):
  739.    KEYWORDS: legend, hide
  740.          type, width, color, closed, smooth
  741.              marks, marker, mspace, mphase
  742.          rays, arrowl, arroww, rspace, rphase
  743.    SEE ALSO: plg, plm, plc, plv, plf, pli, plt, pldj
  744.              limits, logxy, range, fma, hcp
  745.  */
  746.  
  747.                                                                         pli
  748. /* DOCUMENT pli, z
  749.          or pli, z, x1, y1
  750.          or pli, z, x0, y0, x1, y1
  751.      plots the image Z as a cell array -- an array of equal rectangular
  752.      cells colored according to the 2-D array Z.  The first dimension
  753.      of Z is plotted along x, the second dimension is along y.
  754.      If Z is of type char, it is used "as is", otherwise it is linearly
  755.      scaled to fill the current palette, as with the bytscl function.
  756.      (See the bytscl function for explanation of top, cmin, cmax.)
  757.      If X1 and Y1 are given, they represent the coordinates of the
  758.      upper right corner of the image.  If X0, and Y0 are given, they
  759.      represent the coordinates of the lower left corner, which is at
  760.      (0,0) by default.  If only the Z array is given, each cell will be
  761.      a 1x1 unit square, with the lower left corner of the image at (0,0).
  762.  
  763.                                                          FROM pli TO plmesh
  764.  
  765.      The following keywords are legal (each has a separate help entry):
  766.    KEYWORDS: legend, hide, top, cmin, cmax
  767.    SEE ALSO: plg, plm, plc, plv, plf, pli, plt, pldj,
  768.              limits, logxy, range, fma, hcp, palette, bytscl, histeq_scale
  769.  */
  770.  
  771.                                                                         plm
  772. /* DOCUMENT plm, y, x, boundary=0/1, inhibit=0/1/2
  773.          or plm, y, x, ireg, boundary=0/1, inhibit=0/1/2
  774.      or plm, boundary=0/1, inhibit=0/1/2
  775.      plots a mesh of Y versus X.  Y and X must be 2-D arrays with equal
  776.      dimensions.  If present, IREG must be a 2-D region number array
  777.      for the mesh, with the same dimensions as X and Y.  The values of
  778.      IREG should be positive region numbers, and zero for zones which do
  779.      not exist.  The first row and column of IREG never correspond to any
  780.      zone, and should always be zero.  The default IREG is 1 everywhere
  781.      else.  If present, the BOUNDARY keyword determines whether the
  782.      entire mesh is to be plotted (boundary=0, the default), or just the
  783.      boundary of the selected region (boundary=1).  If present, the
  784.      INHIBIT keyword causes the (X(,j),Y(,j)) lines to not be plotted
  785.      (inhibit=1), or the (X(i,),Y(i,)) lines to not be plotted (inhibit=2).
  786.      By default (inhibit=0), mesh lines in both logical directions are
  787.      plotted.
  788.      The Y, X, and IREG arguments may all be omitted to default to the
  789.      mesh set by the most recent plmesh call.
  790.      The following keywords are legal (each has a separate help entry):
  791.    KEYWORDS: legend, hide
  792.          type, width, color
  793.          region
  794.    SEE ALSO: plg, plm, plc, plv, plf, pli, plt, pldj, plmesh
  795.              limits, logxy, range, fma, hcp
  796.  */
  797.  
  798.                                                                      plmesh
  799. /* DOCUMENT plmesh, y, x, ireg, triangle=tri_array
  800.          or plmesh
  801.      sets the default mesh for subsequent plm, plc, plv, and plf calls.
  802.      In the second form, deletes the default mesh (until you do this,
  803.      or switch to a new default mesh, the default mesh arrays persist and
  804.      take up space in memory).  The Y, X, and IREG arrays should all be
  805.      the same shape; Y and X will be converted to double, and IREG will
  806.      be converted to int.  If IREG is omitted, it defaults to IREG(1,)=
  807.      IREG(,1)= 0, IREG(2:,2:)=1; that is, region number 1 is the whole
  808.      mesh.  The triangulation array TRI_ARRAY is used by plc; the
  809.      correspondence between TRI_ARRAY indices and zone indices is the
  810.      same as for IREG, and its default value is all zero.
  811.      The IREG or TRI_ARRAY arguments may be supplied without Y and X
  812.      to change the region numbering or triangulation for a given set of
  813.      mesh coordinates.  However, a default Y and X must already have been
  814.      defined if you do this.
  815.      If Y is supplied, X must be supplied, and vice-versa.
  816.    SEE ALSO: plm, plc, plv, plf
  817.  */
  818.  
  819.                                                             FROM plq TO plq
  820.  
  821.                                                                         plq
  822. /* DOCUMENT plq
  823.          or plq, n_element
  824.      or plq, n_element, n_contour
  825.      or legend_list= plq()
  826.      or properties= plq(n_element, n_contour)
  827.      Called as a subroutine, prints the list of legends for the current
  828.      coordinate system (with an "(H)" to mark hidden elements), or prints
  829.      a list of current properties of element N_ELEMENT (such as line type,
  830.      width, font, etc.), or of contour number N_CONTOUR of element number
  831.      N_ELEMENT (which must be contours generated using the plc command).
  832.      Called as a function, returns either the list of legend strings, or a
  833.      list of pointers to the values of the various element properties.
  834.      Elements and contours are both numbered starting with one; hidden
  835.      elements or contours are included in this numbering.
  836.  
  837.      The PROPERTIES list returned by plq is a list of pointers to the
  838.      relevent properties for the specified graphical element.  Each
  839.      possible property has a particular index in the returned PROPERTIES
  840.      list as follows:
  841.      *PROPERTIES(1)   int([element type (0 for none, 1 for plg, 2 for pldj,
  842.                                          3 for plt, 4 for plm, 5 for plf,
  843.                      6 for plv, 7 for plc, 8 for pli),
  844.                            hide flag])
  845.      *PROPERTIES(2)   string(legend)
  846.      *PROPERTIES(3)   int array, depends on type (names match keywords):
  847.        1 plg:  [color, type, marks, mcolor, marker, rays, closed, smooth]
  848.        2 pldj: [color, type]
  849.        3 plt:  [color, font, path, justify, opaque]
  850.        4 plm:  [color, type, region, boundary, inhibit]
  851.        5 plf:  [region, edges, ecolor]
  852.        6 plv:  [region, color, hollow]
  853.        7 plc:  [region, color, type, marks, mcolor, marker, smooth]
  854.        8 pli:  nil
  855.      *PROPERTIES(4)   double array, depends on type (names match keywords):
  856.        1 plg:  [width, msize, mspace, mphase, rspace, rphase, arrowl, arroww]
  857.        2 pldj: [width]
  858.        3 plt:  [height, x, y]
  859.        4 plm:  [width]
  860.        5 plf:  [ewidth]
  861.        6 plv:  [width, aspect, scale]
  862.        7 plc:  [width, msize, mspace, mphase]
  863.        8 pli:  [x0, x1, y0, y1]
  864.      *PROPERTIES(5)   long array, depends on type (names match arguments):
  865.        1 plg:  [npoints, &x, &y]
  866.        2 pldj: [npoints, &x0, &y0, &x1, &y1]
  867.        3 plt:  [nchars, &text]
  868.        4 plm:  [imax, jmax, &x, &y, &ireg]
  869.        5 plf:  [imax, jmax, &x, &y, &ireg, &colors]
  870.        6 plv:  [imax, jmax, &x, &y, &ireg, &u, &v]
  871.        7 plc:  [imax, jmax, &x, &y, &ireg, &z, &triangle, nlevs, &levs]
  872.        8 pli:  [imax, jmax, &colors]
  873.      You can use the reshape function to peek at the data at the addresses
  874.      returned in PROPERTIES(5) as longs.  The appropriate data types are:
  875.      char for text, int for ireg, short for triangle, char for colors, and
  876.  
  877.                                                             FROM plq TO plt
  878.  
  879.      double for everything else.  In a plf, colors is (imax-1)-by-(jmax-1).
  880.      Although PROPERTIES(5) returns pointers to the data plotted, attempting
  881.      to poke new values into this data will not produce immediate changes
  882.      to your plot, since the graphics package does not realize that anything
  883.      has changed.  Use pledit to make changes to plotted elements.
  884.  
  885.      The plq function always operates on the current coordinate system
  886.      in the current graphics window; use window and plsys to change these.
  887.    SEE ALSO: window, plsys, pledit, pldefault, plg
  888.  */
  889.  
  890.                                                                       plsys
  891. /* DOCUMENT plsys, n
  892.      sets the current coordinate system to number N in the current
  893.      graphics window.  If N equals 0, subsequent elements will be
  894.      plotted in absolute NDC coordinates outside of any coordinate
  895.      system.  The default style sheet "work.gs" defines only a single
  896.      coordinate system, so the only other choice is N equal 1.  You
  897.      can make up your own style sheet (using a text editor) which
  898.      defines mulitple coordinate systems.  You need to do this if
  899.      you want to display four plots side by side on a single page,
  900.      for example.  The standard style sheets "work2.gs" and "boxed2.gs"
  901.      define two overlayed coordinate systems with the first labeled
  902.      to the right of the plot and the second labeled to the left of
  903.      the plot.  When using overlayed coordinate systems, it is your
  904.      responsibility to ensure that the x-axis limits in the two
  905.      systems are identical.
  906.    SEE ALSO: window, limits, plg
  907.  */
  908.  
  909.                                                                         plt
  910. /* DOCUMENT plt, text, x, y, tosys=0/1
  911.      plots TEXT (a string) at the point (X,Y).  The exact relationship
  912.      between the point (X,Y) and the TEXT is determined by the
  913.      justify keyword.  TEXT may contain newline ("\n") characters
  914.      to output multiple lines of text with a single call.  The
  915.      coordinates (X,Y) are NDC coordinates (outside of any coordinate
  916.      system) unless the tosys keyword is present and non-zero, in
  917.      which case the TEXT will be placed in the current coordinate
  918.      system.  However, the character height is NEVER affected by the
  919.      scale of the coordinate system to which the text belongs.
  920.      Note that the pledit command takes dx and/or dy keywords to
  921.      adjust the position of existing text elements.
  922.      The following keywords are legal (each has a separate help entry):
  923.    KEYWORDS: legend, hide
  924.          color, font, height, opaque, path, justify
  925.    SEE ALSO: plg, plm, plc, plv, plf, pli, plt, pldj, pledit
  926.              limits, range, fma, hcp, pltitle
  927.  */
  928.  
  929.                                                        FROM pltitle TO rays
  930.  
  931.                                                                     pltitle
  932. /* DOCUMENT pltitle, title
  933.      Plot TITLE centered above the coordinate system for any of the
  934.      standard Gist styles.  You will need to customize this for other
  935.      plot styles.
  936.  */
  937.  
  938.                                                                         plv
  939. /* DOCUMENT plv, v, u, y, x, scale=dt
  940.          or plv, v, u, y, x, ireg, scale=dt
  941.      or plv, v, u, scale=dt
  942.      plots a vector field (U,V) on the mesh (X,Y).  Y, X, and IREG are
  943.      as for plm.  The V and U arrays must have the same shape as Y and X.
  944.      The Y, X, and IREG arguments may all be omitted to default to the
  945.      mesh set by the most recent plmesh call.
  946.      The SCALE keyword is the conversion factor from the units of
  947.      (U,V) to the units of (X,Y) -- a time interval if (U,V) is a velocity
  948.      and (X,Y) is a position -- which determines the length of the
  949.      vector "darts" plotted at the (X,Y) points.  If omitted, SCALE is
  950.      chosen so that the longest ray arrows have a length comparable
  951.      to a "typical" zone size.
  952.      You can use the scalem keyword in pledit to make adjustments to the
  953.      SCALE factor computed by default.
  954.      The following keywords are legal (each has a separate help entry):
  955.    KEYWORDS: legend, hide
  956.          type, width, color, smooth
  957.              marks, marker, mspace, mphase
  958.          triangle, region
  959.    SEE ALSO: plg, plm, plc, plv, plf, pli, plt, pldj, plmesh, pledit,
  960.              limits, logxy, range, fma, hcp
  961.  */
  962.  
  963.                                                                       range
  964. /* DOCUMENT range, ymin, ymax
  965.      sets the y-axis plot limits in the current coordinate system to
  966.      YMIN, YMAX, which may be nil or omitted to leave the corresponding
  967.      limit unchanged, a number to fix the corresponding limit to a
  968.      specified value, or the string "e" to make the corresponding limit
  969.      take on the extreme value of the currently displayed data.
  970.      Use    limits, xmin, xmin
  971.      to accomplish the same function for the x-axis plot limits.
  972.    SEE ALSO: plsys, limits, logxy, plg
  973.  */
  974.  
  975.                                                                        rays
  976. /* DOCUMENT rays=   plotting keyword
  977.      selects unadorned lines (rays=0), or lines with occasional ray
  978.      arrows (rays=1).  Ignored if type is "none".  The spacing and phase
  979.      of the occasional arrows can be altered using the rspace and rphase
  980.      keywords; the shape of the arrowhead can be modified using the
  981.      arroww and arrowl keywords.
  982.    PLOTTING COMMANDS: plg, plc
  983.    SEE ALSO: type, width, color, marker, marks, rspace, rphase
  984.              arroww, arrowl
  985.  */
  986.  
  987.                                                     FROM redraw TO triangle
  988.  
  989.                                                                      redraw
  990. /* DOCUMENT redraw
  991.      redraws the X window associated with the current graphics window.
  992.    SEE ALSO: window, fma, hcp, plg
  993.  */
  994.  
  995.                                                                      region
  996. /* DOCUMENT region=   plotting keyword
  997.      selects the part of mesh to consider.  The region should match one
  998.      of the numbers in the IREG array.  Putting region=0 (the default)
  999.      means to plot the entire mesh, that is, everything EXCEPT region
  1000.      zero (non-existent zones).  Any other number means to plot only
  1001.      the specified region number; region=3 would plot region 3 only.
  1002.    PLOTTING COMMANDS: plm, plc, plv, plf
  1003.  */
  1004.  
  1005.                                                                      rphase
  1006.     /* SEE rspace     */
  1007.  
  1008.                                                                      rspace
  1009. /* DOCUMENT rspace=   plotting keyword
  1010.          or rphase=   plotting keyword
  1011.          or arroww=   plotting keyword
  1012.          or arrowl=   plotting keyword
  1013.      selects the spacing, phase, and size of occasional ray arrows
  1014.      placed along polylines.  The spacing and phase are in NDC units
  1015.      (0.0013 NDC equals 1.0 point); the default rspace is 0.13, and
  1016.      the default rphase is 0.11375, but rphase is automatically
  1017.      incremented for successive curves on a single plot.
  1018.      The arrowhead width, arroww, and arrowhead length, arrowl are
  1019.      in relative units, defaulting to 1.0, which translates to an
  1020.      arrowhead 10 points long and 4 points in half-width.
  1021.    PLOTTING COMMANDS: plg
  1022.    SEE ALSO: type, width, color, marks, marker, rays
  1023.  */
  1024.  
  1025.                                                                      smooth
  1026.     /* SEE closed     */
  1027.  
  1028.                                                                    triangle
  1029. /* DOCUMENT triangle=   plotting keyword
  1030.      sets the triangulation array for a contour plot.  The triangulation
  1031.      array must be the same shape as the IREG (region number) array, and
  1032.      the correspondence between mesh zones and indices is the same as
  1033.      for IREG.  The triangulation array is used to resolve the ambiguity
  1034.      in saddle zones, in which the function Z being contoured has two
  1035.      diagonally opposite corners high, and the other two corners low.
  1036.      The triangulation array element for a zone is 0 if the algorithm is
  1037.      to choose a triangulation, based on the curvature of the first
  1038.      contour to enter the zone.  If zone (i,j) is to be triangulated
  1039.      from point (i-1,j-1) to point (i,j), then TRIANGLE(i,j)=1,
  1040.      while if it is to be triangulated from (i-1,j) to (i,j-1), then
  1041.      TRIANGLE(i,j)=-1.  Contours will never cross this "triangulation
  1042.  
  1043.                                                     FROM triangle TO window
  1044.  
  1045.      line".
  1046.      You should rarely need to fiddle with the traingulation array;
  1047.      it is a hedge for dealing with pathological cases.
  1048.    PLOTTING COMMANDS: plc
  1049.  */
  1050.  
  1051.                                                                        type
  1052. /* DOCUMENT type=   plotting keyword
  1053.      selects line type.  Valid values are the strings "solid", "dash",
  1054.      "dot", "dashdot", "dashdotdot", and "none".  The "none" value
  1055.      causes the line to be plotted as a polymarker.
  1056.      The type value may also be a number; 0 is "none", 1 is "solid",
  1057.      2 is "dash", 3 is "dot", 4 is "dashdot", and 5 is "dashdotdot".
  1058.    PLOTTING COMMANDS: plg, plm, plc, pldj
  1059.    SEE ALSO: width, color, marks, marker, rays, closed, smooth
  1060.  */
  1061.  
  1062.                                                                      unzoom
  1063. /* DOCUMENT unzoom
  1064.      restores limits to their values before zoom and pan operations
  1065.      performed interactively using the mouse.
  1066.      Use    old_limits=  limits()
  1067.             ...
  1068.         limits, old_limits
  1069.      to save and restore plot limits generally.
  1070.    SEE ALSO: limits, range, zoom_factor, plg
  1071.  */
  1072.  
  1073.                                                                       width
  1074. /* DOCUMENT width=   plotting keyword
  1075.      selects line width.  Valid values are positive floating point numbers
  1076.      giving the line thickness relative to the default line width of one
  1077.      half point, width= 1.0.
  1078.    PLOTTING COMMANDS: plg, plm, plc, pldj, plv (only if hollow=1)
  1079.    SEE ALSO: type, color, marks, marker, rays, closed, smooth
  1080.  */
  1081.  
  1082.                                                                      window
  1083. /* DOCUMENT window, n, display="host:server.screen", dpi=100/75, wait=0/1,
  1084.                        private=0/1, hcp="hcp_filename", dump=0/1,
  1085.                        legends=1/0, style="style_sheet_filename"
  1086.      select window N as the current graphics output window.  N may
  1087.      range from 0 to 7, inclusive.  Each graphics window corresponds to
  1088.      an X window, and optionally has its own associated hardcopy file.
  1089.      If N is omitted, it defaults to the current coordinate system.
  1090.  
  1091.      The X window will appear on your default display at 75 dpi, unless
  1092.      you specify the display and/or dpi keywords.  A dpi=100 X window
  1093.      is larger than a dpi=75 X window; both represent the same thing
  1094.      on paper.  Use display="" to create a graphics window which has
  1095.      no associated X window (you should do this if you want to make
  1096.      plots in a non-interactive batch mode).
  1097.  
  1098.      By default, an X window will attempt to use shared colors, which
  1099.      permits several Yorick graphics windows (including windows from
  1100.  
  1101.                                                      FROM window TO winkill
  1102.  
  1103.      multiple instances of Yorick) to use a common palette.  You can
  1104.      force an X window to post its own colormap (set its colormap
  1105.      attribute) with the private=1 keyword.  You will most likely have
  1106.      to fiddle with your window manager to understand how it handles
  1107.      colormap focus if you do this.  Use private=0 to return to shared
  1108.      colors.
  1109.  
  1110.      By default, Yorick will not wait for the X window to become visible;
  1111.      code which creates a new window, then plots a series of frames to
  1112.      that window should use wait=1 to assure that all frames are actually
  1113.      plotted.
  1114.  
  1115.      By default, a graphics window does NOT have a hardcopy file
  1116.      of its own -- any request for hardcopy are directed to the
  1117.      default hardcopy file, so hardcopy output from any window goes
  1118.      to a single file.  By specifying the hcp keyword, however, a
  1119.      hardcopy file unique to this window will be created.  If the
  1120.      "hcp_filename" ends in ".ps", the hardcopy file will be a PostScript
  1121.      file; otherwise, hardcopy files are in binary CGM format.  Use
  1122.      hcp="" to revert to the default hardcopy file (closing the window
  1123.      specific file, if any).  The legends keyword, if present, controls
  1124.      whether the curve legends are (legends=1, the default) or are not
  1125.      (legends=0) dumped to the hardcopy file.  The dump keyword, if
  1126.      present, controls whether all colors are converted to a gray scale
  1127.      (dump=0, the default), or the current palette is dumped at the
  1128.      beginning of each page of hardcopy output.  (The legends keyword
  1129.      applies to all pictures dumped to hardcopy from this graphics
  1130.      window.  The dump keyword applies only to the specific hardcopy
  1131.      file defined using the hcp keyword -- use the dump keyword in the
  1132.      hcp_file command to get the same effect in the default hardcopy
  1133.      file.)
  1134.  
  1135.      If both display="" and hcp="", the graphics window will be
  1136.      entirely eliminated.
  1137.  
  1138.      The style keyword, if present, specifies the name of a Gist style
  1139.      sheet file; the default is "work.gs".  The style sheet determines
  1140.      the number and location of coordinate systems, tick and label styles,
  1141.      and the like.  Other choices include "axes.gs", "boxed.gs",
  1142.      "work2.gs", and "boxed2.gs".
  1143.  
  1144.      If invoked as a function, window(...) returns the current
  1145.      window number.
  1146.    SEE ALSO: plsys, hcp_file, fma, hcp, redraw, palette, animate, plg,
  1147.              winkill, gridxy
  1148.  */
  1149.  
  1150.                                                                     winkill
  1151. /* DOCUMENT winkill
  1152.          or winkill, n
  1153.      deletes the current graphics window, or graphics window N (0-7).
  1154.    SEE ALSO: window
  1155.  */
  1156.  
  1157.                                             FROM zoom_factor TO zoom_factor
  1158.  
  1159.                                                                 zoom_factor
  1160. /* DOCUMENT zoom_factor, factor
  1161.      sets the zoom factor for mouse-click zoom in and zoom out operations.
  1162.      The default FACTOR is 1.5; FACTOR should always be greater than 1.0.
  1163.    SEE ALSO: limits, range, unzoom, plg
  1164.  */
  1165.