-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}' > $@
+
--- /dev/null
+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);
-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
--- /dev/null
+../asy/wtk_graph.asy
\ No newline at end of file