I'm a LaTeX rookie so I'm hoping someone will be able to help me. I've been stuck with this figure for quite some time and haven't found a solution.
Specifically, I have made 2 pie charts next to each other with a joined legend. The default option seems to stack the legend box in between the charts. How do I:
- Move the legend down south to underneath the boxes (I've try \legend.style which did not seem to do anything)
- Add a text to the top of each box to specify which group the data comes from (i.e. label Group 1 for the left box, and Group 2 for the right box).
Thank you very much for your help!
My MWE is:
\documentclass{article}
\usepackage{tikz}
\usepackage{pgf-pie}
\begin{document}\begin{figure}[h!]
\begin{tikzpicture}
\tikzset{lines/.style={draw=white},}
\pie [square, scale font,
color = {blue!10, blue!20, blue!40}, sum=auto, text=legend, after number = {\%}, every only number node/.style={text=black},style={lines}]{58/Unidentifiable ML,25/MOP only,11/SMO only,6/MOP \& SMP}
\pie [pos={11,0}, square, scale font,
color = {blue!10, blue!20, blue!40}, sum=auto, after number = {\%},every only number node/.style={text=black},style={lines}]{56/,18/,10/,16/}
\end{tikzpicture}
\caption{How do I move the legend down south}
\label{fg:R1pie}
\end{figure}
\end{document}

