From 7f442b9f2b3a57cbacd226ca9ac266c2188ef3d6 Mon Sep 17 00:00:00 2001 From: caes Date: Tue, 12 Jul 2016 23:37:24 -0400 Subject: [PATCH] some plots are now being output, need sleep then debug --- scripts/create_plots.sh | 13 +++++-------- scripts/templates/timelag_freq.gp | 4 +--- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/scripts/create_plots.sh b/scripts/create_plots.sh index fe5c8bb..c0b5618 100755 --- a/scripts/create_plots.sh +++ b/scripts/create_plots.sh @@ -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 diff --git a/scripts/templates/timelag_freq.gp b/scripts/templates/timelag_freq.gp index 4bf1084..bdf5b3f 100644 --- a/scripts/templates/timelag_freq.gp +++ b/scripts/templates/timelag_freq.gp @@ -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