Re: [Pgfplots-features] Remove y ticks and labels
Brought to you by:
cfeuersaenger,
ludewich
From: Sebastián P. S. <seb...@un...> - 2010-06-01 20:02:46
|
Hi Martin, The solution can be found in section 4.14 of the manual for version 1.3 : \documentclass{scrreprt} \usepackage[ngerman]{babel} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{document} \begin{figure} \centering \begin{tikzpicture} \begin{axis}[ % xlabel={x-Achse} , ylabel={y-Achse}, ytick=\empty, % That's the trick ] \addplot[mark=square*,blue] coordinates { (1, 1) (2, 5) (3, 20) }; \end{axis} \end{tikzpicture} \end{figure} \end{document} Greets, Sebastian Martin Hehn a écrit : > Dear all, > > a question came up on mrunix.de <http://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} > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Pgfplots-features mailing list > Pgf...@li... > https://lists.sourceforge.net/lists/listinfo/pgfplots-features > |