From 4874ad14b60dcf96195238aded7eb796aa051ed2 Mon Sep 17 00:00:00 2001 From: Francois Gygi Date: Wed, 10 Feb 2016 04:59:51 +0000 Subject: [PATCH] added -range option to plot scripts git-svn-id: http://qboxcode.org/svn/qb/trunk@1804 cba15fb0-1239-40c8-b417-11db7ca47a34 --- util/econst.plt | 13 ++++++++----- util/econst_cmp.plt | 9 ++++++--- util/econste.plt | 9 ++++++--- util/econste_cp.plt | 9 +++++++++ util/eigsum.plt | 9 +++++++++ util/enthalpy_int.plt | 9 +++++++++ util/etotal.plt | 9 ++++++--- util/etotal_cmp.plt | 10 ++++++---- util/etotal_int.plt | 10 +++++++--- util/etotal_int_cmp.plt | 9 ++++++--- util/force.plt | 9 ++++++--- util/sigma.plt | 21 ++++++--------------- util/temp_ion.plt | 15 +++++++++------ util/volume.plt | 9 ++++++--- 14 files changed, 99 insertions(+), 51 deletions(-) create mode 100755 util/econste_cp.plt create mode 100755 util/eigsum.plt create mode 100755 util/enthalpy_int.plt diff --git a/util/econst.plt b/util/econst.plt index 5044fd2..bd34395 100755 --- a/util/econst.plt +++ b/util/econst.plt @@ -1,9 +1,12 @@ #!/bin/bash -# econst.plt: plot in one or more MD simulations -# use: econst.plt mdrun1.r [mdrun2.r ...] +if [ $1 == "-range" ] +then + range=$2 + shift 2 +fi gnuplot -persist <' $1" u 2 w l, "' $2" u 2 w l +plot $range " and in one or more MD simulations -# use: econste.plt mdrun1.r [mdrun2.r ...] +if [ $1 == "-range" ] +then + range=$2 + shift 2 +fi gnuplot -persist <' $*" u 2 w l +p $range "' $*" u 2 w l EOF diff --git a/util/econste_cp.plt b/util/econste_cp.plt new file mode 100755 index 0000000..4bf04f2 --- /dev/null +++ b/util/econste_cp.plt @@ -0,0 +1,9 @@ +#!/bin/bash +if [ $1 == "-range" ] +then + range=$2 + shift 2 +fi +gnuplot -persist <' $*" u 2 w l, "' $*" u 2 w l +EOF diff --git a/util/eigsum.plt b/util/eigsum.plt new file mode 100755 index 0000000..f6c445f --- /dev/null +++ b/util/eigsum.plt @@ -0,0 +1,9 @@ +#!/bin/bash +if [ $1 == "-range" ] +then + range=$2 + shift 2 +fi +gnuplot -persist < in one or more simulations -# use: etotal.plt run1.r [run2.r ...] +if [ $1 == "-range" ] +then + range=$2 + shift 2 +fi gnuplot -persist <' $*" u 2 w l +plot $range "' $*" u 2 w l EOF diff --git a/util/etotal_cmp.plt b/util/etotal_cmp.plt index ea4a3e0..f489b0c 100755 --- a/util/etotal_cmp.plt +++ b/util/etotal_cmp.plt @@ -1,7 +1,9 @@ #!/bin/bash -# etotal_cmp.plt: compare in two MD simulations -# use: etotal_cmp.plt mdrun1.r mdrun2.r +if [ $1 == "-range" ] +then + range=$2 + shift 2 +fi gnuplot -persist <' $1" u 2 w l, "' $2" u 2 w l +plot $range "' $1" u 2 w l, "' $2" u 2 w l EOF diff --git a/util/etotal_int.plt b/util/etotal_int.plt index 41b3f70..b8a409c 100755 --- a/util/etotal_int.plt +++ b/util/etotal_int.plt @@ -1,6 +1,10 @@ #!/bin/bash -# etotal_int.plt: plot in one or more simulations -# use: etotal_int.plt run1.r [run2.r ...] +if [ $1 == "-range" ] +then + range=$2 + shift 2 +fi gnuplot -persist < in two simulations -# use: etotal_int_cmp.plt run1.r run2.r +if [ $1 == "-range" ] +then + range=$2 + shift 2 +fi gnuplot -persist <' $1" u 2 w l, "' $2" u 2 w l +plot $range " in one or more MD simulations -# use: temp_ion.plt mdrun1.r [mdrun2.r ...] +if [ $1 == "-range" ] +then + range=$2 + shift 2 +fi gnuplot -persist <' $*" u 2 w l +plot $range "' $*" u 2 w l EOF -- libgit2 0.26.0