% This file is embedded in datatool-user.pdf version 3.0.1 2025-03-05 % Example 173 Extending the Axes % Label: "ex:plotxyextend" % 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]{xydata} \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}, tick-label-style={font=\small}, tick-label-offset=0pt, max-x-label={$x$}, max-y-label={$y$}, style=lines, width=3in, height=3in } \end{document}