From 336a8182b23adfab0088943dfe863b85778cd20c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thorsten=20Wi=C3=9Fmann?= <edu@thorsten-wissmann.de>
Date: Sun, 1 Jul 2012 23:24:35 +0200
Subject: [PATCH] Torte jetzt mit uselessgaps

---
 wahlergebnis.tex | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/wahlergebnis.tex b/wahlergebnis.tex
index fd8e56f..2efa6df 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}
-- 
GitLab