;+
; NAME:
;	GET_LIMITS
; PURPOSE:
;	Gets two limits from a plot using cursor
; CALLING SEQUENCE:  
;	GET_LIMITS,xlim,ylim
; INPUT:
;
; OUTPUT:
;	xlim	Vector containing 1st and 2nd X-limit
;	ylim	Vector containing 1st and 2nd Y-limit
; OPTIONAL OUTPUT:
;
; HISTORY
;	RDB	Oct, 1991	Written
;-
pro  get_limits,xlim,ylim

;	  get limits by two cursor reads in DATA units

cursor,xl,yl,/data,/down 	;button down
print,xl,yl
cursor,xh,yh,/data,/down
print,xh,yh

xlim = [xl,xh]
ylim = [yl,yh]

return
end
