chef: Graph aufgehübscht

This commit is contained in:
Jörg Thalheim 2014-04-04 11:57:58 +02:00
parent c987540949
commit 9636866665

View File

@ -303,17 +303,17 @@ Entwicklern genutzt wird. Letztere verwenden bevorzugt Github.
\begin{figure}[h] \begin{figure}[h]
\pgfplotstableread{ \pgfplotstableread{
%Gesamt Puppet Ruby Shell Python Javascript Perl Puppet Ruby Shell Python Javascript Perl Andere
12661 0 9902 321 148 124 42 0 9902 321 148 124 42 260
14325 7315 3108 751 207 157 137 7315 3108 751 207 157 137 211
}\dataset }\dataset
\definecolor{bblue}{HTML}{4F81BD} \definecolor{bblue}{HTML}{4F81BD}
\definecolor{rred}{HTML}{C0504D} \definecolor{rred}{HTML}{C0504D}
\definecolor{ggreen}{HTML}{9BBB59} \definecolor{ggreen}{HTML}{9BBB59}
\definecolor{ppurple}{HTML}{9F4C7C} \definecolor{ppurple}{HTML}{9F4C7C}
\begin{tikzpicture} \begin{tikzpicture}
\begin{axis}[ybar, \begin{axis}[ybar stacked,
width=\textwidth, width=12cm,
enlarge x limits=0.5, enlarge x limits=0.5,
height=10cm, height=10cm,
ymin=0, ymin=0,
@ -323,28 +323,25 @@ Entwicklern genutzt wird. Letztere verwenden bevorzugt Github.
ylabel={Anzahl der Suchtreffer}, ylabel={Anzahl der Suchtreffer},
xtick=data, xtick=data,
xticklabels = { xticklabels = {
\strut Chef, \strut Chef (Gesamt: 12661),
\strut Puppet \strut Puppet (Gesamt: 14325)
}, },
%xticklabel style={yshift=-10ex},
major x tick style = {opacity=0}, major x tick style = {opacity=0},
every node near coord/.append style={ every node near coord/.append style={
anchor=west, anchor=west,
rotate=90 rotate=90
}, },
legend entries={Gesamt, Puppet, Ruby, Shell, Python, Javascript, Perl}, legend entries={Puppet, Ruby, Shell, Python, Javascript, Perl, Andere},
legend columns=13, legend columns=13,
legend style={ anchor=north west,at={(axis description cs:0,-0.1)}}
%legend style={draw=none,nodes={inner sep=10pt}},
] ]
\addplot[draw=black,fill=rred, nodes near coords] table[x index=0,y index=0] \dataset; \addplot[draw=black,fill=rred] table[x index=0,y index=0] \dataset;
\addplot[draw=black,fill=ggreen, nodes near coords] table[x index=0,y index=1] \dataset; \addplot[draw=black,fill=ggreen] table[x index=0,y index=1] \dataset;
\addplot[draw=black,fill=bblue, nodes near coords] table[x index=0,y index=2] \dataset; \addplot[draw=black,fill=bblue] table[x index=0,y index=2] \dataset;
\addplot[draw=black,fill=ppurple, nodes near coords] table[x index=0,y index=3] \dataset; \addplot[draw=black,fill=ppurple] table[x index=0,y index=3] \dataset;
\addplot[draw=black,fill=magenta, nodes near coords] table[x index=0,y index=4] \dataset; \addplot[draw=black,fill=magenta] table[x index=0,y index=4] \dataset;
\addplot[draw=black,fill=yellow, nodes near coords] table[x index=0,y index=5] \dataset; \addplot[draw=black,fill=yellow] table[x index=0,y index=5] \dataset;
\addplot[draw=black,fill=black, nodes near coords] table[x index=0,y index=6] \dataset; \addplot[draw=black,fill=black] table[x index=0,y index=6] \dataset;
\end{axis} \end{axis}
\end{tikzpicture} \end{tikzpicture}
\caption{Anzahl der Suchtreffer auf Github aufgeschlüsselt nach \caption{Anzahl der Suchtreffer auf Github aufgeschlüsselt nach
@ -352,9 +349,9 @@ Programmiersprache für die Begriffe ``Chef'' und ``Puppet''.}
\end{figure} \end{figure}
\begin{table}[h] \begin{table}[h]
\caption{Rohdaten für das Diagramm} \caption{Ausgangsdaten für das Diagramm}
\begin{tabular}{l|c|c|c|c|c|c|c|c|c|c|c|c} \begin{tabular}{l|c|c|c|c|c|c|c|c|c|c|c|c}
Sprache & \textbf{Ruby} & \textbf{Puppet} & \textbf{Shell} & \textbf{Python} & \textbf{Javascript} & \textbf{Perl} & \textbf{PHP} & \textbf{Java} & \textbf{VimL} & \textbf{CSS} & \textbf{C} & \textbf{C++} \\\hline Sprache & \textbf{Ruby} & \textbf{Puppet} & \textbf{Shell} & \textbf{Python} & \textbf{Javascript} & \textbf{Perl} & PHP & Java & VimL & CSS & C & C++ \\\hline
\textbf{Chef} & 9,902& - & 321 & 148 & 124 & 42 & 56 & 88 & - & 31 & 48& 37 \\\hline \textbf{Chef} & 9,902& - & 321 & 148 & 124 & 42 & 56 & 88 & - & 31 & 48& 37 \\\hline
\textbf{Puppet} & 3,108& 7,315 & 751 & 207 & 157 & 137 & 82 & 42 & 64 & 23 & - & - \\ \textbf{Puppet} & 3,108& 7,315 & 751 & 207 & 157 & 137 & 82 & 42 & 64 & 23 & - & - \\
\end{tabular} \end{tabular}