[Pgfplots-features] Remove y ticks and labels
Brought to you by:
cfeuersaenger,
ludewich
|
From: Martin H. <mar...@go...> - 2010-06-01 19:54:58
|
Dear all, a question came up on mrunix.de about drawing a y axis without any tics and any axis labels. I experimented a bit and tried to use options such as separate axis lines=true, followed by a redefinition of the styles but nothing seems so work. Any ideas on how to draw just a black line? The label "y-Achse" should, however, not be effected. Best regards \documentclass{scrreprt} \usepackage[ngerman]{babel} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{document} \begin{figure} \centering \begin{tikzpicture} \begin{axis}[ % %hide y axis, xlabel={x-Achse} , ylabel={y-Achse}, %axis y line=box %y axis line style={-stealth}, %axis y line={left}, %axis y line={right} %hide axis, separate axis lines=true, %every outer y axis line/.style={tick style/.style={}} every y tick label/.style={} ] \addplot[mark=square*,blue] coordinates { (1, 1) (2, 5) (3, 20) }; \end{axis} \end{tikzpicture} \end{figure} \end{document} |