>  Docs Center  >  Libraries  >  JHU/APL/S1R  >  LEG
Libraries

LEG

LEG

Name


      LEG

Purpose


      Make a plot legend.

Category


Calling Sequence


      leg

Inputs


Keyword Parameters


Keywords


        LINESTYLE=sty An array of line styles (def=0).
        THICK=thk An array of line & sym thicknesses (def=1).
        COLOR=clr An array of line colors (def=!p.color).
        PSYM=sym An array of plot symbol codes (def=none).
        SYMSIZE=ssz An array of symbol sizes (def=1).
        SCOLOR=sclr An array of symbol colors (def=COLOR).
        NUMBER=nums Number of symbols per line (def=1).
        /INDENT Means indent symbols from line ends.
        LABEL=lbl An array of line labels (def=none).
        FONT=font Font text (0=hardware, -1=Hershey (def)).
        LSIZE=lsz Label text size (def=1).
        LCOLOR=lclr Label color (def=same as line colors).
        TITLE=ttl Legend title.
        TSIZE=tsz Title size (def=1).
        TCOLOR=tclr Title color (def=!p.color).
        BOLD=b Bold (thickness) for labels & title (def=1).
        POSITION=pos Legend position in normalized window
          coordinates. If not given, positioning is interactive.
        /DEVICE pos is in device coordinates.
        /NORMAL pos is in normalized coordinates.
        OUTPOS=opos Returned legend position from interactive
          mode. Useful to repeat legend plot non-interactively.
          Also in normalized window coordinates, that is 0 to 1
          from xmin or ymin to xmax or ymax.
        BOX=box Legend background box parameters. If not
          given no box is plotted. May have up to 6 elements:
          [BIC, BOC, BOT, BMX, BMY, BFLAG]
          BIC: Box interior color. Def=no box.
          BOC: Box outline color. Def=!p.color.
          BOT: Outline thickness. Def=1.
          BMX: Box margin in x. Def=1.
          BMY: Box margin in y. Def=1.
          BFLAG: Margin units flag. Def unit (BFLAG=0) is 1 legend
            line spacing (in y). 1 means units are norm coord.
        keyword. Which font is selected by placing a font selection
        string at the start of the first label. Ex: "!8Label 1"
        gives the Italic font for Hershey.
        Hint: set up array parameters in separate statements.

Outputs


Common Blocks


      leg_com

Notes


      Notes: Unless POSITION is given, an interactive box is used
        to position plot legend. The first line is the top of
        the box, the last is the bottom, and the rest are uniformly
        spaced between. The last value of short arrays is repeated.
        If given, the box outline color is used as the default.
        Hardware or Hershey fonts are selected using the FONT

Modification History


      R. Sterner, 26 Jul, 1993
      Dick Jackson (djackson@ibd.nrc.ca), 1994 Aug 2 --- Added FONT keyword
      and symbol thickness.
      R. Sterner, 1994 Nov 18 --- Allowed array of symbol sizes.
      R. Sterner, 2003 Dec 15 --- Allowed POS to be dev or norm coordinates.
      R. Sterner, 2006 Jan 31 --- Added keyword BOLD=b for text.
  Copyright (C) 1993, Johns Hopkins University/Applied Physics Laboratory
  This software may be used, copied, or redistributed as long as it is not
  sold and this copyright notice is reproduced on each copy made. This
  routine is provided as is without any express or implied warranties
  whatsoever. Other limitations apply as described in the file disclaimer.txt.



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us