tfig-mohr_coulomb.gp: sort values before plotting - hansen-zoet-exp - comparison of lab and model results of sediment advection
 (HTM) git clone git://src.adamsgaard.dk/hansen-zoet-exp
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
       ---
 (DIR) commit 377476ee3e442324ad80925a0828b22025b041a5
 (DIR) parent 049fb54cca500d070c3b8905a4c51afa5e546fd2
 (HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
       Date:   Sun, 15 May 2022 11:30:09 +0200
       
       fig-mohr_coulomb.gp: sort values before plotting
       
       Diffstat:
         M Makefile                            |       5 +++--
         M fig-mohr_coulomb.gp                 |       8 ++++----
       
       2 files changed, 7 insertions(+), 6 deletions(-)
       ---
 (DIR) diff --git a/Makefile b/Makefile
       t@@ -7,8 +7,9 @@ PDFS = \
                fig-mohr_coulomb.pdf \
                fig-sediment_flux.pdf
        
       -stressvals != range -l -N 20 0 2
       -stressvals += 8 22 50
       +stressvals_ != range -l -N 20 0 2
       +stressvals_ += 8 22 50
       +stressvals != echo ${stressvals_} | sort -n
        velvals = 3.169e-6 9.506e-6
        
        default: ${PDFS}
 (DIR) diff --git a/fig-mohr_coulomb.gp b/fig-mohr_coulomb.gp
       t@@ -17,11 +17,11 @@ set multiplot layout 2,1
        #set xlabel "Effective normal stress, {/Symbol s}_n' [kPa]"
        set ylabel "Shear stress, {/Symbol t} [kPa]"
        set key bottom right font ",10"
       -plot "mohr_coulomb_v3.169e-6ms.txt" u ($3/1e3):($3*$5/1e3) w lp title "v = 100 m/a", \
       -        "mohr_coulomb_v9.506e-6ms.txt" u ($3/1e3):($3*$5/1e3) w lp title "v = 300 m/a"
       +plot "<sort -nk 3 mohr_coulomb_v3.169e-6ms.txt" u ($3/1e3):($3*$5/1e3) w lp title "v = 100 m/a", \
       +        "<sort -nk 3 mohr_coulomb_v9.506e-6ms.txt" u ($3/1e3):($3*$5/1e3) w lp title "v = 300 m/a"
        
        set xlabel "Effective normal stress, {/Symbol s}_n' [kPa]"
        set ylabel "Shear friction, {/Symbol m} [-]"
        set key top right font ",10"
       -plot "mohr_coulomb_v3.169e-6ms.txt" u ($3/1e3):5 w lp title "v = 100 m/a", \
       -        "mohr_coulomb_v9.506e-6ms.txt" u ($3/1e3):5 w lp title "v = 300 m/a"
       +plot "<sort -nk 3 mohr_coulomb_v3.169e-6ms.txt" u ($3/1e3):5 w lp title "v = 100 m/a", \
       +        "<sort -nk 3 mohr_coulomb_v9.506e-6ms.txt" u ($3/1e3):5 w lp title "v = 300 m/a"