; Creates p[ot of distribution of CC values
;
; SOURCE: plothist.spi 
;
; PURPOSE: histogram of  CC values.
;
; MASTER COPY: /net/bali/usr1/spider/docs/techs/recon/newprogs/
;
; I/O PARAMETERS AND FILES ARE SET HERE:
;
;  ------------ Input files ----------------------------------------

FR G
[hist]hist/cchist_all          ; doc file with histogram data

; --------------- Output files  -------------------------------------

FR G
[gnuplot_commands]plot_hist    ; output text file of gnuplot commands

; -------------- END BATCH HEADER ---------------------------------- 


VM
\rm -f [gnuplot_commands].$DATEXT
 
VM 
echo #!/bin/sh > [gnuplot_commands].$DATEXT

VM 
echo set ylabel \"# Particles\" >> [gnuplot_commands].$DATEXT

VM 
echo set xlabel \"cross correlation value\" >> [gnuplot_commands].$DATEXT

VM 
echo set title \"Histogram of all groups\" >> [gnuplot_commands].$DATEXT

VM 
echo plot \'[hist].$DATEXT\' using 3:4 notitle  with boxes >> [gnuplot_commands].$DATEXT

VM                         
gnuplot -persist [gnuplot_commands].$DATEXT &

VM                         
cat [gnuplot_commands].$DATEXT &

EN
 
;