set output 'rel_mag_a.ps' 
set term postscript color enhanced 'Helvetica,18'  
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 2  
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 'Magnitude relative to star A' 
set xlabel 'Julian Date - 2455000 ' 
set title 'Light curve, magnitude relative to star A '
plot [780:950][0.3:-3.5] 'peakpix.dat' using ($2):(0.0-2.5*(log( ($3/$3) )/log(10.0) ) )       ls 1 pt 3 ps 0.5 t 'A'  ,          'peakpix.dat' using ($2):(0.0-2.5*(log( ($4/$3) )/log(10.0)) )       ls 2 pt 4 ps 0.5 t 'B'  ,          'peakpix.dat' using ($2):(0.0-2.5*(log( ($5/$3) )/log(10.0)) )       ls 3 pt 6 ps 1.0 t 'C'  ,          'peakpix.dat' using ($2):(0.0-2.5*(log( ($6/$3) )/log(10.0)) )       ls 4 pt 6 ps 0.5 t 'D'  
set output 
quit 
