English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

Write the plot for the following pie chart output.

Advertisements
Advertisements

Question

Write the plot for the following pie chart output.

Short/Brief Note
Advertisements

Solution

‘import matplotlib.pyplot as pit
slices = [7,2,2,13]
activities = [‘sleeping’, ‘eating’, ‘working’, ‘playing’]
plt.pie(slices, labels = activities, autopct = ‘y.1.1 f % %‘)
plt.title(‘Interesting Graph check it out’)
plt.show( )

shaalaa.com
Data Visualization Definition
  Is there an error in this question or solution?
Chapter 16: Data visualization using pyplot: line chart, pie chart and bar chart - Evaluation [Page 333]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 12 TN Board
Chapter 16 Data visualization using pyplot: line chart, pie chart and bar chart
Evaluation | Q 4. | Page 333
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×