Posts

Showing posts from July 4, 2019

Tell pgfplots to put tick labels between tick marks

Image
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0; } 1 Is it possible to tell pgfplots to put tick labels between the tick marks instead of at the tick marks? MWE: documentclass[margin=5pt]{standalone} usepackage{tikz} usepackage{pgfplots} begin{document} begin{tikzpicture} begin{axis}[ width=5in, height=3in, axis lines=middle, scaled ticks=false, xtick=empty, xmin=0, xmax=3, extra x ticks={0,1,2,3}, extra x tick labels={low,high,med}, ] addplot [mark=*,draw] coordinates {(0.5,2) (1.5,4) (2.5,3)}; end{axis} end{tikzpicture} end{document