von brisi » Di 13. Dez 2022, 07:53
Super, vielen vielen herzlichen Dank für Deine rasche Hilfe!!
Sorry noch eine kleine Rückfrage: Die Grafik sollte in einen zweispaltigen Text, sodass sie schön in die Spalte passt, deshalb die Angabe
width=7cm. Würdest Du zum verkleinern
\resizebox{\linewidth}{}{} verwenden?
Oder gibt es eine bessere Lösung?
\documentclass[
ngerman,
fontsize = 11pt,
parskip = half,
headings = small,
]{scrartcl}
% Basispakete
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
% Schrift und Farbe
\usepackage[default]{sourcesanspro}
\usepackage[scale = 1]{sourcecodepro}
\usepackage{microtype}
\usepackage{amssymb,amsmath,wasysym}
\usepackage{lipsum}
\title{Titel}
\author{tl}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\columnsep0.9cm
\twocolumn[\maketitle]
\lipsum[2-4]
\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}
Super, vielen vielen herzlichen Dank für Deine rasche Hilfe!!
Sorry noch eine kleine Rückfrage: Die Grafik sollte in einen zweispaltigen Text, sodass sie schön in die Spalte passt, deshalb die Angabe [tt]width=7cm[/tt]. Würdest Du zum verkleinern [tt]\resizebox{\linewidth}{}{}[/tt] verwenden?
Oder gibt es eine bessere Lösung?
[code]
\documentclass[
ngerman,
fontsize = 11pt,
parskip = half,
headings = small,
]{scrartcl}
% Basispakete
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
% Schrift und Farbe
\usepackage[default]{sourcesanspro}
\usepackage[scale = 1]{sourcecodepro}
\usepackage{microtype}
\usepackage{amssymb,amsmath,wasysym}
\usepackage{lipsum}
\title{Titel}
\author{tl}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\columnsep0.9cm
\twocolumn[\maketitle]
\lipsum[2-4]
\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}
[/code]