I've been drawing some charts with Matplotlib, I have a pie chart and want to draw arrows around the chart that makes every label points to the chart, I've got an example:
This is my current code:
import matplotlib.pyplot as plt
plt.rcParams['font.family'] = 'Arial'
labels = ['Section 1', 'Section 2', 'Section 3', 'Section 4', 'Section 5']
sizes = [20, 20, 20, 20, 20]
fig1, ax1 = plt.subplots()
fig1.set_size_inches(3,3)
ax1.pie(sizes, explode=None, labels=labels, autopct='',
shadow=False, startangle=0)
ax1.axis('equal') # Equal aspect ratio ensures that pie is drawn as a circle.
plt.savefig('real.png', bbox_inches = 'tight',
pad_inches = 0)
plt.show()
The current code produces this chart:
How can I achieve the above (first) image result?


