If you want to use autopct
, remember now you have 3 values to be unpacked instead of two, so change your code to wedges, plt_labels, junk = ax.pie([20, 40, 60], labels=labels, autopct='%1.1f%%')
will solve your problem
juck
is going to be the text.Text
objects of your percentage values.