Überarbeitungsverlauf[Zurück]
Klicke auf Einblenden/Ausblenden von Überarbeitungen 2

02 Mai '14, 14:16

cgnieder's gravatar image

cgnieder
22.1k253463

TikZ X-Achse bzw. Linie auf Höhe Null

Wie kann ich hier eine X-Achse/Linie bei Null einzeichnen? Ich möchte Zu- und Abnahme darstellen. Für alterantive Formen der Darstellung bin ich offen. \documentclass{article} \usepackage{pgfplots} \usepackage{tikz} \usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,positioning,fit,petri,shapes} \begin{document} \begin{figure}[h] \centering \begin{tikzpicture} \begin{axis}[ /pgf/number format/.cd, use comma,1000 sep={}, ybar=10pt,height=8cm,width=12cm, ymin=-70, enlargelimits=0.15, enlarge y limits=false, enlarge y limits={upper,value=0.22}, legend style={ at={(current bounding box.south-|current axis.south)}, anchor=north, legend columns=-1 }, ylabel={Test y}, xlabel={Test x}, every axis x label/.style={at={(current axis.south)},below=7mm}, symbolic x coords={1,2,3,4,5}, xtick=data, nodes near coords, nodes near coords align={vertical} ] \addplot coordinates {(1,45.8) (2,-51.9) (3,51.6) (4,44.6) (5,-50.5) }; \end{axis} \end{tikzpicture} \caption{TEST}% \end{figure} \end{document}
Klicke auf Einblenden/Ausblenden von Überarbeitungen 1

26 Apr '14, 11:50

wiewowas's gravatar image

wiewowas
452203140

TikZ X-Achse bzw. Linie auf Höhe Null

Wie kann ich hier eine X-Achse/Linie bei Null einzeichnen? Ich möchte Zu- und Abnahme darstellen. Für alterantive Formen der Darstellung bin ich offen. \documentclass{article} \usepackage{pgfplots} \usepackage{tikz} \usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,positioning,fit,petri,shapes} \begin{document} \begin{figure}[h] \centering \begin{tikzpicture} \begin{axis}[ /pgf/number format/.cd, use comma,1000 sep={}, ybar=10pt,height=8cm,width=12cm, ymin=-70, enlargelimits=0.15, enlarge y limits=false, enlarge y limits={upper,value=0.22}, legend style={ at={(current bounding box.south-|current axis.south)}, anchor=north, legend columns=-1 }, ylabel={Test y}, xlabel={Test x}, every axis x label/.style={at={(current axis.south)},below=7mm}, symbolic x coords={1,2,3,4,5}, xtick=data, nodes near coords, nodes near coords align={vertical} ] \addplot coordinates {(1,45.8) (2,-51.9) (3,51.6) (4,44.6) (5,-50.5) }; \end{axis} \end{tikzpicture} \caption{TEST}% \end{figure} \end{document}