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

Torte jetzt mit uselessgaps

parent 8e0cc05e
No related branches found
No related tags found
No related merge requests found
......@@ -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}
......
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