% This file is embedded in datatool-user.pdf version 3.4.3 2025-12-04
% Example 178 Changing the Tick Label Node Style
% Label: "ex:plotxynodestyle"
% arara: pdflatex
% arara: pdfcrop
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{filecontents}[noheader,overwrite]{xydata.csv}
X,Y
-3.5,-2.75
-3,3
-2.5,-1
-1,1.5
1,-4.2
2.6,1.8
3.2,-0.4
\end{filecontents}

\usepackage{dataplot}
\DTLsetup{store-datum}
\DTLread[
 name=xydata,
 format=csv,
 csv-content=no-parse
 , data-types=decimal
]{xydata.csv} 

\renewcommand{\DTLplotdisplayticklabel}[1]{\ensuremath{#1}} 
\begin{document}
 \DTLplot{xydata}{
 x=X, y={Y},
 tick-dir=out, x-tick-gap=1, round-x=0, round-y=1,
 extend-x-axis={0,1}, extend-y-axis={0,0.5},
 x-tick-label-style={font=\small},
 y-tick-label-style={anchor=south east,inner sep=1pt,rotate=45,font=\small},
 tick-label-offset=0pt,
 max-x-label={$x$}, max-y-label={$y$},
 style=lines, width=3in, height=3in
} 
\end{document}
