1 SET
  Syntax: SET
          parameter value(s)
      or  X|Y|Z parameter value(s)
      or  SET PLOT id [&idb] parameter value
      or  SET PLOT id [&idb] X|Y|Z parameter value

  In general  if you  `SET'  something, it will  affect the  next plot you
  make. To change  something on a  picture you have  already made, use the
  format `SET  PLOT id  [&idb]'. This  will not  change the  value of that
  parameter for any other  plots. If you want to  change something for all
  plots, use the format  `SET PLOT 0 ...' This  will also change the value
  of the parameter for all subsequent plots. You can usually omit the word
  `PLOT' in the above syntax.

  If you do not want to  change the value of a  parameter, you can use `='
  in the  position where  the value  would go, in  the same  way as in the
  `MODIFY' command. See HELP Numbers  for more details. Set the parameters
  to 0 to get back  to their default  values or to turn  off their effect.
  For example. `SET Y LIMIT 0 0' returns you to automatic limit setting.

  If you give  the  `parameter' on the same  line as `SET'  or
  `SET PLOT  id [&idb]', you  will exit  automatically at  the end of your
  command. Otherwise you  must give the `ENDSET'  command to exit `SET' if
  you are reading  commands from a file or a  `DEFINE' command. If you are
  giving commands interactively you can also hit `<CR>'.

  To change a parameter in the  `DISPLAY' of the fit results, use the
  `SET DISPLAY parameter' form. See HELP SET PLOT and HELP SET DISPLAY for
  more details.

  If a  parameter has to  be  preceded by the  axis it  applies to, you do
  not have to  leave a space  between the axis label  and the parameter
  name, i.e. `SET X LIMIT' and `SET XLIMIT' are both valid.

  If you turn off the frame for a plot then no ticks, grid or scale
  will be drawn. If you turn off the ticks then no scale will be drawn
  either.  Possible positions for the frame, scale, ticks and label
  are the `ALL', `BOTTOM', `TOP', `LEFT' or `RIGHT' of the picture. In
  addition for lego and surface plots you can set parameters for the
  `VERTICAL' axis. For the grid and the line at `x' or `y = 0', you
  specify whether it is for the `X', `Y', or `Z' axes.

2 Menu
  The following is a list of the available commands.
  For more details see HELP SET and the individual subtopics:

  EXIT         Exits from SET (deprecated).
  ENDSET       Exits from SET (use instead of EXIT in command files).
  X            Sets a variable for the X-axis.
  Y            Sets a variable for the Y-axis.
  Z            Sets a variable for the Z-axis.
  ABORT        Turns on or off the aborting of macros when an error occurs.
  ALIAS        Turns on or off alias translation.
  AUTOFETCH    Automatically refetch Ntuples when they are projected
               or scanned, or fetches histograms when they are plotted.
  AUTOSCALE    Scale text sizes when windowing.
  AUTOSWITCH   Switches between plotting and alphanumeric without asking
               for a `<CR>'.
  AUTOTRIM     Do not draw the last scale value when windowing with 0
               spacing between the windows or for the 1st y-axis scale
               value in a lego plot.
  AXIS         Sets axis labelling text, position, size and angle (deprecated).
  BACKGROUND   Specifies which functions should be considered as background.
  BIN          Sets an scale factor or offset for each bin when plotting.
  BOX          Turns on or off drawing a box round the plot.
  BREAK        Turns on or off the condition handler.
  CHARACTER    Sets continuation and comment characters.
  COLOR        Same as `SET COLOUR' for Americans.
  COLOUR       Changes the colour of all or part of a picture.
  DBASE        Sets database access parameters.
  DEBUG        Turns on/off the debug flag.
  DEFAULT      Sets parameters back to default values or
               sets the default plot.
  DIRECTORY    Sets the current HBOOK4 or ROOT directory.
  DISPLAY      Changes the mode or defaults for displaying fit results.
  DSIZE        Sets the scale factor for the dot size.
  DUMP         Changes the output unit for the printout from commands.
  ECHO         Turns on or off echoing commands when reading from a file.
  EDIT         Gives the command to invoke your favourite editor.
  ERR_ZERO     Sets the error on zero points to 1 or not.
  EXCLUSIONS   Turns on or off showing excluded parts of functions.
  FIT          Specifies options for fitting (see HELP SET FIT for more
               details).
  FONT         Sets the font for text in pictures.
  FOOTER       Turns on or off the footer on a picture and allows a
               user footer to be specified.
  FRAME        Sets where you want a frame round the plot.
  FSIZE        Sets the text size of the footer.
  FUNCTION     Specifies options for calculating function values
               (see HELP SET FUNCTION for more details).
  GRID         Turns on or off a grid.
  GSIZE        Sets the global/user title size.
  HATCH        Sets the hatching number.
  HARDCOPY     Sets the name of the file that hardcopies are written to.
  HEADER       Turns on or off displaying the histogram identifiers and
               and other information on the picture.
  HIGZ         Sets IGSET or IGTABLE parameters.
  HISTOGRAM    Sets the default histogram number.
  IDB          Specifies the default secondary identifier.
  IDSIZE       Sets size of text for histogram identifier.
  IDSHOW       Turns on or off displaying the histogram identifiers on the
               picture.
  IGARC        Uses HIGZ IGARC routine for arcs and circles.
  IGTABLE      Sets the IGTABLE parameters for `IGTABLE' or `2DIM' command.
  LABEL        Sets axis labelling text, position, size and angle.
  LOG          Turns on or off logging of all commands - for a log
               scale in a histogram see HELP SET MODE.
  LSIZE        Sets the segment length for drawing lnes.
  MANUAL       Turns on or off special command echoing used to make Mn_Fit
               manual.
  MOUSE        Turns on or off using the mouse to position comments/keys.
  NEXT_WINDOW  Sets the window for the next plot.
  NTUPLE       Specifies the axes corresponding to Ntuple variables.
  NORMALIZE    Turns on or off an overall normalization factor when fitting.
  ORDER        Specifies the order of variables in a file read
               with `DAT_FETCH'.
  ORTHOGONAL   Sets the orthogonality limits for Chebyshev polynomials etc.
  PAGER        Gives the command to invoke your favourite pager.
  PAPER        Sets the paper size for Postscript files.
  PARAMETER    Sets parameters for the L3 detector displays.
  PATH         Sets the list of directories searched when opening
               existing files.
  PATTERN      Sets the pattern number (only works with GKS).
  PI           Turns on or off the ability to use pi as a scale symbol.
  PLOT         Specifies which plot you want to change something for.
  RATIO        Specifies using ratio of areas or not when fitting more than
               1 plot.
  RECL         Sets the record length for HBOOK version 4 files.
  REDRAW       Redraws the last picture with the `SET' changes on it.
  ROTATION     Rotates a plot - not yet fully implemented.
  SCALE        Sets where to put the scale and its position and size.
  SECONDARY_ID Specifies the default secondary identifier.
  SHELL        Specifies the shell to be used on Unix systems.
  SHOW_ZERO    Shows zero points which have zero errors or not.
  SIGNAL       Specifies which functions should be considered as signal.
  SSIZE        Sets the symbol size.
  STATISTICS   Specifies whether HBOOK or Mn_Fit calculation of means and
               sigmas should be used.
  SYMBOL       Sets the symbol number.
  TEXT         Turns on or off showing fit information on the screen.
  THICKNESS    Changes the line thickness for all or part of a picture.
  TICKS        Sets the number of ticks and where to put them.
  TIME         Sets the time mode for storing data and the reference time.
  TITLE        Sets the user title or changes the title position or size
               for a histogram.
  TKTCL        Turns on/off TK/TCL interface.
  TSIZE        Sets the title size.
  USIZE        Sets the size for printing the fit results.
  WAIT_CR      Turns on or off waiting for a `<CR>' before the next picture.
  WINDOW       Sets up windowing or changes the window for a particular plot.
  NO_WINDOW    Turns off windowing.
  WORKING_DIR  Sets the current working directory for files.

  Parameters specific to an axis. The commands `FRAME', `TICKS',
  `SCALE' and `LABEL|AXIS' can either be preceded by the axis name `X',
  `Y' or `Z' or followed by the postion on the picture that they refer
  to `ALL', `LEFT', `RIGHT', `BOTTOM', `TOP' or `VERTICAL'. The other
  commands must be preceded by the axis name:

  AXIS       Sets axis labelling text and position, size and angle.
  GRID       Turns on or off a grid.
  LABEL      Sets axis labelling text and position, size and angle.
  LIMITS     Sets the lower and upper plotting limits for axis.
  MARGIN     Sets size of lefthand or lower margin.
  MODE       Sets mode to draw scale, `Real', `Integer', `Log', or `Time'.
  NULL       Turns on or off drawing a line at `x=0' or `y=0'.
  OPT_ZERO   Turns on or off having 0 as the lower scale limit for entries.
  PSIZE      Sets the overall size of the picture.
  SCALE      Sets variables for scale.
  SIZE       Sets the histogram size.
  TICKS      Sets number of ticks.
  WMARGIN    Changes the margin inside a window.
  WSIZE      Changes the size of a plot inside a window.
  ZERO       Turns on or off drawing a line at `x=0' or `y=0'.

2 ABORT
  Syntax: SET ABORT ON|OFF              (default = ON)

  Turns on or off the aborting of macros when an error occurs. The
  default behaviour is to ask if the macro or defined command should
  be aborted. If this option is turned off the macro will continue
  whether an error occurs or not.

2 ALIAS
  Syntax: SET ALAIS ON|OFF              (default = ON)

  Turns on or off alias translation  on the command line. See HELP ALIAS
  for full details on aliases.

2 AUTOFETCH
  Syntax: SET AUTOFETCH ON|OFF              (default = ON)

  Automatically refetches Ntuples when they are projected or
  scanned. This means you are sure that everything is setup OK before
  the operation on the Ntuple. However for very big Ntuples, even
  though they have been made with the disk option, this can take a
  long time. If you are sure you know what you are doing you can turn
  this option off, but you must be sure not to change the HBOOK file
  or current directory after you have fetched the Ntuple.

  With this option turned on, if you try to plot a histogram that does
  not exist, Mn_Fit will try to fetch it from an open HBOOK RZ input
  file.

2 AUTOSCALE
  Syntax: SET AUTOSCALE ON|OFF              (default = ON)

  Enables automatic rescaling of text sizes, if they are set to their
  default values, when windowing. By default the sizes are reduced by
  a factor of 2/3 of the number of windows in the x direction. This is
  sometimes too much, especially when preparing a plot for a
  publication.

2 AUTOSWITCH
  Syntax: SET AUTOSWITCH ON|OFF              (default = ON)

  Enables     automatic   switching   between   Tektronix   plotting and
  alphanumeric  mode. If your screen  clears when you  switch modes, you
  should set this option  off. Also if you are  running Versaterm with 2
  windows on top of one another, this option should probably be `OFF'.

2 AUTOTRIM
  Syntax: SET AUTOTRIM ON|OFF              (default = ON)

  Enables automatic dropping of the last scale value when windowing
  with 0 spacing between the plots.

2 AXIS
  Syntax: SET X|Y AXIS
          text
          x  y  size  angle  option font
      or  SET AXIS X|Y text...
      or  SET AXIS ALL|BOTTOM|TOP|LEFT|RIGHT|VERTICAL ON|OFF|PLOT|PAGE
   where: text    is the axis label
          x,y     are its position relative to the centre of the axis
          size    is the size of the text
          angle   is the angle with respect to the horizontal
          option  can be LEFT   = left adjusted to x,y
                         CENTRE = centred (default)
                         RIGHT  = right adjusted
          font    is the font to use for the text

  Alias for `SET LABEL'. See HELP SET LABEL for more details.

2 BACKGROUND
  Syntax: SET BACKGROUND nfun1 [nfun2...]

  Specifies which of the functions you have defined should be considered
  as background when you do a  background subtraction. `nfun1 = 0' means
  that they  are all   background. When  you add a  new  function, it is
  defined to be signal by default.

2 BIN
  Syntax:  SET BIN SCALE|OFFSET value
  where:   value  is the scale factor or offset

  Sets a scale factor or an offset for each bin. This command works
  only for 1-D histograms when they are plotted as such, i.e. symbols
  1->10. The command is useful if you want to show each bin of a
  binned histogram, or have several histograms with the same binning
  that you want to compare next to each other. If you want to shift
  the points of a histogram you can also use `XSCALE' and `XSHIFT'
  commands, but these permanently modify the histogram.

2 BOX
  Syntax:  SET BOX ON|OFF
  Default: OFF

  Turns on or off drawing a box around the plot.

2 BREAK
  Syntax:  SET BREAK ON|OFF
  Default: ON

  Turns on or off the condition handler.

2 CHARACTER
  Syntax:  SET CHARACTER COMMENT|CONTINUATION char
  where:   char   is the comment or continuation character
  Default: Comment is '!', continuation is '-'

  Sets the comment or continuation line characters. The defaults are
  the same as in VMS DCL: '!' for comments and '-' for continuation
  lines. Command lines in Mn_Fit can have a maximum of 255 characters.

  You should usually include the character in quotes to avoid it being
  interpreted as a comment character, which would mean that it would
  be ignored.

  You can  list the comment and continuation characters using the command
  `SHOW CHARACTER'. This can only be abbreviated as fas as `SHOW CHARA' as
  otherwise it will show character array elements - see HELP DEPOSIT for more
  details on the character array.

3 Examples

!\begin{enumerate}
!\item
!^
  Example 1:
    Set the comment character and continuation line character to be the
    same as Unix:
      SET CHARACTER COMMENT '#'
      SET CHARACTER CON     '\'


!\end{enumerate}

2 COLOR
  Syntax: SET COLOR [item] color|ON|OFF|DEFAULT
      or: SET COLOR REPRESENTATION index red green blue name
  where:  item    is the name of what you want to change
          color   is the name or number of the color you want
          name    is the (optional) name for the colour

  Exactly the same as `SET COLOUR' for Americans!

2 COLOUR
  Syntax: SET COLOUR [item] colour|ON|OFF|DEFAULT
      or: SET COLOUR REPRESENTATION index red green blue name
  where:  item    is the name of what you want to change
          colour  is the name or number of the colour you want
          name    is the (optional) name for the colour

  Changes the colour of the lines and/or text on a picture (only works
  in HIGZ version). To change the colour a particular plot, precede
  the command with `SET PLOT id [&idb]'.

  You can also turn on or off the use of colour with the command
  `SET COLOUR ON|OFF'. This is useful to convert a colour macro into a
  black and white one for including figures in a paper.

  The default colour map is that of HIGZ:

  0 = White (Background)       4 = Blue
  1 = Black (Foreground)       5 = Yellow
  2 = Red                      6 = Magenta
  3 = Green                    7 = Cyan

  If you omit the item, the colour of all items will be changed, with
  the exception of the background.
  The following items are valid:

  FRAME               TICK                SCALE
  LABEL               HEADER              TITLE
  SYMBOL              HATCH               PATTERN
  ZERO_LINE           COMMENT             FIT
  BACKGROUND          REPRESENTATION

  Note that `SET COLOUR 0' sets colours to default (i.e. black) while
  `SET COLOUR WHITE' will set the colour to the background colour.

  The command `SET COLOUR REPRESENTATION index red green blue name'
  changes the colour representation for that index.  This enables you
  to customize your colour indices if you wish.  `index' is the colour
  index, `red, green, blue' are the fractions of red, green and blue
  for that index. They must be between 0 and 1. If the index is larger
  than 7 then you must also give a name. For lower indices, you can
  give a name. The name MUST be a single word. Note that the
  `REPRESENTATION' command may only change the colours for the
  currently active output device, i.e. the screen or the file. If this
  is the case, then to change things for both (assuming you are using
  a X display and a Postscript file) you have to give the commands:

  capture display
  set col rep 1 0.3 0.4 0.5
  cap post
  set col rep 1 0.3 0.4 0.5
  capture display

  You can define up to a total of 20 colours. The colour indices
  should be continuous. To help you get started with your own
  definitions, the colour fractions for the default HIGZ colour scheme
  are:

  Index  Colour                Red Green  Blue
  0      Background (white)    1.0   1.0   1.0
  1      Foreground (black)    0.0   0.0   0.0
  2      Red                   1.0   0.0   0.0
  3      Green                 0.0   1.0   0.0
  4      Dark blue             0.0   0.0   1.0
  5      Yellow                1.0   1.0   0.0
  6      Magenta               1.0   0.0   1.0
  7      Cyan                  0.0   1.0   1.0

  Note that the `SET COLOUR DEFAULT' command now sets all colours back
  to the HIGZ colour map. This has changed with Mn_Fit version
  4.07. For earlier version the command `SET COLOUR ON' also reset the
  colour map.

2 DBASE
  Syntax:   SET DBASE YEAR|LIMITS

  Sets the database year to access or the limits on the values that are
  included in calculating the averages for `DATABASE DB_HISTORY'.

2 DEBUG
  Syntax:   SET DEBUG ON|OFF level
  where:    level  is a number for the debug level
  Defaults: OFF, level=0

  Turns on or  off a logical  `QDEBUG' and  sets the  debug level. These
  variables are available in COMIS functions in the common block:

  LOGICAL QDEBUG
  COMMON/MNDBG/QDEBUG,NDEBUG

  This is very  useful for  debugging  COMIS functions,  meaning you can
  interactively  change the amount  of printout you  get. It can equally
  well be used in user functions.

  Print  levels  >100  are  reserved  for  future  Mn_Fit debug  output.
  Although not used much at the moment, it is a useful debugging tool
  for me.

2 DEFAULT
  Syntax: SET DEFAULT
      or  SET PLOT id [&idb] DEFAULT

  If you do not precede the command with `PLOT', all plot parameters
  are set back to their default values.  If you precede command with
  `PLOT', it is equivalent to `SET HIST' (see HELP SET HISTOGRAM for
  more details), and fills registers 121-199 as well as 231-257 with
  information on the histogram and defines the default plot for the
  `DEPOSIT' command.  See HELP Numbers for a list of what is in the
  registers.

2 DIRECTORY
  Syntax: SET DIRECTORY dirname
  where   dirname  is the directory name

  Sets the current HBOOK or ROOT directory name to `dirname'.  Note that the
  HCDIR (or ROOT equivalent) command is only executed when a `FETCH', `LDIR',
  `ZDIR' or `SHOW DIR' command is executed. This enables you to `SET' the
  directory you want to fetch from, and the secondary identifier you want to
  give the plots, before fetching them.  However, this means that successive
  `SET DIR' commands without a `FETCH' etc. in between will only remember the
  last name.

  Note that the directory name  should not be preceded by a '/'. However
  '//' is allowed so you can go to the top level. You can use either
!^
  '\' or '..' to go up a directory level.
!$\backslash$ or '..' to go up a directory level.

  ROOT directory names are always with respect to the top level
  directory. Therefore it make no sense to try to use '..' to go up a
  level. Use the command 'cd //root' to get to the top level. ROOT directories
  are case sensitive. HBOOK directories always get converted to upper case.

  Note that the Mn_Fit HBOOK file top level directory name is `//MN_HBIN',
  while the ROOT top level directory name is '//root'.

2 DISPLAY
  Syntax: SET DISPLAY MODE|X|Y|Z [parameter]

  You can give this command to change parameters in the `DISPLAY' of the
  fit results or to  change what is displayed.  If you give a `X Y or Z'
  or hit  `<CR>' after  the `SET  DISPLAY'  command then  any subsequent
  parameters you change will apply to the `DISPLAY' only.

  The command  `SET DISPLAY MODE'  changes the  display form for the fit
  results.

3 MODE
  Syntax: SET DISPLAY MODE nmode
   where: nmode = 1  means show the fit and the function
                = 2  means show the background subtracted fit
                = 3  means show both
                -ve  means divide by the background also before
                     making the background subtracted plot

  You can show the standard plot,  background subtracted, or both. For
  the background  subtracted plot, you can do  a simple subtraction or
  divide by the background also.  You must specify which functions are
  the background using the `SET BACKGROUND' command.

2 DSIZE
  Syntax: SET DSIZE size                         (default = 1.0)

  Controls the scale factor for the  dot size. This command only works in
  the HIGZ version of Mn_Fit. The effect is only usually seen when you
  make a Postscript version of the figure.

2 DUMP
  Syntax: SET DUMP SCREEN|TTY|>|LPT|CLOSE
          SET DUMP FILE filename
      or  SET DUMP > filename

  Change the output  unit for the
  `DISPLAY, FIT_INFO, DUMP, HIST DUMP, INDEX' and `MESSAGE' commands.
  If you specify `LPT' or `>' the output will be written
  to the file `mn_dump.dat'. To close the file, specify `CLOSE'.

  To change the filename from `mn_dump.dat', use the command
  `SET DUMP FILE filename'.
  You then still have to give the command `SET DUMP LPT' to change
  the output routing to that file. Alternatively you
  can use the syntax `SET DUMP > filename' to both reroute the output
  and start sending it to a file. If a file is already open you must
  close it first using `SET DUMP CLOSE', otherwise the output will
  just be appended to the open file.

2 ECHO
  Syntax: SET ECHO ON|OFF                (default = ON)

  Turns on or off echoing of commands read from a file.

2 EDIT
  Syntax: SET EDIT command

  Changes the command used to invoke the editor. The default editor is
  `EDIT/TPU' on VMS, `dm' on the Apollo and `emacs' on Unix. If the
  environment variable `EDITOR' exists (Unix), this will be used as the
  default edit command.

2 ENDSET
  Syntax: ENDSET

  Gets  you back  to the  `MN_CMD>'  or  `MINUIT>'  level. You  must use
  `ENDSET'  in  command  files to  exit  `SET' if you  did not  give the
  parameter on the same line as the `SET' command.

2 ERR_ZERO
  Syntax: SET ERR_ZERO ON|OFF              (default = ON)

  Sets the error  on zero points to  1 when a plot is  fit or one of the
  commands  `ADD, SUBTRACT, MULTIPLY, DIVIDE, EFFICIENCY, AVERAGE' is
  applied to the plot.

2 EXCLUSIONS
  Syntax: SET EXCLUSIONS ON|OFF             (default = ON)

  Turns on or off showing the  excluded parts of plots when drawing in a
  function.

2 EXIT
  Syntax: EXIT

  Gets you back to the `MN_CMD>' or `MINUIT>' level. Use `ENDSET' rather
  than `EXIT' to avoid confusion and accidental exiting from Mn_Fit.

2 FIT
  Syntax: SET FIT option
   where: option  is the fit option

  Sets options for  fitting.

3 DEFAULT
  Syntax: SET FIT DEFAULT

  Sets all fitting and function options associated with fitting to their
  default values.

3 AREA
  Syntax: SET FIT AREA ON|OFF

  Uses Simpson integration to calculate the area of fragmentation
  functions, dipion invariant mass functions and ARGUS background functions.
  Slows down the fitting, but means that the `AREA' is meaningful.

3 COMMANDS
  Syntax:   SET FIT COMMANDS
            command1
            command2 ...
            END
   where:   comand1, comand2, ...   are a list of commands

   Defines the list of commands to be used when using the quick fitting
   option, e.g. `FIT/GAUSS', where the functions to use are included in
   the `FIT' command. The default commands are `MINIMIZE', `DISPLAY'.

3 CONVOLUTE
  Syntax:   SET FIT CONVOLUTE ON|OFF [width ninterval nsigma]
  where:    width      is the width of the Gaussian
            ninterval  is the number of intervals to integrate over
            nsigma     is the number of sigmas of the Gaussian
  Defaults: width = 1, ninterval = 100, nsigma = 3

  WARNING: This command's results should be carefully
  checked to ensure that they are correct. Its syntax could also
  change in response to suggestions.

  Convolutes the fitting function(s) with a Gaussian resolution
  function. Useful for things such as lifetime fits, where you want to
  include the experimental resolution.

  You should normally set the Gaussian width. Increasing the number of
  intervals slows down the fitting, but gives a more precise result.
  The same applies to the number of sigma. At present it is not worth
  going beyond 6 sigma, as I set a Gaussian to 0 there.

3 INTEGRATE
  Syntax: SET FIT INTEGRATE ON|OFF [ninterval]
  where   ninterval  is the number of intervals in the integration.
  Defaults: ninterval = 100

  Specifies whether the function is integrated over each bin of the plot
  you are fitting. The integration  uses Simpson's approximation and the
  number of intervals must be even.

2 FONT
  Syntax:   SET FONT [item] nfont
  where:    item   is the name of what you want to change
            nfont  is the font number in the form spfff
                   s    is the sign of the font (+|-)
                   p    is the precision
                   fff  is the font number
  Defaults: nfont = -1004

  Sets the  font used for  text on a  picture. To change  the font of an
  item in a   particular plot,  precede  the  command with
  `SET PLOT id [&idb]'. If you omit the item, the font of all items
  will be changed. The following items are valid:

  HEADER              TITLE               COMMENT
  SYMBOL              SCALE               LABEL

  Font 2000 uses the IGTEXT routine (see HELP TEXT for details). The
  other fonts available depend on the workstation type. HIGZ also has
  a number of device independent fonts. See the HIGZ manual for more
  details. In addition all the other fonts listed in the PAW manual
  (section 8.10 - text fonts) are available. e.g.  `SET FONT -1004'
  will choose font -4 (Helvetica) with precision 1.

  Note that if you change the font for the `SCALE' or `LABEL' it will be
  changed for all axes. To change it  for a particular axis use the
  `SET X|Y|Z SCALE' or `SET X|Y|Z LABEL' commands. If the `SET SCALE' or
  `SET LABEL' commands are not for a  particular plot then the font will
  be set to that specified in the `SET FONT' command.

2 FOOTER
  Syntax: SET FOOTER ON|OFF|USER [text]                  (default = OFF)

  Controls whether to  print the footer that shows the date and time
  that a picture was made or user specified text. For user specified
  footer give the text that should be in the footer. Use the command
  `SET FSIZE' to change the size of the text.

  In a user specified footer the following strings have special
  meaning:
  @file    Filename for the hardcopy
  @date    The date
  @time    The time
  @|       Splits the text at this point, putting the text before at
           the bottom left-hand corner of the picture and the text
           after at the bottom right-hand corner.

  For example to get the date and time at the bottom left-hand corner
  and the hardcopy filename at the bottom right-hand corner give the
  command:

  SET FOOTER USER 'Mn_Fit @date @time@|@file'


2 FRAME
  Syntax:   SET FRAME ALL|BOTTOM|TOP|LEFT|RIGHT|VERTICAL ON|OFF
  Defaults: ALL ON

  Sets up where you want a frame  around the plot.  Default is to draw a
  frame all around it. If you want open axes (i.e. only the x and y axes
  drawn), give the commands `SET FRAME TOP OFF RIGHT OFF'. `VERTICAL' is
  the z-axis in `LEGO' and `SURFACE' plots.

  To set or change the frame for a  particular plot, precede the command
  with `SET PLOT id [&idb]'.

2 FSIZE
  Syntax: SET FSIZE size                               (default = 0.2cm)

  Controls the size of  the footer text if the footer is turned on
  (command `SET FOOTER').

2 FUNCTION
  Syntax:   SET FUNCTION option
   where:   option  is the function option

  Set options used in calculating functions.  
  See HELP SET FUNCTION Menu for a short description of each command.
  Use the `SET BACKGROUND' and `SET SIGNAL' commands to specify which
  functions are background and which are signal for the different 
  `DISPLAY' modes.

  The `SET FUNCTION AREA' command controls whether the `AREA' given is
  evaluated inside the plot limits or from -infinity to +infinity.
  In fact what is actually used are the orthogonality limits used to
  also define Chebyshev and Legendre polynomials. These are by default
  the plot limits when fitting and can be set using the `SET ORTHOGONAL' 
  command.

  Use the command `SET FIT AREA ON|OFF' to turn on/off use of Simpson
  integration to calculate area of fragmentation
  functions, dipion invariant mass functions and ARGUS background functions.
  Slows down the fitting, but means that the `AREA' is meaningful.

  The options are:
    AREA      Specifies whether the AREA is that inside the plot or over
              the whole valid range.
    BIN_WIDTH Controls whether the bin width is used when calculating
              the value of a function.
    POINTS    Sets the number of points used when drawing a function.
    INTEGRATE Sets the number of intervals used when integrating a function.
    STEP      Sets the step size used for differentiation of a function.

3 AREA
  Syntax:   SET FUNCTION AREA LIMIT|FULL
  where:    LIMIT means the area is calculated using the plot limits
            FULL  means the area is the integral from -infinity to +infinity
  Default:  FULL

  Specifies if a function will be integrated over the plot limits or
  from -infinity to +infinity when the area is calculated. For
  functions with long tails, such as the Breit-Wginer or Crystal Ball
  functions, the area outside the plot limits can be significant and
  leads to the `AREA' parameter being apparently too high.

  This parameter is used with all versions of a Gaussian, Breit-Wigner
  Landau and the Crystal Ball functions (normal and reversed). The area
  inside the plot limits is evaluated numerically using Simpson
  integration. The number of intervals used is specified with the
  `SET FUNCTION INTEGRATE' command.

  In fact what is actually used for the limits are the orthogonality
  limits used to also define Chebyshev and Legendre polynomials. These
  are by default the plot limits when fitting and can be set using the
  `SET ORTHOGONAL' command.

  This option is set to the default value using the `SET FIT DEFAULT'
  command. 

3 BIN_WIDTH
  Syntax:   SET FUNCTION BIN_WIDTH ON|OFF

  Specifies  whether the bin width  should be used  when calculating the
  value of a function. This now applies to all functions, as they all
  include the bin width in their calculation.

3 INTEGRATE
  Syntax:   SET FUNCTION INTEGRATE nint
  where:    nint  is the number of intervals
  Default:  nint=100

  Specifies how many intervals will be used when integrating a function.
  This is used in the `INTEGRATE' command and the expression `FINT'.

3 POINTS
  Syntax:   SET FUNCTION POINTS npnt
  where:    npnt  is the number of points
  Default:  npnt=500

  Specifies how many points to use when drawing a function.

3 STEP
  Syntax:   SET FUNCTION STEP size
  where:    size  is the step size used when differentiating a function
  Default:  step = 1.0

  Specifies the step size used when differentiating a function. It is
  also 1000000 times the step size used when evaluating the value or
  derivative of a function just below the given parameter value
  (`FNEG').

2 GRID
  Syntax:   SET X|Y GRID ON|OFF [option nsymb]
   where:   option  use which ticks to draw the grid on (BIG or ALL)
            nsymb   is the symbol number for the grid
  Defaults: OFF BIG 3     except for z-axis: ON BIG 3

  Turns on or off drawing a grid on the plot and specifies which ticks
  to put the grid on (`ALL' or `BIG') and the symbol to use for
  it. The default is that the grid will be drawn at the big tick
  positions. The grid in each direction can be turned on or off
  independently. Turning off the frame means that no grid will be
  drawn.

  To change the grid for a particular plot, precede the command with
  `SET PLOT id [&idb]'.

2 GSIZE
  Syntax: SET GSIZE value                   (default = 0.4cm)

  Changes the size of the global and/or user title. To change the title
  size for a particular plot, precede the command with
  `SET PLOT id [&idb]'.
  You can also use the `SET TITLE GPOSITION' command to do this.

2 HARDCOPY
  Syntax:   SET HARDCOPY filename
  where     filename  is the name of the file you want hardcopy output in
  Defaults: PLOT.PS, PLOT.META etc.

  Changes the name of  the file written to by  the `HARDCOPY' command or
  if you `CAPTURE' a hardcopy device.

2 HATCH
  Syntax: SET HATCH nhatch
   where: nhatch  is the hatch number

  Sets the hatch number to use for plots.

  WARNING: This command  only works with the HIGZ version of Mn_Fit, and
  the hatchings  available are device  dependent. For the Vaxstation and
  Postscript, numbers -1 to -11 are  available; the Vaxstation has more,
  but they will be  plotted as -1 if you make a  hardcopy. GKSGRAL has a
  number of device  independent hatchings  numbers -101 to -124. See the
  HIGZ or CERN graphics manuals for more details.

  For all versions using HIGZ, the HIGZ portable hatches are
  available. These use an index coded using 3 digits `ijk':

  i: Specifies the distance between each hatch;
  j: Specifies the angle between 90 and 180 degrees;
  k: Specifies the angle between 0 and 90 degrees.

  The numbers are coded according to the table below:
    i                j                    k
                     0   180 degrees      0      0 degrees
    1    0.75mm      1   170 degrees      1     10 degrees
    2    1.50mm      2   160 degrees      2     20 degrees
    3    2.25mm      3   150 degrees      3     30 degrees
    4    3.00mm      4   135 degrees      4     45 degrees
    5    3.75mm      5   Not drawn        5     Not drawn
    6    4.50mm      6   120 degrees      6     60 degrees
    7    5.25mm      7   110 degrees      7     70 degrees
    8    6.00mm      8   100 degrees      8     80 degrees
    9    6.75mm      9    90 degrees      9     90 degrees

  Note that the space  between hatch lines is  visible. If you overlay a
  plot with a hatch, then the one below it can be seen. The area under a
  pattern is not visible.

2 HEADER
  Syntax: SET HEADER ON|OFF|BRIEF|DEFAULT|COMPLETE   (default = DEFAULT)

  Controls whether to  print the histogram  numbers being plotted on the
  picture.  The  `OFF'  mode  turns  off  the  text,  `BRIEF'  shows the
  identifiers  and the  symbols;  `DEFAULT' also  shows the  area,
  mean and r.m.s. for the plot; `COMPLETE' also show the number of
  underflows and overflows.  Alias for `SET IDSHOW'.

2 HIGZ
  Syntax: SET HIGZ name value
      or: SET HIGZ TABLE option val1 [val2...]
   where: name       is the IGSET parameter name
          value      is its value
          option     is the IGTABL option
          val1,val2  are IGTABL parameters

  Changes the HIGZ IGSET parameters or sets the plotting mode and
  parameters for the 2-dimensional histogram plotting routine IGTABL.
  The command `SET HIGZ TABLE' is an alias for `SET IGTABLE'.
  See HELP SET IGTABLE for more details.

3 TABLE
  Syntax: SET HIGZ TABLE option val1 [val2...]

  Alias for `SET IGTABLE'. See HELP SET IGTABLE and 2DIM for more details.

2 HISTOGRAM
  Syntax: SET HISTOGRAM id [&idb]
   where: id   is the histogram identifier
          idb  is the (optional) secondary identifier

  Defines a default histogram for the `DEPOSIT' command, and fills
  registers 121 - 199 as well as 231 - 257 with information on the
  histogram.  See HELP Numbers for a list of the variables stored.

2 IDB
  Syntax: SET IDB n          (default = 0)

  Changes the default secondary  identifier. All histograms subsequently
  fetched will have this  secondary identifier.  In addition if you omit
  the secondary identifier anytime  you are asked for a plot number, the
  default will be used. Alias for `SET SECONDARY_ID'.

2 IDR
  Syntax: SET IDR n

  Sets the default ROOT histogram identifier. This is used if the ROOT
  identifier string cannot be converted to a number and if the identifier is
  not give with the `ROOT_FETCH' command.
  Alias for `SET ROOT_ID'.

2 IDSHOW
  Syntax: SET IDSHOW ON|OFF|BRIEF|DEFAULT|COMPLETE   (default = DEFAULT)

  Controls whether to  print the histogram  numbers being plotted on the
  picture.  The  `OFF'  mode  turns  off  the  text,  `BRIEF'  shows the
  identifiers  and the  symbols;  `DEFAULT' also  shows the  area,
  mean and r.m.s. for the plot; `COMPLETE' also show the number of
  underflows and overflows.  Alias for `SET HEADER'.

2 IDSIZE
  Syntax: SET IDSIZE size                     (default = 0.3cm)

  Controls the size of  the histogram numbers  if the `IDSHOW' option is
  turned on.

2 IGARC
  Syntax: SET IGARC ON|OFF                     (default = ON)

  Uses the HIGZ IGARC routine for drawing arcs and circles. This
  routine appears to have a bug and sometimes ignores what you set
  for the line thickness and colour.

2 IGTABLE
  Syntax:  SET IGTABLE option [parameters]
  where:   option      is the option for drawing the table
           parameters  are the associated parameters

  Specifies how to draw a 2-D histogram. All `HIGZ IGTABL' modes are
  available: `SCATTER, BOX, ARROW, CONTOUR, COLOUR, TEXT, CHAR,'
  `LEGO, LEGOC1, LEGOC2, SURF, SURFC1, SURFC2, SURFCONT, SURFSHADE'
  with extra options for the coordinate system for `LEGO' and
  `SURFACE' plots: `POL, CYL, SPH, PSD'. Note that the extra `LEGO'
  and `SURFACE' options cannot be abbreviated.

  The parameters such as the minimum and maximum bin numbers and the
  lower and upper limits on the `z' axis are set using the normal
  `SET X|Y|Z LIMIT' commands. The parameters you should give here are
  the lego or surface plots viewing angles, the number of contours,
  the contour distinguishing mode and the `z' values for the contours
  (if required).

  See HELP 2DIM for a fuller description of the options and parmaeters.
  Even more details can be found in the HIGZ manual
!~\cite{higz}.
  Certain features are not in the manual! For example you can specify
  the colours of coloured lego and surface plots by giving the numbers
  of the colours as parameters after the viewing angles.

2 LABEL
  Syntax: SET X|Y LABEL
          text
          x  y  size  angle  option font
      or  SET LABEL X|Y text...
      or  SET LABEL ALL|BOTTOM|TOP|LEFT|RIGHT|VERTICAL ON|OFF|PLOT|PAGE
   where: text    is the axis label
          x,y     are its position relative to the centre of the axis
          size    is the size of the text
          angle   is the angle with respect to the horizontal
          option  can be LEFT   = left adjusted to x,y
                         CENTRE = centred (default)
                         RIGHT  = right adjusted
          font    is the font to use for the text

  Changes or adds a label to an  axis. You will be prompted for the text
  and the position  of the label. If  you want to  specify on which axes
  the labels should be written, use  the `SET LABEL ALL|BOTTOM|TOP' etc.
  command.  `VERTICAL' is the z-axis  in `LEGO' and  `SURFACE' plots. If
  you do not  give a font, it  will be that  chosen with  the
  `SET FONT'  command  (default = 0). To  set or change  the label for a
  particular plot, precede the command with `SET PLOT id [&idb]'.

  The mode `PLOT' will put a label on each plot, whereas `PAGE' will put
  one label on each page, centering  it with respect to the overall plot
  size.

  Using `option' left puts the label aligned with the left-hand or
  bottom edge of the plot and left adjusted. With `option' right it is
  aligned with the right-hand or top edge and right adjusted (as in
  the PAW default).

  For the lego plots axes the offsets for the x and y axes are flipped
  to match the scale offsets. In addition the x and y offsets for the
  y-axis are flipped, so that by default the label will be put at the
  x offset below the centre of the axis.

2 LIMITS
  Syntax: SET X|Y|Z LIMIT low high                   (default =  0 0)
   where: low  is the lower limit on the axis scale
     and  high is the upper limit on the axis scale

  Specifies  the  lower and  upper  limits for the  scale.  To reset the
  limits  back to  default, use the  command  `SET X|Y|Z  LIMIT 0 0'. To
  change the limits for a particular plot, precede the command with
  `SET PLOT id [&idb]'.

  Note that  when you start a  fit all limits get reset.  This means that
  you have to give the command `SET X|Y|Z MODE LOG ...' or
  `SET X|Y|Z LIMIT ...' if you want to get the limits that you were
  using again.

  In addition when you switch to or from a log scale
  (`SET X|Y|Z MODE LOG') the appropriate limits also get reset,
  in order to avoid trying to calculate the log of 0.

  If you want to specify date and/or time limits you must first set
  the plotting mode to `DATE' or `TIME' and then you can give the
  limits in the form `YYMMDD.HHMMSS', `YYMMDD' or `HH:MM'.

  If you want to set or change the limits for fit parameters use the
  command `MODIFY' when inside MINUIT, or `DEPOSIT LOLIMn(m)' and
  `DEPOSIT HILIMn(m)'. See HELP MINUIT MODIFY and HELP DEPOSIT for
  more details.

2 LOG
  Syntax:   SET LOG ON|OFF
  Default:  OFF

  Turns on or off writing all commands typed in at the terminal to a log
  file. The file is called `mn_fit.log'.

  The commmand for a log scale on a plot is `SET X|Y|Z MODE LOG'.

2 LSIZE
  Syntax:  SET LSIZE size                           (default = 0.01)

  Sets the segment size for drawing lines - calls IGSET('BASL',size).
  The segment size is in Normalized Device Coordinates (NDC), which
  means that effectively the size is a fraction of the picture size.

2 MANUAL
  Syntax:   SET MANUAL ON|OFF
  Default:  OFF

  Turns on or off the special logfile syntax for making the Mn_Fit manual.

2 MARGIN
  Syntax: SET X|Y MARGIN size                        (default = 3.0/2.0 cm)

  Sets the offset  of the plot from  the bottom  left-hand corner of the
  picture.

2 MODE
  Syntax:  SET X|Y|Z MODE REAL|INTEGER|LOG|DATE|TIME [low ndecade]
  Default: INTEGER

  Changes the way the  scale is drawn on the x or y axis. For a log scale
  you can give the lower limit and the number of decades that you want to
  plot. The following modes are available:

  REAL    = real numbers
  INTEGER = integer numbers
  LOG     = log scale. You can give the lower limit  and  the  number of
            decades you want to plot.
  DATE    = day of month, with month also printed.
  TIME    = time of day.

  To change  the mode for a  particular  plot, precede  the command with
  `SET PLOT id  [&idb]'.  For  a log scale  with  automatic  scaling the
  nearest decade above and below the calculated plot limits is used.  If
  the lower limit is thus zero, then 3 decades are plotted.

  Note that  when you start a  fit all limits get reset.  This means that
  you have to give the command `SET MODE LOG ...' or `SET X|Y|Z LIMIT ...'
  if you want to get the limits that you were using again.

  In addition when you switch to or from a log scale
  (`SET X|Y|Z MODE LOG') the appropriate limits also get reset, in
  order to avoid trying to calculate the log of 0. `SET Z MODE LOG'
  works for lego and surface plots and when the area of the symbol is
  proportional to the number of entries.

  If you want to specify date and/or time limits you must first set the
  plotting mode and then you can give the limits in the form
  `YYMMDD.HHMMSS' or `HH:MM'.

2 MOUSE
  Syntax:   SET MOUSE ON|OFF
  Default:  OFF

  Turns on or off using the mouse to specify the position of
  comments/keys and items that you draw.
  See HELP COMMENT and HELP KEY for more details. There is also a
  general section on usage of the mouse at the beginning of the Mn_Fit
  manual.

2 NEXT_WINDOW
  Syntax: SET NEXT_WINDOW nx ny
   where: nx is the window number in the x direction
          ny is the window number in the y direction

  Changes the window number for the next plot you make. If you select
  `1 1' the screen will be cleared before the plot is drawn. This can be
  overridden by using the `PLOT/NOCLEAR' command.

2 NORMALIZE
  Syntax: SET NORMALIZE ON|OFF

  Only valid in `MN_CMD>'.

  Turns on or off  an overall  normalization factor  for the function(s)
  you are fitting with.  The parameter will be  called `NORM00' and will
  be the first parameter. This is useful if you want to fit to functions
  of the form:

  NORM00 * (HIST1 + ALPHA*HIST2)

  where `HIST1' and `HIST2' are 2 histograms and `ALPHA' is the relative
  contribution of each.

2 NTUPLE
  Syntax: SET NTUPLE NAME|PLOT|VARIABLE

  Commands for setting options for Ntuples. `PLOT' specifies the
  Ntuple variables to be plotted with the `PLOT/NTUPLE'
  command. `VARIABLE' specifies the extra CWN variables that have to
  be fetched. `NAME' gives the names of Ntuple variables that are used
  in subsequent `HISTOGRAM BOOK' commands.

3 NAME
  Syntax: SET NTUPLE NAME var1,var2,...
  where   var1  is an Ntuple variable name

  Gives a list of variable names that are used for subsequent
  `HISTOGRAM BOOK' commands for Ntuples.

3 PLOT
  Syntax: SET NTUPLE PLOT id[&idb] X|Y|Z var1 [X|Y|Z var2 [...]]
   where: id    is the  Ntuple  identifier  (0 = all Ntuples)
          idb   is the (optional) Ntuple secondary identifier
          var1  is the Ntuple variable name to be associated
                with  the  specified  plot  axis

  Specifies which  Ntuple variables  will be plotted  on which axes when
  using   `PLOT/NTUPLE'  command. As  usual the  Ntuple  variable can be
  specified as a name or a number.

3 VARIABLE
  Syntax: SET NTUPLE VARIABLE var1,var2,...
  where   var1  is an Ntuple variable name or `$CLEAR'

  Gives a list of CWN variable names that should be fetched when a
  projection of a CWN is made. This command is used to list the
  variables that need to be accessed in a COMIS function used to make
  cuts on a CWN.

2 NULL
  Syntax: SET X|Y NULL ON|OFF nsymb             (default = ON)
   where: nsymb  is the symbol number for the line (default = -1)

  Alias for `SET ZERO'. See HELP SET ZERO for more details.

2 OPT_ZERO
  Syntax: SET X|Y|Z OPT_ZERO ON|OFF           (default = ON)

  Turns on or off having 0 as the lower limit for plotting the number of
  entries in a plot. For  1-dimensional histograms  use `SET Y OPT_ZERO'
  and `SET Z OPT_ZERO' for  lego and  surface  plots of  2-dimensional
  histograms.

2 ORDER
  Syntax: SET ORDER X|Y|DX|DY|DNX|DNY|DPX|DPY|DUMMY|DATE...

  Specifies the order of the variables in a file to  be read in with the
  `DAT_FETCH' or `READ DATA' commands. The name `DUMMY' can be used if a
  variable is not to be  read in. The default  order is
  `X Y DNX DNY DPX DPY'. `N'  signifies the  negative error and `P' the
  positive error if you have asymmetric error bars.

  If a variable is time, the following names and formats are supported:

  DATE_TIM     YYMMDD HHMMSS
  DATE         YYMMDD
  TIME         HHMMSS
  DATE_MIN     YYMMDD HHMM
  TIME_MIN     HHMM
  VAXTIME      Char*23 Vaxtime DD-MMM-YYYY HH:MM:SS.SS

  The  old  variable  names  of  `DXN,  DYN, DXP'  and  `DYP'  are still
  recognized, but are not recommended.

3 Examples

!\begin{enumerate}
!\item
!^
  Example 1:
    If I have a series of numbers:
      1.0 3.0 0.8

    which are `X,Y,DY' the command is:
      SET ORDER X,Y,DY

!\item
!^
  Example 2:
    If I have a series of numbers:
      1.0 5.0 8.0 10.0 0.3 0.5 1.0 1.2

    where the first 2 are `x' and `y' and their asymmetric errors are in
    variables 5,6,7,8 the command is:
       SET ORDER X Y DUMMY DUMMY DNX DPX DNY DPY

!\end{enumerate}

2 ORTHOGONAL
  Syntax: SET ORTHOGONAL xlo xhi
   where: xlo  is the lower orthogonality limit
          xhi  is the upper limit

  Sets the  orthogonality  limits for  Chebyshevs and  Legendres. If the
  limits are not set,  they will be taken as  the lower and upper limits
  on the plot(s)  you are fitting.  To restore the  automatic setting of
  limits, `SET ORTHOGONAL 0 0'.

  These limits are also used for evaluating the area under the
  Gaussian, Landau, Breit-Wigner and Crytal Ball functions if the command 
  `SET FUNCTION AREA LIMIT' has been given.

2 PAGER
  Syntax: SET PAGER command

  Changes the command used to invoke the pager. The default pager is
  `TYPE/PAGE' on VMS, `dm' on the Apollo and `more -e' on Unix. If
  the environment variable `PAGER' exists (Unix), this will be used as
  the default edit command.

  The pager is used with the `HELP' command on Unix machines and the
  `DUMP' command.
!^
  If you give the command `SET PAGER ''',
!If you give the command `SET PAGER '\,'',
  then no pager will be invoked.

2 PAPER
  Syntax: SET PAPER type
   where: type  is the paper type A4,A3,A2,A1,A0,Letter,Legal or Ledger

  Sets the paper type for future `HARDCOPY' commands. This command
  must be given before you open the output file:
  set paper letter
  hard post
  close

  The command also works with the `CAPTURE' command. Plots will be
  centred on the paper.

2 PARAMETER
  Syntax: SET PARAMETER detnam values
   where: detnam  is the detector name (ECAL, FBGO, FWCH, FTD or TRD)
          values  are the new values (see subtopics for their meaning)

  Sets parameters for the L3 or ZEUS detector displays. Use the syntax
  `SET PARAMETER detnam' followed by `<CR>' to see the current values.

  As usual to keep the current value of a parameter give an `='.

3 ECAL
  Syntax: SET PARAMETER ECAL mode xlo xhi ylo yhi [nres]
   where: mode    selects the display mode
          xlo     minimum box|crystal number in phi
          xhi     maximum box|crystal number in phi
          ylo     minimum crystal number in theta
          yhi     maximum crystal number in theta
          symbol  is the symbol to use
          nres    is the number of subdivisions for the BGEO display

  There are 2 ECAL displays available. The original is a grid of the
  BGO barrel written by Anne Heavey. A modified version of Vinod
  Gupta's BGEO package is also available. This shows either the +Z or
  -Z side of the BGO in the form of concentric circles.

  Anne Heavey's version is described in the `Barrel' subtopic. The
  following describes the BGEO display mode.

  The command  `SET  PARAMETER' must  precede the  command
  `DISPLAY ECAL  id[&idb]'. The mode for display is given in the form
  `+/-kji' where:

  k = 1   means show the -Z or +Z detector using BGEO.
          It needs a 160x41 2-D histogram or a 160x82 histogram
          or an Ntuple.
  j = 0   means length of side proportional to entries
    = 1   means area proportional to entries
    = 2   means use a log scale with length of side proportional to
          the log of the number of entries
  i = 0   means use line thickness - quicker, but not visible on all
          screens
    = 1   means use filled areas
    = 2   means use a symbol for each crystal with an entry.

  Lower and upper limits in theta can be set for the BGEO
  display, but the only allowed combinations are:
  -41  -1 (-z)           or     1 41 (+z)
  -41 -25 (-z endcap)    or    25 41 (+z endcap)
  -24  -1 (-z barrel)    or     1 24 (+z barrel)

  If you have a 2-D histogram with all the BGO detector, i.e. 160x82,
  you must give the theta range to show. For an Ntuple you must also
  give the theta range.

  If the data are in the form of a 2-D histogram it should always
  have 160 bins for the x-axis. If the crystal number in theta is `it',
  the y-axis should be booked and filled with one of the following
  ranges:
   41 bins   0.0 -> 41.0      Fill with float(iabs(it))-0.5
   82 bins -41.0 -> 41.0      Fill with sign(float(iabs(it))-0.5,it)
   83 bins -41.0 -> 42.0      Fill with float(it)+0.5
   84 bins -42.0 -> 42.0      Fill with sign(float(iabs(it))+0.5,it)

  In the case of 83 bins, the 42nd bin will be ignored. In the case of
  84 bins the 42nd and 43rd bin will be ignored.

  If the data is in the form of an Ntuple, the Ntuple must have 2 or 3
  variables in the order phi, theta (energy). If your Ntuple has more
  variables or a different order use the `NTUPLE PROJECT' command to
  get the right number and order.

  The BGO detector is divided into 16 boxes in phi, and you can select
  which box(es) you want to display. Box 1 starts at crystal phi=2 in
  the barrel and phi=1 in the endcap.

  A positive number for the mode means averages will be calculated for
  the display. A negative number means totals will be
  calculated.

  For modes i=0,1 a colour code is used to distinguish the value of each
  crystal. It is evaluated as a fraction of the allowed range:

  0.00 -> 0.25   Black
  0.25 -> 0.50   Blue
  0.50 -> 0.75   Green
  0.75 -> 1.00   Red

  The lower and upper limits can be set using the `SET Z LIMIT'
  command.

  For mode 2 a symbol is drawn for each crystal with an entry above
  the lower limit. The symbol size is set with the `SET SSIZE'
  command and the colour with the `SET COLOUR SYMBOL' command.

  The BGEO display can be combined with the ECAL database interface to
  plot database entries in a more useful form than just as histograms.
  The display also fills HBOOK histograms 98001-98016 for each readout
  box and 98100 with all the data in a 1-dimensional histogram. You
  can use the command `HB_MN_FIT' to copy these histograms into
  Mn_Fit memory and then plot them.

  For the BGEO display the following `SET' commands can be used to
  control the frame etc:

  SET FRAME BOTTOM ON|OFF    Turns on/off drawing of the box boundaries
  SET FRAME LEFT   ON|OFF    Turns on/off drawing of the ring boundaries
  SET LABEL BOTTOM ON|OFF    Turns on/off printing -Z or +Z label
  SET LABEL TOP    ON|OFF    Turns on/off printing of phi and theta numbers
  SET SCALE BOTTOM ON|OFF    Turns on off mean or total values for
                             each quadrant and all crytals
  SET SCALE LEFT   ON|OFF    Turns on/off mean or total values for
                             each box

  The sizes of the text are 2/3 of the corresponding `LABEL' or
  `SCALE' sizes, except for the `-/+Z' label which is drawn with the
  title size. The thicknesses and colours of the lines or text are
  also set with the corresponding `SET COLOUR' or `SET THICKNESS'
  commands, except for the ring boundaries whose colour and thickness
  is set using the `SET COLOUR|THICKNESS ZERO_LINE' command.

4 Barrel
  Syntax: SET PARAMETER ECAL mode xlo xhi ylo yhi
   where: mode  10     displays a status histogram using a color scale
                21-24  displays a 2-D histo using a color scale:
                         21 for energy
                         22 for ADC
                         23 for number of events
                         24 for temperature
                   -2 displays a 2-D histo as a table with (real) values
                      printed in the grid squares
          xlo   minimum crystal number in phi that you choose to display
          xhi   maximum crystal number in phi
          ylo   minimum crystal number in theta
          yhi   maximum crystal number in theta

  This mode is only able to display the barrel and because of that has
  mostly been superceded by the BGEO display. However some of the
  options are still not fully implemented in the BGEO display,
  e.g. the status display.

  For `mode =  10' there are specially  filled 2-D histograms
  in `ECAL$HIST:ECAL0000.HFILE', directory: `ECAL/DETECTOR_STATUS'.

  For modes 2  and -2, 2-D  histograms  can be found  in the directory
  `ECAL/DATA'. `xlo' and `xhi' (the  phi values) should be between 1 and
  160  inclusive,  and  `ylo' and  `yhi'  (the theta  values)  should be
  between  -24 and -1,  and 1 and  24. `xhi >  xlo' and  `yhi > ylo' are
  expected. The y region  to be displayed may  span the two regions, for
  example  `ylo=-12, yhi=12'  is  acceptable. Entering 0  for any of the
  four last  parameters  yields the default  value, which  for `xlo' and
  `ylo' is the lowest crystal number for which the histogram was booked,
  and for `xhi' and `yhi' is the highest.

4 Examples

!\begin{enumerate}
!\item
!^
  Example 1:
    Get the -Z detector low energy pedestal widths and compare them
    with the previous entry in the database. Plot the difference in
    MeV (note the database stores the entries in uV and the
    conversion factor is 1 MeV = 50 uV):
      set idb 2
      ! The first 2 zeros mean get all channels, the 3rd means get the
      ! data for now.
      database db_snap/noplot //dbec/electronics/beam/pedestals 0 0 0 d 102
      zscale 98767 988767&12 0.02
      set default
      set
        y psize 25
        y size 21
        wind 1 2 0 0
        y wmarg 4
        y wsize 17
      endset
      set par ecal 111
      disp ecal 98767&12
      hb_mn_fit
      set y wmarg 0
      set y wsize 4
      plot 98100


!\end{enumerate}

3 FBGO
  Syntax: SET PAR FBGO mode side sector emin emax
  where:  mode   can be -3 -> 4           (default = 1)
                 -5   Floating point numbers (value and error) (F7.3)
                 -4   Integers (value and error)
                 -3   Status (Integers -9 -> 9)
                 -2   Floating point numbers (F7.3)
                 -1   Integers
                  1   Traffic light -9 -> -1 red
                                     0 ->  0 no colour
                                     1 ->  7 red
                                     8 ->  9 yellow
                  2   Energy colour scale
                  3   Status in colour
                  4   Trapezia with area proportional to energy
                      (default scale is 0 -> 50)
                  5   Trapezia with area proportional to energy
                      (default scale is 0 -> maximum number of entries)
                  6   Trapezia with area proportional to energy, not filled
                      (default scale is 0 -> 50)
                  7   Trapezia with area proportional to energy, not filled
                      (default scale is 0 -> maximum number of entries)
                  8   Trapezia with area proportional to energy
                      Filled if > emin, not filled if < emin
                      (default scale is 0 -> maximum number of entries)
          side    Side to show,
                  0 means show -z and +z sides  (default)
                  1 means -z
                  2 means +z
          sector  sector number to show
                  0     means show all sectors      (default)
                  nnss  means show nn sectors starting at sector ss
          emin    is the minimum energy to show (default = 0)
          emax    is the maximum energy (default = 50 - modes 4,6
                                                 = max # entries - others)

  Sets the parameters for the forward luminosity monitor display. The
  colour of the frame can be set with `SET COLOUR FRAME', that of the
  contents with `SET COLOUR SYMBOL', that of the title and `+Z, -Z'
  indicators with `SET COLOUR TITLE' and that of the sector numbers
  with `SET COLOUR SCALE'.  The size of the `+Z, -Z' labels is
  controlled with the `SET TSIZE' command. The size of the sector
  numbers can be controlled with `SET USIZE', of the text with the
  contents with `SET SSIZE'. The font for the title is set with the
  `SET FONT TITLE nfont' command, that of the sector numbers with
  `SET FONT SCALE nfont'. This font is also used for the contents.
  The key colours and fonts are the same as those for `COMMENTS'. The
  line thickness can be set in the same way as the colours using the
  `SET THICKNESS' commands.  The font used for the symbols can be set
  using the `SET SYMBOL FONT' command. The frame can be turned on or
  off using the `SET FRAME' command and the sector labels can be
  turned on or off using the `SET X SCALE' command.  The format used
  for modes -2 and -5 can be controlled by using the number of digits
  and the number of decimal places in the `SET X SCALE' command.

3 FSIL
  Syntax: SET PAR FSIL mode side layer sector
  where:  mode   can be  1
          side    Side to show,
                  0 means show -z and +z sides
                  1 means -z
                  2 means +z
          layer   is the layer number to show
          sector  is the sector number to show
                  0 means show all sectors
  Defaults: 1 0 0 0

  Sets the parameters for the  forward luminosity monitor silicon strip
  display. The default is to show all wafers. Switching on and off of
  the frame etc. and also the colours, fonts and line thicknesses are
  controlled in a way very similar to the FBGO display.

3 FWCH
  Syntax: SET PAR FWCH mode side chamber strip emin emax
  where:  mode   can be  -1 -> 4           (default = 1)
!                 -3   Status (Integers -9 -> 9)
!                 -2   Floating point numbers (F8.4)
                 -1   Integers
                  1   Traffic light -9 -> -1 red
                                     0 ->  0 no colour
                                     1 ->  7 red
                                     8 ->  9 yellow
                  2   Pulse height colour scale
                  4   Hatching scale
          side    Side to show,
                  0 means show -z and +z sides
                  1 means -z
                  2 means +z
          chamber is the chamber number to show
          strip   is the strip type to show
                  0 means show all strips
                  1 means r strips
                  2 means phi strips
                  3 means x strips
                  4 means y strips
          pmin    is the minimum pulse height
          pmax    is the maximum pulse height
  Defaults: 1 0 0 0 0.0 60.0

  Sets the parameters for the  forward luminosity monitor planar chamber
  display. The  default is to show  all 8 chambers  and all strip types.
  Note that chambers 1 and 2 have  strip types 3 and 4, and 3 and 4 have
  strip types 1 and 2.

  The colour  code is blue,  green,  yellow, orange,  red, where blue is
  below the limit set and red is  above. Similarly hatching increases in
  intensity, blank means below limits and solid means above the limits.

  Note that modes -3,-2 and 3 have not yet been implemented.

3 FTD
  Syntax: SET PAR FTD mode chamber layer
  where:  mode     Viewing mode - the various parts can be combined
                   Front view:
                    1 VC tracks
                    2 FTD segments
                    4 FTD LTEs
                   Side view:
                    101 VC tracks
                    102 FTD segments
                    104 FTD LTEs
                    108 FTD hits
                    111 VC tracks + FTD hits
                    112 FTD segments + FTD hits
                    114 FTD LTEs + FTD hits
          chamber  The chamber number
                   1,2,3 mean FTD1, FTD2, FTD3
                   4 means RTD
          layer    is the layer number to show (not yet implemented)
  Defaults: 3 0 0

  Sets the parameters for the ZEUS forward tracking chambers. The
  default is to show the extrapolated VC tracks and the FTD segments.
  It is also possible (but not yet implemented) to show the LTEs. The
  `mode' controls what is shown. A bit pattern is used:

  Bit 0: VC tracks
      1: Segments
      2: LTEs
      3: Hits

  Thus mode 3 means show the VC tracks and the segments.

  If you specify `chamber 0' all chambers are shown in a 2x2
  display (only front view). Otherwise only a single chamber is shown.

  You can use the `SET X|Y LIMIT' commands to show only part of the
  detector. However this only works if you are displaying a single
  chamber. The default limits are -100 to +100cm for the front view
  mode. The default limits for the side view:

            FTD     x-axis      y-axis( in cm)
             1      0 to 140    -71.25 to 71.25
             2      0 to 182.5  -91.25 to 91.25
             3      0 to 217.5  -108.75 to 108.75

  The colour of the frame can be set with `SET COLOUR FRAME' (only front
  view), that of the contents with `SET COLOUR SYMBOL', that of the
  title and detectors with `SET COLOUR TITLE'. The size of the `FTDn'
  labels is controlled with the `SET TSIZE' command, that of the symbols
  with `SET SSIZE'. The font for the title is set with the
  `SET FONT TITLE nfont' command.
  This font is also used for the contents.
  The key colours and fonts are the same as those for `COMMENTS'. The
  line thickness can be set in the same way as the colours using the
  `SET THICKNESS' commands.  The frame can be turned on or off using
  the `SET FRAME' command.

3 TRD
  Syntax: SET PAR TRD mode chamber ancat
  where:  mode     Viewing mode - the various parts can be combined
                    1 Wires hit - XY view
                    2 Clusters - XY view
                   10 VC tracks
                   20 FTD segments
          chamber  The chamber number
                   1,2,3,4 mean TRD1, TRD2, TRD3, TRD4
          ancat    1 means show the anodes
                   2 means show the cathodes
                   3 means show both
  Defaults: 1 0 3

  Sets the parameters for the ZEUS transition radiation detectors. The
  default is to show the hit wires. At the moment showing the clusters
  gives the same picture, as a side view has not yet been implemented.
  The extrapolated VC tracks and the FTD segments can also be shown,
  assuming that you have a combined Ntuple. In order to show the VC
  tracks and FTD segments use the same bit pattern as for the FTD
  display multiplied by 10:

  Bit 0: VC tracks
      1: Segments
      2: LTEs

  Thus mode 31 means show the VC tracks and the segments overlayed on
  the TRD. For the VC tracks the extrapolated hit positions in TRD1 and
  2 are taken as a linear extrapolation between those in FTDs 1 and 2,
  while for TRDs 3 and 4 they are between FTDs 2 and 3. For the
  segments the slope and position of the segments are used to
  extrapolate linearly to the relevant TRD. (26.08.97 This is not yet
  the case, but is being worked on!).

  If you specify `chamber 0' all chambers are shown in a 2x2
  display. Otherwise only a single chamber is shown.

  You can use the `SET X|Y LIMIT' commands to show only part of the
  detector. However this only works if you are displaying a single
  chamber. The default limits are -100 to +100cm.

  The colour of the frame can be set with `SET COLOUR FRAME', that of
  the contents with `SET COLOUR SYMBOL', that of the title and
  detectors with `SET COLOUR TITLE'.  The size of the `TRDn' labels is
  controlled with the `SET TSIZE' command, that of the symbols with
  `SET SSIZE'. The font for the title is set with the
  `SET FONT TITLE nfont' command.
  This font is also used for the contents.
  The key colours and fonts are the same as those for `COMMENTS'. The
  line thickness can be set in the same way as the colours using the
  `SET THICKNESS' commands.  The frame can be turned on or off using
  the `SET FRAME' command.

2 PATH
  Syntax: SET PATH [+]dir1, dir2
          dir3, ...
  where   dir  are the directory names to be include in the path.

  Sets a list of directories that are used when trying to open
  existing files, e.g. macros. When trying to open a file Mn_Fit first
  tries the filename exactly as given with `~' and environment
  variable expansion. It then loops over the list of directories to
  see if the file exists in one of them. You must include the `/' at
  the end of the directory name on Unix machines. The default list of
  directories is:
    $HOME/mnf/, $MN_FIT/help/        (Unix)
    mn_fit_help:                     (VMS)

  This means that you can execute the demonstration macros etc. by
  just giving the command, e.g. `exec symbol', independent of the
  directory you are in. You can also collect useful macros in a single
  directory, e.g. `$HOME/mnf'.

  You can add directories to the current path by prefixing the first
  directory name with a `+'.

  In the case of files such as COMIS functions which may or may not
  exist already, a loop is first made over the `PATH'. If no existing
  file is found the working directory (`WDIRECTORY') is added as a
  prefix.

  A `<CR>' terminates the list of directories. If you set the path in
  a macro do not forget to include an empty line after the list.

  Note that filename completion no longer works if the file is not in
  the current directory. If you give a filename of the form `./file'
  (Unix) then the path search will not be executed.

2 PATTERN
  Syntax: SET PATTERN npattern
   where: npattern  is the pattern number

  Set the pattern number to use for plots.

  Warning: This command  only works with the HIGZ version of Mn_Fit, and
  the  patterns  available are  device  dependent. The  pattern is drawn
  every 250 points of  the area you are  filling. This means that if you
  try to make a pattern  under a function, you  will get a vertical line
  every 250  points. This  seems to be  built into at  least the GKSGRAL
  version of GKS, and I do not know how to avoid it.

  Pattern 100  means solid fill and  pattern 200  means hollow fill. For
  the Vaxstation and Postscript,  numbers 1 to 99 are also available. If
  you try to set any other value, it will be reset to 1, as DECGKS blows
  up for an  invalid pattern  number. Note  that the  current version of
  DECGKS gives  different  patterns for the  same pattern  number on the
  Vaxstation and in a Postscript file.

  Note that the area  under a pattern is not  visible. The space between
  hatch lines is  visible, so if you  overlay a plot  with a hatch, then
  the plot below can be seen.

2 PI
  Syntax: SET PI ON|OFF                 (default = OFF)

  Turns on or off using pi as a symbol for the scale. This is useful
  if you make plots in radians and want to have an easy to understand
  scale.

2 PLOT
  Syntax: SET PLOT id [&idb]
   where: id  is the plot identifier
          idb is the (optional) secondary identifier

  Specify which plot the following `SET' command applies to. If you give
  `id=0', the command applies to all plots currently being displayed and
  also to subsequent  plots; otherwise, it only  applies to the plot you
  specified. If you want to change  something on a plot you have already
  made, you must use this form and then issue the `REDRAW' command after
  you have made your changes to see the effect of them.

2 PSIZE
  Syntax: SET X|Y PSIZE size               (default = 19.5/20.5 cm)

  Sets the overall size of the picture, i.e. histogram size plus margins
  each side of the histogram.

2 RATIO
  Syntax: SET RATIO ON|OFF                 (default = ON)

  Only valid in `MN_CMD>'.

  Turns on or off using the ratio  of the areas under each function when
  fitting  more than  1 plot.  With the  option  `OFF', the  area of the
  function  under each  plot is used  as a  fitting  parameter. With the
  option `ON' the first  parameter is the total  area, the second is the
  fraction  of the total  area under  the first  plot, the  third is the
  fraction of  the total area  under the  second plot  etc. For the last
  plot  being fit the  area  used is what  is left  over from  the other
  plots.

2 RECL
  Syntax: SET RECL n

  Sets the   record length for  HBOOK version  4 direct access  files. The
  default  is  1024  words. Changing this   affects  both the `FETCH'  and
  `STORE' commands.

2 REDRAW
  Syntax:  REDRAW

  Alias for `REDRAW' so that you can `REDRAW' without exiting `SET'.
  See HELP REDRAW for more details.

2 ROOT_ID
  Syntax: SET ROOT_ID n

  Sets the default ROOT histogram identifier. This is used if the ROOT
  identifier string cannot be converted to a number and if the identifier is
  not give with the `ROOT_FETCH' command.
  Alias for `SET IDR'.

2 ROTATION
  Syntax:   SET ROTATION angle
  where:    angle  is the angle to rotate a plot by

  Rotates a plot - not yet fully implemented.

2 SCALE
  Syntax:   SET X|Y SCALE
            x, y, size, angle, ndigit, ndecimal, factor, font
      or    SET SCALE X|Y x, y, ...
      or    SET SCALE ALL|BOTTOM|TOP|LEFT|RIGHT|VERTICAL ON|OFF
   where:   x,y      are the position of the scale relative to the
                     point where the tick crosses the axis
            size     is the size of the scale numbers
            angle    is the angle with respect to the horizontal
            ndigit   is the maximum number of digits before switching
                     to exponential mode (e.g. 1.0*10-4)
            ndecimal is the number of decimal places to display
                     -1 means the program will set ndecimal
            factor   is a multiplication factor the scale
            font     is the font to use for the scale
  Defaults: x axis  0.0, -0.6, 0.4, 0.0, 5, -1, 0, 0
            y axis -0.2,  0.0, 0.4, 0.0, 6, -1, 0, 0
            z axis -0.2,  0.0, 0.4, 0.0, 6, -1, 0, 0

  Changes the position, size or way in which the scale is shown, or sets
  up where you  want the scale put.  `VERTICAL' is  the z-axis in `LEGO'
  and `SURFACE' plots. The default is just to put it on the bottom, left
  and vertical axes. For  an overlayed plot  with a different scale, the
  scale  will be  put on  the  right  axis. To  change  the  scale for a
  particular plot, precede the command with `SET PLOT id [&idb]'.

  For the y-axis of a lego or surface plot the x and y offsets are
  flipped, as the scale should be vertically below the tick. The
  scales are also offset by the scale text size and the big tick size.

  Use the command `SET X|Y|Z MODE' to change the numbering of the
  scale. To get a log scale for example use the commmand
  `SET X|Y|Z MODE LOG'.

2 SECONDARY_ID
  Syntax: SET SECONDARY_ID n          (default = 0)

  Change the default  secondary identifier. All  histograms subsequently
  fetched will have this  secondary identifier.  In addition if you omit
  the secondary identifier anytime  you are asked for a plot number, the
  default will be used. Alias for `SET IDB'.

2 SHOW_ZERO
  Syntax: SET SHOW_ZERO ON|OFF        (default = ON)

  Controls showing zero points which also have zero errors.

2 SHELL
  Syntax:   SET SHELL command
  where:    command  is the shell command
  Defaults: command = $SHELL

  Sets the shell used by the `SPAWN' or `SHELL' commands.
  This option applies to Unix machines. Examples of `command' are
  `/com/sh,  /bin/sh,  /bin/ksh,  /bin/csh, /bin/tcsh'. The  shell
  given by the command will be invoked when `SHELL' or `SPAWN' is given.

2 SIGNAL
  Syntax: SET SIGNAL nfun1 [nfun2...]

  Specifies which of the functions you have defined should be considered
  as signal when you do a background subtraction. `nfun1 = 0' means that
  they are all signal. When you add  a new function, it is defined to be
  signal by default. If you have not  given the `SET BACKGROUND' command
  or you  specify  that all the   functions are  signal and  then give a
  `BACK_SUB'  command or set the  `DISPLAY' mode to  2, 3, -2 or -3, you
  will be prompted for which of the functions are background.

2 SIZE
  Syntax: SET X|Y SIZE size                 (default = 15.0/15.0 cm)

  Alias  for  `SET  HSIZE'.  Sets the  size of  the  plot in  the x or y
  direction.  To  change the  size for a   particular plot,  precede the
  command with `SET PLOT id [&idb]'.

2 SSIZE
  Syntax: SET SSIZE size                    (default = 0.3cm)

  Sets the size of the symbols in  the picture. To change the size for a
  particular plot, precede the command with `SET PLOT id [&idb]'.

2 STATISTICS
  Syntax:   SET STATISTICS MN_FIT|HBOOK
  Default:  MN_FIT

  Specifies whether Mn_Fit or HBOOK statistics will be used to calculate
  the means and sigmas  of histograms. The  option only applies to 1-D
  HBOOK  histograms. This  option is useful  if you  calculate the HBOOK
  mean  and   sigma  from  the  HFILL  calls   using  the  option
  `CALL HIDOPT(ID,''STAT'')'.

2 SYMBOL
  Syntax:   SET SYMBOL n
  where:    n  is the symbol number
  Default:  n = 0

  For each type of plot a default symbol is defined (which you
  get if you give the command `SET SYMBOL 0'):
  Symbol  1 for 1-D histograms
         -1 for a series of points without errors
        -32 for a series of points with errors
         12 for 2-D histograms
          1 for scatter plots

  Note that histograms always get converted to a series of points when
  fitting, so the default symbol for `DISPLAY' is always -32.

  To get a picture of the available symbols issue the command
  `exec $MN_FIT/help/symbol.mnf' (Unix) or
  `EXEC MN_FIT_HELP:SYMBOL.MNF' (VMS).
  This picture is in Appendix B of the Mn_Fit manual.

  In  HIGZ/GKS versions  hatching  and patterns  are  available. You can
  specify the type using the commands `SET HATCH' and `SET PATTERN'.
  See HELP SET HATCH  for details on some of  the hatching available and
  the figures  in Appendix B.  Also see the  HIGZ/PAW documentation for
  HIGZ hatchings, and the GKS device documentation. As far as I know
  patterns are only available with DECGKS.

  The following symbols are available for histograms:
    -1        Solid line joining the centres of the bins
    -2        Dashed line joining the centres of the bins
    -3        Dotted line joining the centres of the bins
    -4        Dash-dot line joining the centres of the bins
    -5        HIGZ line style 12 - a dashed line
    -6        HIGZ line style 13 - a dash-dot line
    -7        HIGZ line style 14 - a widely spaced dotted line
    -8        HIGZ line style 15 - a dotted line
     1        Solid line histogram mode
     2        Dashed line histogram mode
     3        Dotted line histogram mode
     4        Dash-dot line histogram mode
     5        HIGZ line style 12 histogram mode
     6        HIGZ line style 13 histogram mode
     7        HIGZ line style 14 histogram mode
     8        HIGZ line style 15 histogram mode
    10        Dot
    11        Circle
    12        Square
    13        Triangle
    14        Inverted triangle
    15        Diamond
    16        Plus  (+)
    17        Cross (x)
    18        Asterix (*)
    19        Octogon (used to be 11)
    20-29     Show x error bars for histograms
    30-39     Show y error bars
    40-49     Show x and y error bars
    60-69     Show x error bars with line at end (symbol size, SET SSIZE)
    70-79     Show y error bars with line at end (symbol size, SET SSIZE)
    80-89     Show x and y error bars with line at end (symbol size, SET SSIZE)
    -n        Show symbol filled

  The following symbols are available for scatter plots:
    -1        Joins the points with a solid line
    -2        Joins the points with a dashed line
    -3        Joins the points with a dotted line
    -4        Joins the points with a dash-dot line
    -5        HIGZ line style 12 - a dashed line
    -6        HIGZ line style 13 - a dash-dot line
    -7        HIGZ line style 14 - a widely spaced dotted line
    -8        HIGZ line style 15 - a dotted line
     1-10     One dot per point
    10-19     As for histograms
    20-49     As for 10-19
    -n        Show symbol filled

  The following symbols are available for 2-dimensional histograms:
    -1        .,1,2,3,...X,Y,Z
    -2        Number of entries i.e. table form
     1-10     Randomized dots, where the number of dots is equal to
              the number of entries
    10-19     Area of symbol is proportional to number of entries in
              the bin
    20-49     As for 10-19
    -n        Show symbol filled


  If the minimum weight is negative and the maximum weight is positive
  for 2-D histograms and you use a symbol number greater than 10 or
  less than -10 you will get the symbol for positive weights and its
  inverse for negative weights. This mode is also used for displaying
  the result of a 2-D fit. This mode is only used if either the lower
  or upper plotting limit is 0.0. Use the `SET Z LIMIT' command to set
  the limits. Otherwise only those entries within
  the specified range are shown.

  2-D histograms can also be plotted using the `LEGO' or `SURFACE'
  commands or preferably using the interface to the HIGZ IGTABL
  routines, `2DIM' or `IGTABLE'.

  I use the  HIGZ circle routine to draw  circles. It is also possible
  to  use large dots (symbol 10   or -10) and  set  the dot scale size
  using the `SET DSIZE' command. A scale factor of 10 or 20 is usually
  good. Note  that   you only see the  big   dots when you  print  the
  picture.

  To change the symbol for a particular plot, precede the command with
  `SET PLOT id [&idb]'.

2 TEXT
  Syntax: SET TEXT ON|OFF               (default = ON)

  Controls whether the header text with the fit results is shown on your
  screen device. Use the command `SET HEADER' if you want to change it
  for hardcopies also.

2 THICKNESS
  Syntax: SET THICKNESS [item] thick                     (default = 1.0)
   where: thick  is the scale factor to increase the line width by

  Changes the  thickness of  the lines on a picture  (only works in HIGZ
  version) To  change the pen width  for a particular  plot, precede the
  command with `SET PLOT id [&idb]'.

  If you omit the item, all line thicknesses will be changed.
  The following items are valid:

  FRAME               TICK                SCALE
  LABEL               HEADER              TITLE
  SYMBOL              ZERO_LINE           COMMENT

  Note that you may not see the effect of the thickness on the screen.
  Postscript lines are usually very thin and a thickness factor of 3 or 4
  looks a lot better, with 6 or so for the frame thickness.

2 TICKS
  Syntax: SET X|Y TICK
          ntick, nbtick, notick, size, bigsize, xtlo, xthi
      or  SET TICK X|Y ntick, nbtick, ...
      or  SET TICK ALL|BOTTOM|TOP|LEFT|RIGHT|VERTICAL [INSIDE|OUT] ON|OFF
   where: ntick   is the number of ticks
          nbtick  is the number of ticks per big tick
          notick  is the offset of the first big tick from the
                  first tick
          size    is the tick size (default=0.25cm)
          bigsize is the big tick size (default=0.5cm)
          xtlo    is the lower limit for drawing ticks
          xthi    is the upper limit for drawing ticks

  Specifies exactly how many, what size and where the ticks should start
  or stop,  or on which  axes and  which side  of the axes  you want the
  ticks. To set back to automatic  tick calculation and limits, give the
  command `SET TICK 0'. Unless you  specify `xtlo' and `xthi', they will
  be calculated automatically.

  To  specify where you  want the  ticks, use  the `SET  ALL|BOTTOM|TOP'
  form. If you omit the  `INSIDE|OUTSIDE' option, the specification will
  apply to both sides. `VERTICAL' is  the z-axis in `LEGO' and `SURFACE'
  plots. The default is to put them  on the inside of all 4 sides of the
  plot. For the  vertical axis, they  are put on the  outside. To set or
  change the ticks for a particular  plot, precede the command with
  `SET PLOT id [&idb]'.

3 Examples

!\begin{enumerate}
!\item
!^
  Example 1:
  This series of commands will give you ticks on the lower and left axes,
  with the ticks going through the axis and ticks on the top axis:

    SET TICK ALL OFF
    SET TICK BOTTOM ON
    SET TICK LEFT   ON
    SET TICK TOP INSIDE ON

!\end{enumerate}

2 TIME
  Syntax: SET TIME mode reference
   where: mode       is the units in which to store the data
          reference  is the reference time (T=0)

  Sets the mode for  storing data vs. time and  the reference time to be
  used. The mode can be `DAY'  (default), `HOUR', `MINUTE', or `SECOND'.
  The reference time must be given in the form `YYMMDD.HHMMSS'. Give a
  time of 0 if you do not want to have a reference time.

  Use the `SET X|Y|Z MODE DATE|TIME' commnd to show the scale in
  date or time format.

2 TITLE
  Syntax: SET TITLE USER|GLOBAL title
      or  SET TITLE DEFAULT|ON|OFF
      or  SET TITLE POSITION  [xoff yoff size angle option font]
      or  SET TITLE GPOSITION [xoff yoff size angle option font]
   where: title   is an overall title
          xoff    is the x position of the title
          yoff    is the y position of the title
          size    is the character size for the title
          angle   is the angle of the title
          option  can be LEFT, CENTRE, or RIGHT adjusted
          font    is the text font to use
  default is 0.0 0.4 0.4 0.0 CENTRE 0

  Controls whether to display the plot title or not, or whether you want
  to give a user title to all plots. A user title is put at the top of
  the picture by default and if it is shown the individual plot titles
  are not. A global title is also put at the top of the picture, but the
  individual plot titles are shown inside the plot.  `SET TITLE POSITION'
  controls the position of title, which is relative to the top
  centre of the plot, and the font used for it.  `SET TITLE GPOSITION'
  controls the position of the global and/or user title, which is
  relative to the top centre of the plot, and the font used for it. To
  change whether the title is drawn or its position for a particular
  plot, precede the command with `SET PLOT id [&idb]'.

  Note that if the title size is set to default and you have more than 1
  plot per page (`WINDOW' command), the title size for the individual
  histograms is scaled down. To turn off this option use the
  `SET AUTOSCALE' command.

2 TKTCL
  Syntax: SET TKTCL ON|OFF                   (default =  OFF)

  Turns on/off the TK/TCL interface for Mn_Fit. At present this only
  involves sending a special string at the end of any output.

2 TSIZE
  Syntax: SET TSIZE value                   (default = 0.4cm)

  Changes  the  size  of the   title. To  change  the  title  size for a
  particular plot,  precede the  command with `SET  PLOT id [&idb]'. You
  can also use the `SET TITLE POSITION' command to do this.

2 USIZE
  Syntax: SET USIZE value                   (default = 0.3cm)

  Controls the  size of the smaller  text in the fit  display. To change
  the size for a particular plot,  precede the command with
  `SET PLOT id [&idb]'.

2 WAIT_CR
  Syntax: SET WAIT_CR ON|OFF                   (default =  ON)

  Turns on/off  the request for a  `<CR>' before making  the next picture.
  This   command is  most   useful if  you  send  the  output to  a file
  (Postscript) directly without putting it on the screen. It is also
  useful if you want to put up a new plot every so often and use it
  in conjunction with the `WAIT' command.

2 WINDOW
  Syntax: SET WINDOW nwindx nwindy
          wx, wy
      or  SET PLOT id [&idb] WINDOW nx ny
   where: nwindx  are the number of windows in the x direction
          nwindy  are the number of windows in the y direction
          wx      is the separation of the windows in the x direction
          wy      is the separation of the windows in the y direction
          nx      is the window number in the x direction
          ny      is the window number in the y direction

  This command enables  you to put more than  one plot on each page. The
  plot (overall size specified with  `SET X|Y HSIZE') is divided up into
  `nwindx' by `nwindy'  windows with  separations `wx, wy' between them.
  All the plots will be drawn with  the same size on the page. To change
  the size  or  position of a  plot in a  window,  use the
  `SET PLOT id [&idb] WMARGIN or WSIZE' commands.

  If the tick, title, scale and label sizes are default then they will
  be automatically rescaled if you use more than one window.

  If you give 0 separation, the  scale for plots other than the leftmost
  or bottom one will be suppressed.  You can turn it back on again after
  you have made a  picture using the syntax  `SET PLOT id SCALE LEFT ON'
  etc.

  In addition, if the last big tick corresponds to the right or top
  of the plot (and it is not the  rightmost or top plot), the number for
  the scale will not be drawn. This can be turned off with the
  `SET AUTOTRIM OFF' command.

  If you want  to change the  window  number of a plot  you have already
  made, use the `SET  PLOT id [&idb] WINDOW'  command. To set the window
  number for a  plot you are  about to  make, use the  `SET NEXT_WINDOW'
  command.

  If you change the windowing the next plot will be put in window 1,1 by
  default. Use the `SET NEXT_WINDOW' command to change this.

  If you plot Ntuple projections in windows with different cuts, but
  with the same secondary identifier you will usually get a surprise
  when you make a `HARDCOPY' or `REDRAW'. This is because these
  commands repeat the commands used to make the plots, thus you will
  get the same hisotgram plotted several times. It is therefore better
  to give a different secondary identifer to each projection that has
  different cuts.

3 Examples

!\begin{enumerate}
!\item
!^
  Example 1:
    This example shows how to manipulate windows and move plots around within
    a window:

      SET WINDOW  2 2 2.0 0  !Split the plot into 4 windows with no
                             !separation in the y direction
      PLOT 1
      PLOT 2
      SET WINDOW  1 2 = =    !Change to 2 windows so the bottom plot
      SET NEXT_WINDOW 1 2    !will go across the full page
      PLOT 3
      SET PLOT 2 X WMARG 1.0 !Move plot 2 1cm over
      SET PLOT 2 Y WSIZE 5.0 !Make plot 2 5cm wide in x.
                             !Its original size was
                             !(15(HSIZE) - 2.0(WX)) / 2(NWINDX) = 6.5cm
      REDRAW                 !Look at the new picture

!\end{enumerate}

2 NO_WINDOW
  Syntax: SET NO_WINDOW

  Turns off any windowing. All tick, title, label and scale sizes that
  may have been rescaled will be set back to default.

2 WMARGIN
  Syntax: SET X|Y WMARGIN size          (default = 0.0/0.0 cm)

  Sets the offset of the histogram from the bottom left-hand corner of
  the window defined by the x and y margins. To change the size for a
  particular plot, precede the command with `SET PLOT id [&idb]'.
  Normally the margin is set to 0 inside the window. Issue this
  command after the window command. You can also use it in connection
  with the `PLOT/NOCLEAR' command to make inserts.

2 WORKING_DIR
  Syntax: SET WORKING_DIR dirname
  where   dirname  is the directory name

  Alias for `WDIR'.
  Sets the working directory name to `dirname'. If you then try to
  open a file without a directory name `dirname' will be prepended.

2 WSIZE
  Syntax: SET X|Y WSIZE size

  Changes the size of the plot inside a window in the x or y
  direction.  To change the size for a particular plot, precede the
  command with `SET PLOT id [&idb]'. Normally the size is calculated
  automatically from the number of windows.  Issue this command after
  the window command. You can also use it in connection with the
  `PLOT/NOCLEAR' command to make inserts.

2 ZERO
  Syntax: SET X|Y ZERO ON|OFF nsymb       (default = ON)
   where: nsymb  is the symbol number for the line

  Turns on or  off drawing a  line at  `x=0' or `y=0'  and specifies the
  symbol for the line. To change the line for a particular plot, precede
  the command with `SET PLOT id [&idb]'.

