From 3dc74fa2f48ddca98234c506e9469e26b0d8e8db Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 28 Apr 2010 08:01:11 -0400 Subject: [PATCH] Tranitioned king_vs_best from Gnuplot to Asymptote --- tex/src/figures/fit-space/Makefile | 27 ++++++++++++++++++--- tex/src/figures/fit-space/king_vs_best.asy | 18 ++++++++++++++ tex/src/figures/fit-space/king_vs_best.gp | 4 +-- tex/src/figures/fit-space/king_vs_best.png | Bin 4972 -> 0 bytes tex/src/figures/fit-space/wtk_graph.asy | 1 + 5 files changed, 44 insertions(+), 6 deletions(-) create mode 100644 tex/src/figures/fit-space/king_vs_best.asy delete mode 100644 tex/src/figures/fit-space/king_vs_best.png create mode 120000 tex/src/figures/fit-space/wtk_graph.asy diff --git a/tex/src/figures/fit-space/Makefile b/tex/src/figures/fit-space/Makefile index f304605..894f47e 100644 --- a/tex/src/figures/fit-space/Makefile +++ b/tex/src/figures/fit-space/Makefile @@ -1,10 +1,29 @@ -all : fig.pdf +ASYPROCESS = ../asy/asyprocess \ + --texinputs=../..: \ + --pretex='\documentclass{drexel-thesis} \input{packages}' \ + -- + +FIGS = fit_valley king_vs_best +FIT_VALLEY_DATA = data +KING_VS_BEST_DATA = Best_2002_detailed_unfolding_pathway/fig3a-kx.data fit_valley.data +DATA = $(FIT_VALLEY_DATA) $(KING_VS_BEST_DATA) + +# Never delete intermediates. (`info make` 10.4 Chains of Implicit Rules) +.SECONDARY : + + +all : $(FIGS:%=%_.tex) clean : - rm -f fig.pdf fit_valley.data + rm -f $(FIGS:%=%_*) $(FIGS:%=%-*) *.pyc \ + fit_valley.data Best_2002_detailed_unfolding_pathway/fig3a-kx.data -fig.pdf : fit_valley.data - gnuplot plot.gp +%_.tex : %.asy $(DATA) + $(ASYPROCESS) $(patsubst %.asy, %, $<) fit_valley.data : extract_fit_valley.py data cat data | python $< > $@ + +Best_2002_detailed_unfolding_pathway/fig3a-kx.data : Best_2002_detailed_unfolding_pathway/fig3a.data + grep -v '^#' $< | awk 'BEGIN{OFS="\t"}{print $$2, $$1}' > $@ + diff --git a/tex/src/figures/fit-space/king_vs_best.asy b/tex/src/figures/fit-space/king_vs_best.asy new file mode 100644 index 0000000..43c4367 --- /dev/null +++ b/tex/src/figures/fit-space/king_vs_best.asy @@ -0,0 +1,18 @@ +import wtk_graph; + +size(15cm,10cm,IgnoreAspect); + +scale(Log, Linear); +real xscale=1; +real yscale=1; + +graphFile("Best_2002_detailed_unfolding_pathway/fig3a-kx.data", xscale, yscale, psoft, m30, + t="Best valley", dots=true); +graphFile("fit_valley.data", xscale, yscale, phard, m30, + t="King valley", dots=true); + +label(sLabel(""), point(N), N); +xaxis(sLabel("$k_{u0}$ ($1/$s)"), BottomTop, LeftTicks); +yaxis(sLabel("$x_u$ (m)"), LeftRight, RightTicks); + +add(legend(), point(E), 20E, UnFill); diff --git a/tex/src/figures/fit-space/king_vs_best.gp b/tex/src/figures/fit-space/king_vs_best.gp index b29574e..9faad46 100644 --- a/tex/src/figures/fit-space/king_vs_best.gp +++ b/tex/src/figures/fit-space/king_vs_best.gp @@ -1,5 +1,5 @@ -set terminal png -set output 'king_vs_best.png' +#set terminal png +#set output 'king_vs_best.png' g(x) = 39.727*exp(-40.7215e9*x) f(x) = 25.4465*exp(-44.6235e9*x) set logscale y diff --git a/tex/src/figures/fit-space/king_vs_best.png b/tex/src/figures/fit-space/king_vs_best.png deleted file mode 100644 index 51e4fb514ea0a821aaf1e13540d7a655db9b9af4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4972 zcmY*dXIK+kw@!vh7%my-}SCFv-hlICXXMyNK4a5 zlSCqE1^D}fl1KnXB9WDl8esuu&VEJ=?D&Dk zj-xmxkl_Nt50?=Wgr@)@SOSD-D2kv29T7~s5e-E!gy@KrWF1NzK}Z-8i-h4y!XL*- zI3`dLnGn%%m5RW`tc=JAClVztK}8~rG8~tw1cK=SMpDU0m{KVt4i!Qqgp+U?g2)gR zMhGLwbTkyh1kY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