Skip to content

Commit

Permalink
#8 corrected the code for creating a box graph from the same csv file…
Browse files Browse the repository at this point in the history
…s as the table
  • Loading branch information
SimonMcCallum committed Sep 3, 2017
1 parent 1b1f779 commit 2b154be
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion MastersExample.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
28 changes: 15 additions & 13 deletions inc/structure.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2b154be

Please sign in to comment.