Skip to content
Snippets Groups Projects
Commit 3dcc9e1d authored by Thorsten Wißmann's avatar Thorsten Wißmann :guitar:
Browse files

Move sloped labels a bit to the outside

parent e1da2ce8
No related branches found
Tags wahl2016
No related merge requests found
......@@ -71,6 +71,11 @@
? (\labelarc - 180)
: \labelarc}
\pgfmathsetmacro{\middle}{0.5*\startarc+0.5*\endarc}
\pgfmathsetmacro{\labelradius}{
(\percent < 20)
? (0.6*\radius+0.4*\smallradius)
: (0.5*\radius+0.5*\smallradius)
}
\ifthenelse{\lengthtest{\percent pt < 20.0pt}}{
\edef\mypath{(\startarc:\smallradius cm)
-- (\endarc:\smallradius cm)
......@@ -103,7 +108,7 @@
% ] (-\radius cm,0) -| (\radius cm,\radius cm) -| cycle;
\draw[segment,fill=\curcolor,draw=boxbg] \mypath;
\node [anchor=center,rotate=\labelarc, shape border rotate=0]
at (\middle:0.5*\radius+0.5*\smallradius)
at (\middle:\labelradius)
{\sf{\color{percentcolor}
\seats\ \ifthenelse{\equal{\seats}{1}}{Sitz}{Sitze}}};
%\draw (\middle:\radius) -- (\middle:0.5+\radius) node[\anchor] {\name};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment