forked from xuyuan/pgf-pie
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
In the following links, the legend's position modified is not user-friendly:
- https://tex.stackexchange.com/questions/503651/pie-chart-with-joined-legend-position?noredirect=1&lq=1
- https://tex.stackexchange.com/questions/631263/pie-chart-with-legend-position-south?noredirect=1&lq=1
And I found that:
pgf-pie/tex/latex/pgf-pie/tikzlibrarypie.code.tex
Lines 487 to 499 in ede5cee
| \def\pgfpie@legend#1{% | |
| \coordinate[xshift=0.8cm, | |
| yshift={(\the\pgfpie@sliceLength*0.5+1)*0.5cm}] (pgfpie@legendpos) at | |
| (current bounding box.east); | |
| \scope[node distance=0.5cm] | |
| \foreach \pgfpie@p/\pgfpie@t [count=\pgfpie@i from 0] in {#1} | |
| { | |
| \pgfpie@findColor{\pgfpie@i} | |
| \node[draw, fill={\pgfpie@thecolor}, \pgfpie@style, below of={pgfpie@legendpos}, label={0:{\pgfpie@t\pgfpie@ifnumberinlegend{~\pgfpie@legendnumbertext{\pgfpie@p}}{}}}] (pgfpie@legendpos) {}; | |
| } | |
| \endscope | |
| } |
The anchor of legend is pinned down above.
Is that possible to support flexible legend's position control by just options?
Metadata
Metadata
Assignees
Labels
No labels