Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

if pie normalizes depends on input values #16905

Copy link
Copy link
Closed
@shankhoghosh

Description

@shankhoghosh
Issue body actions

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

plot

# 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

No one assigned

    Labels

    API: changesGood first issueOpen 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!

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.