FunctionRacerProblemsRace

Slices of the Whole

BeginnermatplotlibPython

Draw a pie chart in which each name gets a slice in proportion to its size, labeled with the name. Return the figure.

Checked: the wedges and the texts.

Example 1

names ["rent","food","fun"]
sizes [50,30,20]
draws
The chart to draw in example 1 of Slices of the Whole

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More matplotlib problems