some plots are now being output, need sleep then debug

This commit is contained in:
caes 2016-07-12 23:37:24 -04:00
parent 668f090ebe
commit 7f442b9f2b
2 changed files with 6 additions and 11 deletions

View File

@ -13,8 +13,8 @@ do
# Prepare files
echo "Plotting PSD and time lags for $echo_band, referred to ${ref_band}."
echoPSD_tabfile=analyses/tables/${echo_band}PSD.tab
refPSD_tabfile=analyses/tables/${ref_band}PSD.tab
echoPSD_tabfile=analyses/tables/${echo_band}_PSD.tab
refPSD_tabfile=analyses/tables/${ref_band}_PSD.tab
timelag_tabfile=analyses/tables/${echo_band}_≻_${ref_band}_delay.tab
PSD_plotfile=analyses/plots/${echo_band}_≻_${ref_band}_PSD.png
timelag_plotfile=analyses/plots/${echo_band}_≻_${ref_band}_timelag.png
@ -32,18 +32,15 @@ do
sed "s@%SUBTITLE@as reported by Fausnaugh et. al, STORM III, 2016@"|
sed "s@%FILE1@$refPSD_tabfile@"|
sed "s@%FILE2@$echoPSD_tabfile@"|
sed "s@%OUTPUTFILE@$PSD_plotfile@" >
tmp.gp
sed "s@%OUTPUTFILE@$PSD_plotfile@" > tmp.gp
gnuplot tmp.gp
# Plot time lags and save using gnuplot
cat scripts/templates/timelag_freq.gp|
sed "s@%TITLE@Time Lag for Lightcurve $echo_band relative to $ref_band@"|
sed "s@%SUBTITLE@as reported by Fausnaugh et. al, STORM III, 2016@"|
sed "s@%FILE1@$refPSD_tabfile@"|
sed "s@%FILE2@$echoPSD_tabfile@"|
sed "s@%OUTPUTFILE@$PSD_plotfile@" >
tmp.gp
sed "s@%FILE1@$timelag_tabfile@"|
sed "s@%OUTPUTFILE@$timelag_plotfile@" > tmp.gp
gnuplot tmp.gp
done

View File

@ -3,9 +3,7 @@ set termoption dash
set output "%OUTPUTFILE"
plot 'tables/timelag_lc1.dat' using 1:2:3:4 with xyerrorbars, \
'tables/timelag_lc2.dat' using 1:2:3:4 with xyerrorbars
plot '%FILE1' using 1:2:3:4 with xyerrorbars\
set logscale x
set xrange [0.005:0.603]
set arrow from 0.005,0 to 0.603,0 nohead lt 3 lc rgb 'black'
pause -1