Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Open
Milestone
Description
Bug summary
After upgrading version from 3.3.4 to 3.5.2, pie chart generation crashes with [0,0] data.
With v3.3.4, pie chart shows empty chart.
But on 3.5.2, it crashes with errorcannot convert float NaN to integer
.
Code for reproduction
importmatplotlib.pyplotaspltfig1,ax1=plt.subplots()fig1.set_size_inches(2.8,2.8)patches,texts,autotexts=ax1.pie([0,0])
Actual outcome
cannot convert float NaN to integer
Expected outcome
Chart with 0% in center
Additional information
No response
Operating system
Windows, Ubuntu
Matplotlib Version
3.5.2
Matplotlib Backend
TkAgg
Python version
3.8.10
Jupyter version
No response
Installation
pip