diff --git a/MastersExample.tex b/MastersExample.tex index 37ea35c..5f8c407 100644 --- a/MastersExample.tex +++ b/MastersExample.tex @@ -28,7 +28,7 @@ \usepackage{csvsimple} % for simple table reading and display \usepackage{url} \usepackage{booktabs} -%\usepackage{gnuplottex} %miktex option if using miktex on windows +\usepackage{gnuplottex} %miktex option if using miktex on windows \definecolor{darkgreen}{rgb}{0,0.5,0} diff --git a/inc/structure.tex b/inc/structure.tex index 474c2cf..d1e434c 100644 --- a/inc/structure.tex +++ b/inc/structure.tex @@ -107,21 +107,23 @@ \subsection{Gnuplot} \label{fig:exgnuplotex} \end{figure} -%\begin{figure}[htp] %t top, b bottom, p page | you can also use h to try to get the figure to appear at the current location -% \centering -% \begin{gnuplot}[terminal=epslatex, terminaloptions=color] -% set xlabel "Age" -% set ylabel "IQ" -% set title "Age vs Average IQ" -% set yrange [0:160] -% plot "figures/ageiq.csv" with bars -% \end{gnuplot} -% \caption[An example of Integrated Graph]{This is a gnuplot graph read from a file} -% \label{fig:exgnuplotintegratefile} -%\end{figure} +\begin{figure}[htp] %t top, b bottom, p page | you can also use h to try to get the figure to appear at the current location + \centering + \begin{gnuplot}[terminal=epslatex, terminaloptions=color] + set xlabel "Age" + set ylabel "IQ" + set key autotitle columnhead + set title "Age vs Average IQ" + set yrange [0:160] + set datafile separator "," + plot "figures/ageiq.csv" using 1:2 with boxes + \end{gnuplot} + \caption[An example of Integrated Graph]{This is a gnuplot graph read from a file} + \label{fig:exgnuplotintegratefile} +\end{figure} -%\begin{figure}[htp] %t top, b bottom, p page | you can also use h to try to get the figure to appear at the current location +%\begin{figure}[htp] %t top, b bottom, p page | you can also use h to try to get the figure to appear at the urrent location % \centering % \begin{gnuplot}[terminal=pdf, terminaloptions=color] % unset hidden3d