[Tex/LaTex] How to remove ticks from the top and right axes of a plot generated with PGFPlots

pgfplotstikz-pgf

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:

example

I realize this sounds very basic but a search for examples to guide me has not panned out.

Best Answer

You can use the xtick pos, ytick pos keys:

\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}},
xtick pos=left,
ytick pos=left]
    \addplot table \mytable;
    \end{axis}
\end{tikzpicture}
\end{document}

enter image description here