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

HORI

HORI

Name


      HORI

Purpose


      Interactive horizontal line on screen or plot.

Category


Calling Sequence


      hori, [y]

Inputs


Keyword Parameters


Keywords


        /DATA Causes data coordinates to be used (default).
        /DEVICE Causes window device coordinates to be used.
        /NORMAL Causes normalized coordinates to be used.
        COLOR=c Set color of line (ignored for /XOR).
        LINESTYLE=s Line style.
        XFORMAT=xfn These kywords are given names of functions
        YFORMAT=yfn that accept the numeric value of x or y
          and return a corresponding string which is displayed
          in place of the actual value. For example, Julian
          days could be displayed as a date with jd2date.
        XSIZE=xs, YSIZE=ys Coordinate display widths.
        /JS Means X axis is time in Julian seconds.
        /NOSTATUS Inhibits status display widget.
        SETSTAT=st May use the same status display widget on
          each call to hori (stays in same position).
          On first call: the status widget structure is returned.
          Following calls: send st. Must use with /KEEP.
          To delete status display widget after last box1 call:
            widget_control,st.top,/dest (or drop /KEEP)
        /KEEP Do not delete status widget on exit.
        /XMODE means use XOR plot mode instead of tvrd mode.
        INSTRUCTIONS=t String array with exit instructions.
          Default: Press any button to exit.
        /DIALOG Means give an exit dialog box.
        MENU=m A string array with exit dialog box options.
          Def=Exit. An option labeled Continue is always added.
        EXITCODE=x Returns exit code. Always 0 unless a dialog
          box is requested, then is selected exit option number.
        BUTTON=b Returned button code: 1=left, 2=middle, 4=right.

Outputs


      y = Y coordinate of line. in, out

Common Blocks


      js_com

Notes


      Note: data coordinates are default.
        Y may be set to starting position in entry.

Modification History


      R. Sterner, 11 Sep, 1990
      R. Sterner, 21 Oct, 1991 --- added /NOCOMMANDS, EXITCODE=x
      R. Sterner, 6 Nov, 1991 --- added EXITCODE=0.
      R. Sterner, 23 Dec, 1991 --- made x be both in and out.
      R. Sterner, 23 Dec, 1991 --- Added wait,.2 for HP workstation.
      R. Sterner, 21 May, 1992 --- fixed for log axes.
      R. Sterner, 1994 Jan 20 --- One mouse button,/NORMAL,/DATA.
      R. Sterner, 1994 jan 21 --- Added /NOSTATUS, SETSTAT, /KEEP.
      R. Sterner, 1994 Feb 16 --- Fixed a few minor bugs.
      R. Sterner, 1994 Mar 4 --- Added XFORMAT, YFORMAT, & BUTTON keywords.
      R. Sterner, 1994 May 17 --- Added XSIZE,YSIZE,/DIALOG,INSTRUCTIONS,
      MENU, and rearranged display.
      R. Sterner, 1995 Jan 11 --- Added /JS for time in JS.
      R. Sterner, 1995 Aug 17 --- Was not using initial y. Fixed.
      R. Sterner, 1998 Jan 15 --- Dropped use of !d.n_colors.
      R. Sterner, 1998 Mar 11 --- Attempt to deal with true color.
      R. Sterner, 2003 Oct 27 --- Fixed startup non-erased line (rounded).
      R. Sterner, 2008 Mar 17 --- Added last to common.
      R. Sterner, 2010 Jul 13 --- Converted arrays from () to [].
  Copyright (C) 1990, 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.



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us