;+
;Name: plotout_pha.pro
;Author: Andy Phillips mssl
;Purpose: Plot Pha values against chisqrd for data from readout.pro
;Classification: BDA, Housekeeping, spikes correction
;History: written jan 1992 atp
;
;-
!p.multi = [0,2,2,0,0]
!p.title = 'Chisqrd vs Phacen scatter'
!x.title = 'Pha Centre'
!y.title = 'Chisqrd'

!p.subtitle = 'Channel 0'
plot,phacen(where(phachan eq 0)),phachi(where((phachan eq 0)and(phachi lt 10)))
!p.subtitle = 'Channel 1'
plot,phacen(where(phachan eq 1)),phachi(where((phachan eq 1)and(phachi lt 10)))
!p.subtitle = 'Channel 2'
plot,phacen(where(phachan eq 2)),phachi(where((phachan eq 2)and(phachi lt 10)))
!p.subtitle = 'Channel 3'
plot,phacen(where(phachan eq 3)),phachi(where((phachan eq 3)and(phachi lt 10)))

!p.title = 'Chisqrd vs Phawidth scatter'
!x.title = 'Pha Fwhm'
!p.subtitle = 'Channel 0'
plot,phawid(where(phachan eq 0)),phachi(where((phachan eq 0)and(phachi lt 10)))
!p.subtitle = 'Channel 1'
plot,phawid(where(phachan eq 1)),phachi(where((phachan eq 1)and(phachi lt 10)))
!p.subtitle = 'Channel 2'
plot,phawid(where(phachan eq 2)),phachi(where((phachan eq 2)and(phachi lt 10)))
!p.subtitle = 'Channel 3'
plot,phawid(where(phachan eq 3)),phachi(where((phachan eq 3)and(phachi lt 10)))

device,/close
end
