set output 'kcor_swap.ps' 
set term postscript enhanced color 'Helvetica,18' size 11,9 
set grid 
set key at 6500,1.15
set multiplot layout 2,1 
set xlabel 'Wavelength (Angstroms)' 
set ylabel 'Flux (ergs/cm^2/s/Angstrom)' 
set title 'Using different filters to minimize K corrections' 
plot [3500:7000][0:1.2] './gal_spectrum_ang.txt' using 1:($2*8)   with lines  lt 1 lc -1 lw 2 t 'galaxy at z=0.00'   ,   './bess_b.pass' using 1:2 with lines lc 3 lw 2 t 'B filter'  
set title '' 
plot [3500:7000][0:1.2] './gal_spectrum_ang_z03.txt' using ($1):($2*8)   with lines  lt 1 lc -1 lw 2 t 'galaxy at z=0.30'   ,   './bess_v.pass' using 1:2 with lines lc 2 lw 3 t 'V filter'  
unset multiplot 
set output 
quit 
