Question:

What does the explode property in the pie chart do?

Show Hint

Explode moves slices out by a fraction of the radius. It is not about colour, border or rotation.
Updated On: Oct 1, 2026
  • Adds border to the pie chart
  • Changes the chart color
  • Specifies the fraction of the radius with which to expand each slot
  • Rotates the chart clockwise
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

Step 1: Understanding the Concept:
In Matplotlib, plt.pie(values, explode=[0, 0.1, 0, 0]) pulls selected slices out of the circle. The explode list has one number per slice. Each number is the fraction of the radius by which that slice is moved away from the centre.

Step 2: Check option 1.
A border or edge is set with the wedgeprops argument, not with explode. So option 1 is wrong.

Step 3: Check option 2.
Colours are set with the colors argument. Explode does not change them. So option 2 is wrong.

Step 4: Check option 3.
Explode gives the fraction of the radius with which each slice is offset from the centre. This is exactly the definition in the Matplotlib documentation. So option 3 is correct.

Step 5: Check option 4.
Rotation of the start angle is done with startangle, and the direction with counterclock. Explode does not rotate the chart. So option 4 is wrong.

Step 6: Final Answer:
The explode property sets the fraction of the radius by which each slice is expanded, which is option 3. \[ \boxed{3} \]
Was this answer helpful?
0
0