Bar-Plot mit pgfplots zeigt nicht alle Datenpunkte an
Verfasst: Mo 12. Dez 2022, 15:25
Hallo zusammen
Ich habe versucht, einen einfachen Bar-Plot mit pgfplots zu erstellen. Leider schaffe ich es nicht alle Daten im Diagramm abzubilden. Ich habe an dem Parameter versucht zu schrauben, aber es funktioniert nicht.
Ich habe versucht, einen einfachen Bar-Plot mit pgfplots zu erstellen. Leider schaffe ich es nicht alle Daten im Diagramm abzubilden. Ich habe an dem Parameter
enlargelimits=0.05
\documentclass[11pt,a4paper,ngerman]{standalone} \usepackage[T1]{fontenc} \usepackage{babel} \usepackage{pgfplots} \pgfplotsset{width=7cm,compat=1.18} \begin{document} \begin{tikzpicture} \begin{axis}[ ybar, enlargelimits=0.05, legend style={at={(0.5,-0.5)}, anchor=north,legend columns=-1}, ylabel={Score}, symbolic x coords={Moodle,Blackboard,Smartest}, xtick=data, nodes near coords, nodes near coords align={vertical}, x tick label style={rotate=45,anchor=east}, ] \addplot coordinates {(Moodle,45) (Blackboard,60) (Smartest,75)}; \addplot coordinates {(Moodle,75) (Blackboard,60) (Smartest,60)}; \addplot coordinates {(Moodle,120) (Blackboard,150) (Smartest,150)}; \addplot coordinates {(Moodle,100) (Blackboard,60) (Smartest,60)}; \addplot coordinates {(Moodle,100) (Blackboard,40) (Smartest,40)}; \legend{Usebility, Privacy, Benefit, Interoperabilität, Kosten} \end{axis} \end{tikzpicture} \end{document}
- Was muss ich tun, dass alle Balken im Diagrammfeld angezeigt werden?
- Welche Einstellung erlaubt es mir, die Legende in zwei Zeilen anzuzeigen?