The output

Report a typo

What will be the resulting graph of the following code?

import matplotlib.pyplot as plt

data = [70.451, 20.333, 9.216]
labels = ['blue', 'orange', 'green']
colors = ['cornflowerblue', 'orange', 'greenyellow']

plt.pie(data, 
        labels=labels, 
        colors=colors, 
        startangle=180, 
        counterclock=False, 
        autopct = '%.2f')

plt.show()

A. A pie chart with startangle of 180 and direction clockwise B. A pie chart with startangle of 180 and direction counterclockwise

C.A pie chart with startangle of 90 and direction clockwise D. A pie chart with startangle of 0 and direction clockwise

Select one option from the list
___

Create a free account to access the full topic