bei einem Plot mit pgfplots möchte ich die x-Achsenbeschriftung zwischen den x-Ticks setzen. Die x-Achse selber wird durch Wörter beschriftet. Hier ein MWE:
\documentclass[border=1cm]{standalone} \usepackage{tikz,pgfplots,pgfplotstable,filecontents} \begin{filecontents}{mytable.csv} X,Y Label1,4 Label2,3 \end{filecontents} \pgfplotstableread[col sep=comma]{mytable.csv}\testtable \begin{document} \begin{tikzpicture} \begin{axis}[ axis lines=left, axis line shift=10pt, enlarge x limits={abs=1cm}, xtick=data, xticklabels from table={\testtable}{X}, xticklabel style={rotate=50,anchor=east}, ] \addplot [mark=diamond] table [x expr=\coordindex,y=Y] {\testtable}; \end{axis} \end{tikzpicture} \end{document}
