The warning was:
coffee-flask/app.py:127: MatplotlibDeprecationWarning:
normalize=None does not normalize if the sum is less than 1 but
this behavior is deprecated since 3.3 until two minor releases
later. After the deprecation period the default value will be
normalize=True. To prevent normalization pass normalize=False
fig = plt.figure(figsize=(3, 3))
ax = fig.add_subplot(111)
ax.set_aspect(1)
- ax.pie(counts, autopct=lambda p: '{:.0f}'.format(p * sum(counts)/100) if p != 0 else '')
+ ax.pie(counts, autopct=lambda p: '{:.0f}'.format(p * sum(counts)/100) if p != 0 else '',
+ normalize=True)
ax.legend(flavors, bbox_to_anchor=(1.0, 1.0))
if "uid" in session: