set output 'phase_d.ps' 
set term postscript color enhanced 
set style line 1 lt rgb 'red' lw 3  
set style line 2 lt rgb 'sea-green' lw 3  
set style line 3 lt rgb 'blue' lw 3  
set style line 4 lt rgb 'cyan' lw 3  
set style line 5 lt rgb 'violet' lw 3  
set grid 
set key top right 
set ylabel 'Intensity' 
set xlabel 'Julian Date - 2459100 ' 
set title 'Light curve, phased with period 0.629 days' 
plot [-0.1:1.1][9.8:8.5] 'all_calib_mag.dat' using    (($1/0.629)-int($1/0.629)):3       ls 0 pt 3 ps 0.3 t ''  
set output 
quit 
