mirror of
https://asciireactor.com/otho/psdlag-agn.git
synced 2024-11-22 02:05:07 +00:00
working on automating plots
This commit is contained in:
parent
b6dd5fc0a9
commit
6e473cfb09
@ -3,14 +3,20 @@
|
|||||||
# plot 'file' with errorbars
|
# plot 'file' with errorbars
|
||||||
# plot 'file' using 1:2:(sqrt($1)) with xerrorbars
|
# plot 'file' using 1:2:(sqrt($1)) with xerrorbars
|
||||||
# plot 'file' using 1:2:($1-$3):($1+$3):4:5 with xyerrorbars
|
# plot 'file' using 1:2:($1-$3):($1+$3):4:5 with xyerrorbars
|
||||||
|
set terminal png
|
||||||
|
set output "tmp.png"
|
||||||
|
|
||||||
plot 'tmp.sourcePSD' using 1:($2):3:4 with xyerrorbars, \
|
set title "Yo"
|
||||||
'tmp.reprocPSD' using 1:($2):3:4 with xyerrorbars,
|
set xlabel "Temporal Frequency [1/days]"
|
||||||
#'tmp.ccPSD' using 1:($2):3:4 with xyerrorbars
|
set ylabel "log_{10} PSD"
|
||||||
#plot 'tmp.timelag' using 1:2:3:4 with xyerrorbars
|
|
||||||
set logscale x
|
set logscale x
|
||||||
set xrange [0.005:0.603]
|
set xrange [0.005:0.603]
|
||||||
set yrange [-5.5:0.5]
|
set yrange [-5.5:0.5]
|
||||||
|
|
||||||
|
plot 'tmp.sourcePSD' using 1:($2):3:4 with xyerrorbars title "Driving Emission", \
|
||||||
|
'tmp.reprocPSD' using 1:($2):3:4 with xyerrorbars title "Reprocessed Emission",
|
||||||
|
#'tmp.ccPSD' using 1:($2):3:4 with xyerrorbars
|
||||||
|
#plot 'tmp.timelag' using 1:2:3:4 with xyerrorbars
|
||||||
# set yrange [:1]
|
# set yrange [:1]
|
||||||
# (x, y, ydelta),
|
# (x, y, ydelta),
|
||||||
# (x, y, ylow, yhigh),
|
# (x, y, ylow, yhigh),
|
||||||
|
@ -1,20 +1,23 @@
|
|||||||
|
# This method assumes y values are in logarithm units already.
|
||||||
|
|
||||||
|
set title "%TITLE"
|
||||||
|
set terminal png
|
||||||
|
set output "tmp.png"
|
||||||
|
|
||||||
|
set title "Yo"
|
||||||
# This method assumes data is in logarithm units already.
|
set xlabel "Temporal Frequency [1/days]"
|
||||||
|
|
||||||
plot 'tables/PSD_lcdrive.dat' using 1:(10**($2+2)):3:4 with xyerrorbars, \
|
|
||||||
'tables/PSD_lc1.dat' using 1:(10**($2+2)):3:4 with xyerrorbars, \
|
|
||||||
'tables/PSD_lc2.dat' using 1:(10**($2+2)):3:4 with xyerrorbars
|
|
||||||
#plot 'tmp.timelag' using 1:2:3:4 with xyerrorbars
|
|
||||||
set logscale xy
|
|
||||||
set xrange [0.005:0.603]
|
set xrange [0.005:0.603]
|
||||||
set yrange [0.0005:100]
|
|
||||||
# set yrange [:1]
|
# Use this if you want to show PSD directly on a log axis
|
||||||
# (x, y, ydelta),
|
# set logscale xy
|
||||||
# (x, y, ylow, yhigh),
|
# set ylabel "PSD"
|
||||||
# (x, y, xdelta),
|
# set yrange [0.0005:100]
|
||||||
# (x, y, xlow, xhigh),
|
# plot '%FILE1' using 1:(10**($2+2)):3:4 with xyerrorbars, \
|
||||||
# (x, y, xdelta, ydelta), or
|
# '%FILE2' using 1:(10**($2+2)):3:4 with xyerrorbars
|
||||||
# (x, y, xlow, xhigh, ylow, yhigh).
|
|
||||||
pause -1
|
# Use this if you want to show the log value of the PSD
|
||||||
|
set logscale x
|
||||||
|
set ylabel "log_{10} PSD"
|
||||||
|
set yrange [-5.5:0.5]
|
||||||
|
plot '%FILE1' using 1:2:3:4 with xyerrorbars, \
|
||||||
|
'%FILE2' using 1:2:3:4 with xyerrorbars
|
Loading…
Reference in New Issue
Block a user