pro plot_hxa, hxa_scan
;
;+
;NAME:
;	plot_hxa
;PURPOSE:
;	Plot the HXA scan data (loops through all data
;	with 2 second scan between plots)
;INPUT:
;	hxa_scan- The hxa scan data structure
;HISTORY:
;	Written Fall '91 by M.Morrison
;-
;
n = n_elements(hxa_scan)
;
!p.multi = [0,1,2,0,0]
;
for i=0,n-1 do begin
    tot = total(hxa_scan.x_scan_int)
    if (tot eq 0) then begin
	print, 'HXA Scan is all zero', i
    end else begin
	x = hxa_scan(i).x_scan_int
	y = hxa_scan(i).y_scan_int
	str = fmt_tim(hxa_scan(i))
	imax = max([x,y])
	plot, x, ytitle = 'X Scan', title = str
	plot, y, ytitle = 'Y Scan'
	wait, 2.0
    end
end
;
!p.multi = 0
end	
