Debian Codegraph @

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

raw
1 % This file is embedded in datatool-user.pdf version 3.4.3 2025-12-04
2 % Example 179 Side Axes
3 % Label: "ex:plotxysideaxes"
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
28 \renewcommand{\DTLplotdisplayticklabel}[1]{\ensuremath{#1}}
29
30 \begin{document}
31 \DTLplot{xydata}{
32 x=X, y={Y},
33 tick-gap=1, round=0,
34 tick-label-style={font=\small},
35 tick-label-offset=0pt,
36 minor-ticks, side-axes,
37 style=lines, width=3in, height=3in
38 }
39 \end{document}