| 1 |
% This file is embedded in datatool-user.pdf version 3.4.3 2025-12-04 |
| 2 |
% Example 175 Plot Encapsulated in a Box Without Ticks |
| 3 |
% Label: "ex:plotboxticksnone" |
| 4 |
% arara: pdflatex |
| 5 |
% arara: pdfcrop |
| 6 |
\documentclass[12pt]{article} |
| 7 |
\pagestyle{empty} |
| 8 |
\begin{filecontents}[noheader,overwrite]{growth1.csv} |
| 9 |
Time,Experiment 1,Experiment 2 |
| 10 |
0,3.13,3.4 |
| 11 |
15,3.42,3.45 |
| 12 |
30,3.67,3.5 |
| 13 |
45,4.2,3.64 |
| 14 |
60,4.9,3.8 |
| 15 |
\end{filecontents} |
| 16 |
|
| 17 |
\usepackage{dataplot} |
| 18 |
\DTLsetup{store-datum} |
| 19 |
\DTLread[name=growth1, |
| 20 |
csv-content=no-parse, |
| 21 |
data-types=decimal |
| 22 |
]{growth1.csv} |
| 23 |
\begin{document} |
| 24 |
\DTLplot{growth1}{ |
| 25 |
x=Time, |
| 26 |
y={Experiment 1,Experiment 2}, |
| 27 |
x-label={Time ($t$)}, y-label={Log Count}, |
| 28 |
legend, round=0, minor-ticks, |
| 29 |
min-y=3,max-y=5,y-tick-gap=1, |
| 30 |
tick-label-offset=0pt, |
| 31 |
box, box-ticks=none, |
| 32 |
width=2.5in, height=2.5in |
| 33 |
} |
| 34 |
\end{document} |