Closed
Description
Bug report
Bug summary
Code for reproduction
# Paste your code here
values = [0.17205503009458298,
0.1122098022355976,
0.0005159071367153912,
0.4616509028374893,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0]
labels= ['Coal',
'Oil',
'Natural gas',
'Hydro',
'Geothermal',
'Solar PV',
'Wind',
'Tide',
'Nuclear',
'Biofuels',
'Waste',
'Solar thermal']
colors= [(0.0, 0.0, 0.0, 0.7),
(1.0, 0.0, 0.0, 0.7),
(0.5019607843137255, 0.5019607843137255, 0.5019607843137255, 0.7),
(0.0, 0.0, 0.5019607843137255, 0.7),
(0.8235294117647058, 0.4117647058823529, 0.11764705882352941, 0.7),
(1.0, 1.0, 0.0, 0.7),
(0.0, 0.5019607843137255, 0.5019607843137255, 0.7),
(0.0, 1.0, 1.0, 0.7),
(0.5019607843137255, 0.0, 0.5019607843137255, 0.7),
(0.0, 1.0, 0.0, 0.7),
(0.5647058823529412, 0.9333333333333333, 0.5647058823529412, 0.7),
(1.0, 0.8431372549019608, 0.0, 0.7)]
import matplotlib.pyplot as plt
fig,ax = plt.subplots()
ax.pie(x=values,labels=labels,labeldistance=None)
# End
Actual outcome
# If applicable, paste the console output here
#
#
Expected outcome
Matplotlib version
- Operating system: Windows
- Matplotlib version: 3.1.3
- Matplotlib backend (
print(matplotlib.get_backend())
):module://ipykernel.pylab.backend_inline - Python version: 3.7.6
- Jupyter version (if applicable):
- Other libraries:
Metadata
Metadata
Assignees
Labels
Open a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!