Debian Codegraph @

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

raw
1 % This file is embedded in datatool-user.pdf version 3.4.3 2025-12-04
2 % Example 178 Changing the Tick Label Node Style
3 % Label: "ex:plotxynodestyle"
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 \begin{document}
30 \DTLplot{xydata}{
31 x=X, y={Y},
32 tick-dir=out, x-tick-gap=1, round-x=0, round-y=1,
33 extend-x-axis={0,1}, extend-y-axis={0,0.5},
34 x-tick-label-style={font=\small},
35 y-tick-label-style={anchor=south east,inner sep=1pt,rotate=45,font=\small},
36 tick-label-offset=0pt,
37 max-x-label={$x$}, max-y-label={$y$},
38 style=lines, width=3in, height=3in
39 }
40 \end{document}