diff --git a/wahlergebnis.tex b/wahlergebnis.tex index fd8e56f02a30c733a277dff74308f141649556ae..2efa6df5bffe2f37488a710dac2055fd30ed7703 100644 --- a/wahlergebnis.tex +++ b/wahlergebnis.tex @@ -50,17 +50,20 @@ \begin{tikzpicture}[scale=2.0] \pgfmathsetmacro{\curarc}{0} % starting angle \pgfmathsetmacro{\radius}{3} + \pgfmathsetmacro{\smallradius}{.7} \foreach \percent/\anchor/\name/\curcolor [remember=\curarc] in { #1} { \pgfmathsetmacro{\lastarc}{\curarc} \pgfmathsetmacro{\curarc}{\lastarc+3.6*\percent/2} - \pgfmathsetmacro{\endarc}{\curarc} - \pgfmathsetmacro{\middle}{0.5*\lastarc+0.5*\curarc} + \pgfmathsetmacro{\startarc}{\lastarc+1} + \pgfmathsetmacro{\endarc}{\curarc-1} + \pgfmathsetmacro{\middle}{0.5*\startarc+0.5*\endarc} \draw[fill=\curcolor, draw=none] - (0,0) -- (\endarc:\radius cm) arc (\endarc:\lastarc:\radius cm) - node at (\middle:0.6*\radius) {{\bf\color{percentcolor}\percent \%}} -- - cycle; + (\startarc:\smallradius cm) arc (\startarc:\endarc:\smallradius cm) + -- (\endarc:\radius cm) arc (\endarc:\startarc:\radius + cm) -- cycle + node at (\middle:0.5*\radius+0.5*\smallradius) {{\bf\color{percentcolor}\percent \%}}; %\draw (\middle:\radius) -- (\middle:0.5+\radius) node[\anchor] {\name}; %\draw (\middle:1.1*\radius) node[\anchor] {\color{\curcolor}\name}; %\draw[color=linecolor, very thick] (0,0) -- (\curarc:\radius cm); @@ -144,6 +147,7 @@ \piechart{ 100/below left/FSIen-Liste TF/colfsien} } +Made with \LaTeX \end{document}