Debian Codegraph @

texmf-dist/doc/latex/datatool/datatool-user-examples/datatool-user-example177.tex

raw
1 % This file is embedded in datatool-user.pdf version 3.4.3 2025-12-04
2 % Example 177 Extending the Axes
3 % Label: "ex:plotxyextend"
4 % arara: pdflatex
5 % arara: pdfcrop
6 \documentclass[12pt]{article}
7 \pagestyle{empty}
8 \begin{filecontents}[noheader,overwrite]{xydata.csv}
9 X,Y
10 -3.5,-2.75
11 -3,3
12 -2.5,-1
13 -1,1.5
14 1,-4.2
15 2.6,1.8
16 3.2,-0.4
17 \end{filecontents}
18
19 \usepackage{dataplot}
20 \DTLsetup{store-datum}
21 \DTLread[
22 name=xydata,
23 format=csv,
24 csv-content=no-parse
25 , data-types=decimal
26 ]{xydata.csv}
27 \begin{document}
28 \DTLplot{xydata}{
29 x=X, y={Y},
30 tick-dir=out, x-tick-gap=1, round-x=0, round-y=1,
31 extend-x-axis={0,1}, extend-y-axis={0,0.5},
32 tick-label-style={font=\small}, tick-label-offset=0pt,
33 max-x-label={$x$}, max-y-label={$y$},
34 style=lines, width=3in, height=3in
35 }
36 \end{document}