EDIT The accepted answer completely solves my immediate problem, but for more detailed analysis of the underlying issue please refer to answer by cfr. Basically, pstricks and pdfTex don't mix well.
I have a beamer presentation with a lot of pie charts. I use pgf-pie package because it is easy and (mostly) does what I need. I have one particular pie-chart that should have no labels at all. I have tried adding
/tikz/nodes={text opacity=0,overlay}
to the code following advice found here.
Small pie-chart without any numbers or text
\documentclass{standalone}
\usepackage{pgf-pie}
\begin{document}
\begin{tikzpicture}
\pie [explode=0.1, color={blue!70, green!80, red, yellow} ,/tikz /nodes={text opacity=0,overlay}]{10/, 20/, 30/, 40/}
\end{tikzpicture}
\end{document}
Now, the strange thing is, the code works well in the example above (standalone class). However, it doesn't seem to do anything inside a beamer presentation, i.e. the labels still show. It seems that there is some sort of package conflict. How could I enable this to work in the beamer presentation? I know there are other ways to produce this but pgf-pie is quite handy otherwise.
\documentclass[12pt,compress]{beamer}
\usetheme{Warsaw}
\setbeamertemplate{navigation symbols}{}%remove navigation symbols
\setbeamercolor{alerted text}{fg=magenta}
%\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{wasysym}
\usepackage{multicol}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{xcolor}
%\usepackage{iwona}
\usepackage{wrapfig}
\input{FactorTree}
\usepackage{pstricks}
\usetikzlibrary{matrix}
\usepackage{tkz-euclide}
\usetkzobj[all]
\usepackage{xlop}
\usepackage{tcolorbox}
\usepackage{pgfplots}
\usepackage{pgf-pie}
\usepackage[makeroom]{cancel}
\input{longdiv}
Best Answer
The command
\pgfpie@slice
defined inpgf-pie.sty
to draw circular diagramNumbers inside circle are defined with argument
#3
of the command\pgfpie@slice
, you can for example modify the definition of\beforenumber
and\afternumber
to obtain a phantom like command to hide numbersFor this you can just add
before number=\phantom
andafter number=
Code