chef: Graph aufgehübscht
This commit is contained in:
parent
c987540949
commit
9636866665
@ -303,17 +303,17 @@ Entwicklern genutzt wird. Letztere verwenden bevorzugt Github.
|
||||
|
||||
\begin{figure}[h]
|
||||
\pgfplotstableread{
|
||||
%Gesamt Puppet Ruby Shell Python Javascript Perl
|
||||
12661 0 9902 321 148 124 42
|
||||
14325 7315 3108 751 207 157 137
|
||||
Puppet Ruby Shell Python Javascript Perl Andere
|
||||
0 9902 321 148 124 42 260
|
||||
7315 3108 751 207 157 137 211
|
||||
}\dataset
|
||||
\definecolor{bblue}{HTML}{4F81BD}
|
||||
\definecolor{rred}{HTML}{C0504D}
|
||||
\definecolor{ggreen}{HTML}{9BBB59}
|
||||
\definecolor{ppurple}{HTML}{9F4C7C}
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[ybar,
|
||||
width=\textwidth,
|
||||
\begin{axis}[ybar stacked,
|
||||
width=12cm,
|
||||
enlarge x limits=0.5,
|
||||
height=10cm,
|
||||
ymin=0,
|
||||
@ -323,28 +323,25 @@ Entwicklern genutzt wird. Letztere verwenden bevorzugt Github.
|
||||
ylabel={Anzahl der Suchtreffer},
|
||||
xtick=data,
|
||||
xticklabels = {
|
||||
\strut Chef,
|
||||
\strut Puppet
|
||||
\strut Chef (Gesamt: 12661),
|
||||
\strut Puppet (Gesamt: 14325)
|
||||
},
|
||||
%xticklabel style={yshift=-10ex},
|
||||
major x tick style = {opacity=0},
|
||||
every node near coord/.append style={
|
||||
anchor=west,
|
||||
rotate=90
|
||||
},
|
||||
legend entries={Gesamt, Puppet, Ruby, Shell, Python, Javascript, Perl},
|
||||
legend entries={Puppet, Ruby, Shell, Python, Javascript, Perl, Andere},
|
||||
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=ggreen, nodes near coords] 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=ppurple, nodes near coords] 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=yellow, nodes near coords] 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=rred] table[x index=0,y index=0] \dataset;
|
||||
\addplot[draw=black,fill=ggreen] table[x index=0,y index=1] \dataset;
|
||||
\addplot[draw=black,fill=bblue] table[x index=0,y index=2] \dataset;
|
||||
\addplot[draw=black,fill=ppurple] table[x index=0,y index=3] \dataset;
|
||||
\addplot[draw=black,fill=magenta] table[x index=0,y index=4] \dataset;
|
||||
\addplot[draw=black,fill=yellow] table[x index=0,y index=5] \dataset;
|
||||
\addplot[draw=black,fill=black] table[x index=0,y index=6] \dataset;
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
||||
\caption{Anzahl der Suchtreffer auf Github aufgeschlüsselt nach
|
||||
@ -352,9 +349,9 @@ Programmiersprache für die Begriffe ``Chef'' und ``Puppet''.}
|
||||
\end{figure}
|
||||
|
||||
\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}
|
||||
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{Puppet} & 3,108& 7,315 & 751 & 207 & 157 & 137 & 82 & 42 & 64 & 23 & - & - \\
|
||||
\end{tabular}
|
||||
|
Loading…
Reference in New Issue
Block a user