Überarbeitungsverlauf[Zurück]
Klicke auf Einblenden/Ausblenden von Überarbeitungen 2
Hinweis aus einem Eigenkommentar in die Antwort eingebaut

29 Dez '21, 10:56

gast3's gravatar image

gast3
(ausgesetzt)

Hier der Code mit den Wenn ich quer liegenden Balken im Diagramm: Diagramm verwende, passt alles zu meinen Anforderungen: \documentclass[]{letter} %----------------------- % Fuer Balkendiagramme \usepackage{tikz} \usepackage{pgfplots} \usepackage{pgfplotstable} \usetikzlibrary{calc} \pgfplotsset{ compat=1.9, xlabel near ticks, ylabel near ticks } %----------------------- \begin{document} \begin{tikzpicture} \begin{axis}[ title=Kreismeisterschaften, xbar, xmin=0, xlabel={Anzahl Starter}, height=17cm, width=11.5cm, bar width=0.2cm, legend style={ at={(0.5,-0.1)}, anchor=north, legend columns=-1 }, symbolic y coords={% {2019}, {2018}, {2017}, {2016}, {2015}, {2014}, {2013}, {2012}, {2011}, 2010}, ytick=data, nodes near coords, nodes near coords align={horizontal}, ytick=data, grid, ] % 1. Platz \addplot coordinates { (18,{2019}) (13,{2018}) (12,{2017}) (15,{2016}) (9,{2015}) (1,{2014}) (3,{2013}) (3,{2012}) (1,{2011}) (3,2010)}; %2. Platz \addplot coordinates { (12,{2019}) (4,{2018}) (8,{2017}) (7,{2016}) (3,{2015}) (3,{2014}) (4,{2013}) (2,{2012}) (4,{2011}) (3,2010)}; %3. Platz \addplot coordinates { (5,{2019}) (2,{2018}) (5,{2017}) (5,{2016}) (3,{2015}) (6,{2014}) (3,{2013}) (3,{2012}) (4,{2011}) (1,2010)}; % Starter gesamt \addplot coordinates { (47,{2019}) (39,{2018}) (45,{2017}) (37,{2016}) (42,{2015}) (38,{2014}) (43,{2013}) (25,{2012}) (17,{2011}) (23,2010)}; \legend{1. Platz, 2. Platz, 3. Platz, Starter gesamt} \end{axis} \end{tikzpicture} \end{document}
Klicke auf Einblenden/Ausblenden von Überarbeitungen 1

28 Dez '21, 14:20

jkrais's gravatar image

jkrais
7125

Hier der Code mit den quer liegenden Balken im Diagramm: \documentclass[]{letter} %----------------------- % Fuer Balkendiagramme \usepackage{tikz} \usepackage{pgfplots} \usepackage{pgfplotstable} \usetikzlibrary{calc} \pgfplotsset{ compat=1.9, xlabel near ticks, ylabel near ticks } %----------------------- \begin{document} \begin{tikzpicture} \begin{axis}[ title=Kreismeisterschaften, xbar, xmin=0, xlabel={Anzahl Starter}, height=17cm, width=11.5cm, bar width=0.2cm, legend style={ at={(0.5,-0.1)}, anchor=north, legend columns=-1 }, symbolic y coords={% {2019}, {2018}, {2017}, {2016}, {2015}, {2014}, {2013}, {2012}, {2011}, 2010}, ytick=data, nodes near coords, nodes near coords align={horizontal}, ytick=data, grid, ] % 1. Platz \addplot coordinates { (18,{2019}) (13,{2018}) (12,{2017}) (15,{2016}) (9,{2015}) (1,{2014}) (3,{2013}) (3,{2012}) (1,{2011}) (3,2010)}; %2. Platz \addplot coordinates { (12,{2019}) (4,{2018}) (8,{2017}) (7,{2016}) (3,{2015}) (3,{2014}) (4,{2013}) (2,{2012}) (4,{2011}) (3,2010)}; %3. Platz \addplot coordinates { (5,{2019}) (2,{2018}) (5,{2017}) (5,{2016}) (3,{2015}) (6,{2014}) (3,{2013}) (3,{2012}) (4,{2011}) (1,2010)}; % Starter gesamt \addplot coordinates { (47,{2019}) (39,{2018}) (45,{2017}) (37,{2016}) (42,{2015}) (38,{2014}) (43,{2013}) (25,{2012}) (17,{2011}) (23,2010)}; \legend{1. Platz, 2. Platz, 3. Platz, Starter gesamt} \end{axis} \end{tikzpicture} \end{document}