set term pdf enhanced color font "helvetica,20" linewidth 1 size 10,6
set output "si_budget.pdf"
set key bottom

set xlabel "Radiative budget (mW/m^{3})"
set ylabel "Altitude (km)"
plot \
     "./budget.txt" u ($4*1000):(($1+$2)/2000) title "total" w lines lt -1 lw 1 \
    ,"./gas_ground_budget.txt" u ($4*1000):(($1+$2)/2000) title "gas-ground" w lines lt 0 lw 1 \
    ,"./gas_space_budget.txt" u ($4*1000):(($1+$2)/2000) title "gas-space" w lines lt 1 lw 1 \
    ,"./gas_gas_budget.txt" u ($4*1000):(($1+$2)/2000) title "gas-gas" w lines lt 2 lw 1 \
#    ,"../../PPart_kdist/results/si_budget.txt" u ($4*1000):(($1+$2)/2000) title "PPart" w lines lt 1 lw 1 \

quit
