tFix axes units for stick-slip plot - cngf-pf - continuum model for granular fl… | |
git clone git://src.adamsgaard.dk/cngf-pf | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 4eaf14a0a06f01b3c5a2b9a49f30c9a23620e2a0 | |
parent 63a7aea187ad7c0c99223e065f93d93df89833e7 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Fri, 10 May 2019 15:59:17 -0700 | |
Fix axes units for stick-slip plot | |
Diffstat: | |
M Makefile | 3 ++- | |
M diurnal.timeseries.gp | 6 +++--- | |
2 files changed, 5 insertions(+), 4 deletions(-) | |
--- | |
diff --git a/Makefile b/Makefile | |
t@@ -29,9 +29,10 @@ diurnal.output00000.txt: 1d_fd_simple_shear | |
./$< --resolution 50 --length 2.0 --normal-stress 150e3 --fluid --flui… | |
diurnal.timeseries.txt: diurnal.output00000.txt | |
+ /bin/bash -c '\ | |
for f in diurnal.output*.txt; do \ | |
tail -n 1 "$$f" | cut -f2- >> $@; \ | |
- done | |
+ done' | |
diurnal.timeseries.png: diurnal.timeseries.gp diurnal.timeseries.txt | |
gnuplot $< > $@ | |
diff --git a/diurnal.timeseries.gp b/diurnal.timeseries.gp | |
t@@ -1,11 +1,11 @@ | |
#!/usr/bin/env gnuplot | |
set terminal pngcairo color size 18.6 cm, 10.0 cm | |
-set xlabel "Time, t [s]" | |
-set ylabel "Shear velocity, v [m/s]" offset 2 | |
+set xlabel "Time, t [d]" | |
+set ylabel "Shear velocity, v [km/d]" offset 2 | |
# set xrange [0.0:0.7] | |
# set yrange [0.0:0.01] | |
# set key top left #samplen 0.9 | |
-plot "diurnal.timeseries.txt" u 1 w l lw 2 t "" | |
+plot "diurnal.timeseries.txt" u ($0/1008*7):($1*60*60*24/1000) w l lw 2 t "" |