I have a TikZ/PGF axis enviroment where by default numbers are shown along the ticks.
I want it to look like this:
(Axis without tick numbers)
I found out how to modify the ticks itself using something like
x tick label style={major tick length=0pt}
in the options of an axis environment.
But I couldn't find out how to modify the numbers along the ticks itself.
Isn't there an option to hide them?
My current code to generate the 1st example:
\documentclass{scrartcl}
\usepackage{tikz}
\usetikzlibrary{plotmarks}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
title={Test Axis},
xlabel={Test X Label},
ylabel={Test Y Label},
]
\end{axis}
\end{tikzpicture}
\end{document}
Best Answer
Just add
yticklabels={,,}
to the options for theaxis
environment. Your example then looks like shown below.This feature is documented in Section 4.14.2 (Tick Alignment: Positions and Shifts) on page 180 of the pgfplots 1.4.1 manual. Quite hidden in the last example of the mentioned section.