# How to skip ticks in pgfplots plot?

I have frequently the problem that too many data points are available for the x axis, I want to show them all in the actual plot, but I would like to show only a subset of the ticks. For instance, if I have values 2^3,..,2^32 in my x axis, I would like to display only 2^3, 2^5, 2^7 and so on (show one, skip one)

An example output is here:

The figure code would be:

\begin{figure}[!htb]
\centering
\begin{tabular}{rl}
\hspace{-5mm}
\begin{tikzpicture}
\begin{axis}[title = GB/s, xtick=data, xmode=log,log basis x={2},
width=8cm, height=5.5cm,  ymajorgrids,legend columns=-1,
legend entries={MinMax UT, MinMax SSE, MinMax AVX2},
legend to name=named, legend style = {font = {\sffamily\scriptsize}} ]
\foreach \p in {1,3,5} {\addplot table [y index = \p] from \tableRAW;}
\end{axis}
\end{tikzpicture}%
\hspace{-4mm}
&
\begin{tikzpicture}
\begin{axis}[title = Average CM/op, ymode=log, xtick=data, xmode=log,log         basis x={2},
width=8cm, height=5.5cm,  ymajorgrids, ]
\foreach \p in {2,4,6} {\addplot table [y index = \p] from \tableRAW;}
\end{axis}
\end{tikzpicture}%
\\
\multicolumn{2}{c}{\ref{named}}\\
\end{tabular}
\vspace{-3mm}
\caption{Average values obtained for extrema computation experiment.}
\label{fig:extrema}
\end{figure}


You could give the xticks directly. The manual reveals that one can use the 1,3,...,19 writing style (as it is used in a foreach statement). A minimal example without data would be

\documentclass{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{loglogaxis}[
log basis x = {2},
xtickten = {5,7,...,19},
]

The xtickten option is used to provide the ticks instead of xtick because I gave exponents instead of the full value.