pgfplots und ungleichmäßige y-Achsenverteilung
Verfasst: Mo 11. Jun 2018, 12:06
Hallo zusammen, mein gestapeltes Balkendiagramm funktioniert soweit, allerdings ist die y-Achse in der Nähe des Ursprungs sehr gestaucht und ich weiß nicht, wie ich die Abstände gleichmäßig von 0-24 einstelle. Hier mal mein Code
Vielen Dank für Eure Hilfe im Voraus
\pgfplotsset{width=12cm,compat=1.8} %\begin{scheme} \begin{figure} \begin{tikzpicture} \begin{axis}[ ybar stacked, bar width=30pt, nodes near coords, enlargelimits=0.15, legend style={at={(0.5,-0.20)}, anchor=north,legend columns=-1}, ylabel={abcdefghijk }, symbolic x coords={2013, 2014, 2015, 2016, 2017}, xtick=data, x tick label style={rotate=45,anchor=east}, ] \addplot+[ybar] plot coordinates {(2013,12.73) (2014,12.94) (2015,14.11) (2016,14.8) (2017,15.1) }; \addplot+[ybar] plot coordinates {(2013,4.59) (2014,3.91) (2015,4.32) (2016,3.87) (2017,2.32) }; \addplot+[ybar] plot coordinates {(2013,1.22) (2014,1.14) (2015,0.98) (2016,1.03) (2017,0.71) }; \addplot+[ybar] plot coordinates {(2013,1.53) (2014,2.17) (2015,2.67) (2016,2.56) (2017,2.58) }; \legend{\strut APL, \strut ABL, \strut StbL, \strut SL} \end{axis} \end{tikzpicture} \caption{abcdefghijk {} } \end{figure}