The "data" directory with the plot script should be near the script used to obtain the data. Also adjust path in \includegraphics{} and remove a copy command in plot.sh. Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx> --- Note: Trailing spaces in the .eps file as generated by gnuplot is kept intact. Thanks, Akira -- {formal => CodeSamples/formal}/data/.gitignore | 1 - {formal => CodeSamples/formal/data}/RCU-test-ratio.eps | 0 {formal => CodeSamples/formal}/data/plot.sh | 2 -- {formal => CodeSamples/formal}/data/rcu-test.dat | 0 formal/formal.tex | 4 ++-- 5 files changed, 2 insertions(+), 5 deletions(-) rename {formal => CodeSamples/formal}/data/.gitignore (50%) rename {formal => CodeSamples/formal/data}/RCU-test-ratio.eps (100%) rename {formal => CodeSamples/formal}/data/plot.sh (96%) rename {formal => CodeSamples/formal}/data/rcu-test.dat (100%) diff --git a/formal/data/.gitignore b/CodeSamples/formal/data/.gitignore similarity index 50% rename from formal/data/.gitignore rename to CodeSamples/formal/data/.gitignore index e307f160..a1363379 100644 --- a/formal/data/.gitignore +++ b/CodeSamples/formal/data/.gitignore @@ -1,2 +1 @@ -*.eps *.pdf diff --git a/formal/RCU-test-ratio.eps b/CodeSamples/formal/data/RCU-test-ratio.eps similarity index 100% rename from formal/RCU-test-ratio.eps rename to CodeSamples/formal/data/RCU-test-ratio.eps diff --git a/formal/data/plot.sh b/CodeSamples/formal/data/plot.sh similarity index 96% rename from formal/data/plot.sh rename to CodeSamples/formal/data/plot.sh index dbda174c..ab74b753 100644 --- a/formal/data/plot.sh +++ b/CodeSamples/formal/data/plot.sh @@ -41,5 +41,3 @@ set style line 2 \ plot 'rcu-test.dat' using 2 t "RCU", '' using 3:xticlabels(1) t "RCU Test", \ '' using 5 with line linestyle 2 axis x1y2 t "\% Test" ---EOF--- - -cp RCU-test-ratio.eps ../RCU-test-ratio.eps diff --git a/formal/data/rcu-test.dat b/CodeSamples/formal/data/rcu-test.dat similarity index 100% rename from formal/data/rcu-test.dat rename to CodeSamples/formal/data/rcu-test.dat diff --git a/formal/formal.tex b/formal/formal.tex index ba52da88..55a5ed98 100644 --- a/formal/formal.tex +++ b/formal/formal.tex @@ -318,9 +318,9 @@ can help reduce the cost of finding and fixing any bugs located. \begin{figure} \centering \IfEbookSize{ -\resizebox{\onecolumntextwidth}{!}{\includegraphics{formal/RCU-test-ratio.pdf}} +\resizebox{\onecolumntextwidth}{!}{\includegraphics{CodeSamples/formal/data/RCU-test-ratio.pdf}} }{ -\resizebox{4.5in}{!}{\includegraphics{formal/RCU-test-ratio.pdf}} +\resizebox{4.5in}{!}{\includegraphics{CodeSamples/formal/data/RCU-test-ratio.pdf}} } \caption{Linux-Kernel RCU Test Code} \label{fig:formal:Linux-Kernel RCU Test Code} -- 2.17.1