% This file is embedded in datatool-user.pdf version 3.4.3 2025-12-04
% Example 171 Changing the Axis Style
% Label: "ex:plotaxisstyle"
% arara: pdflatex
% arara: pdfcrop
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{filecontents}[noheader,overwrite]{growth1.csv}
Time,Experiment 1,Experiment 2
0,3.13,3.4
15,3.42,3.45
30,3.67,3.5
45,4.2,3.64
60,4.9,3.8
\end{filecontents}

\begin{filecontents}[noheader,overwrite]{growth2.csv}
Time,Experiment 1,Experiment 2
0,3.14,3.2
15,3.51,3.53
30,3.79,3.61
45,4.5,4.25
60,5.1,4.9
\end{filecontents}

\usepackage{dataplot}
\DTLsetup{store-datum}
\DTLread[name=growth1,
 csv-content=no-parse,
 data-types=decimal
]{growth1.csv}
\DTLread[name=growth2,
 csv-content=no-parse,
 data-types=decimal
]{growth2.csv} 
\begin{document}
\DTLplot{growth1,growth2}{
 x=Time,
 y={Experiment 1,Experiment 2},
 x-label={Time ($t$)}, y-label={Log Count},
 min-y=3,max-y=6,
 round-x=0, round-y=1,
 tick-dir=out, minor-ticks, 
% this will add an arrow head at the end of the axes but it will clash with the end tick mark:
 axis-style={->,thick},
% extend the axes to avoid a clash:
 % extend-x-axis=0.5, extend-y-axis=0.5,
 style=lines, width=3in, height=2.5in
} 
\end{document}
