Skip to content

Commit

Permalink
Update 2-usage.tex
Browse files Browse the repository at this point in the history
Commenting out the Gnuplot graph as it adds multiple seconds per compile.
  • Loading branch information
SimonMcCallum authored Feb 8, 2022
1 parent 5c29983 commit b6841aa
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions chapters/2-usage.tex
Original file line number Diff line number Diff line change
Expand Up @@ -109,22 +109,24 @@ \section{Figures}
\label{fig:subfig}
\end{figure}

You can make nice graphs directly from data files using \texttt{gnuplot}, for an example, see \cref{fig:examplegnuplot}.

\begin{figure}[htbp]
\centering
\begin{gnuplot}[terminal=epslatex,terminaloptions={size 8cm,6cm color}]
set xlabel "age"
set ylabel "IQ"
set key autotitle columnhead
set title "age vs IQ"
set yrange [0:160]
set datafile separator ","
plot "csvtables/ageiq.csv" using 1:2 with boxes
\end{gnuplot}
\caption[An example of Integrated Graph]{This is a gnuplot graph read from a file. Also this figure has a long caption in order to demonstrate how that is typeset.}
\label{fig:examplegnuplot}
\end{figure}
You can make nice graphs directly from data files using \texttt{gnuplot}, but it is expensive on every compilation. The code is included in the
raw latex as a comment so you can uncomment that code to see how it works.
% , for an example, see \cref{fig:examplegnuplot}.
%
%\begin{figure}[htbp]
% \centering
% \begin{gnuplot}[terminal=epslatex,terminaloptions={size 8cm,6cm color}]
% set xlabel "age"
% set ylabel "IQ"
% set key autotitle columnhead
% set title "age vs IQ"
% set yrange [0:160]
% set datafile separator ","
% plot "csvtables/ageiq.csv" using 1:2 with boxes
% \end{gnuplot}
% \caption[An example of Integrated Graph]{This is a gnuplot graph read from a file. Also this figure has a long caption in order to demonstrate how that is typeset.}
% \label{fig:examplegnuplot}
%\end{figure}

\section{Tables}

Expand Down

0 comments on commit b6841aa

Please sign in to comment.