Ich möchte gerne ein einfaches Balkendiagramm mit TikZ erstellen. Leider gibt es mir die Balken nicht richtig aus...
Habe versucht mit der Anleitung (https://tikz.dev/pgfplots/reference-2dplots) eine Lösung zu finden. Dabei habe ich folgenden Parameter gefunden:
bar width=2

Vielleicht hat von Euch jemand eine Idee!
Vielen vielen herzlichen Dank für jeden Hinweis!
\documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \usepgfplotslibrary{colorbrewer} \pgfplotsset{ compat=1.18, cycle list/Set1-8} \usetikzlibrary{pgfplots.statistics, pgfplots.colorbrewer, decorations.text,trees} \usepackage{pgfplotstable} \begin{document} \begin{tikzpicture} \begin{axis}[ ybar, bar width=2, enlargelimits=0.15, legend style={at={(0.5,-0.45)}, anchor=north,legend columns=-1}, ylabel={\# Teilnehmer:innen}, symbolic x coords={Schritt~für~Schritt~Leitfaden,Versionen~nach~Vorkenntnissen,Learning~by~Doing}, xtick=data, nodes near coords, nodes near coords align={vertical}, x tick label style={rotate=45,anchor=east}, ] %%Kursstruktur \addplot coordinates {(Schritt~für~Schritt~Leitfaden,7) (Versionen~nach~Vorkenntnissen,9) (Learning~by~Doing,11)}; \end{axis} \end{tikzpicture} \end{document}