I want to remove ticks from the top and right axes of the bounding box of a plot generated with pgfplots. Any help appreciated.
Here is sample code which generates unwanted ticks.
\documentclass{article}
\usepackage{pgfplots,siunitx}
\pgfplotsset{compat=1.8}
\pgfplotstableread{
celc fahr
0 32
20 68
40 104
60 140
80 176
100 212
}\mytable
\begin{document}
\begin{tikzpicture}
\begin{axis}[xlabel={\si{\degreeCelsius}},
ylabel={\si{\degree F}}]
\addplot table \mytable;
\end{axis}
\end{tikzpicture}
\end{document}
The result, with unwanted ticks in top and right:
I realize this sounds very basic but a search for examples to guide me has not panned out.
axis lines
.tick pos=right
but this turns off ticks on the left y line AND the bottom line and sets the tick label on the top x axis.y dir = reverse
.y dir = reverse
, instead I usedyticklabel pos=right
, I mixed those up in my answer.