0% found this document useful (0 votes)
2 views

Matplotlib Programs

The document outlines four programming tasks involving data visualization. The tasks include creating a horizontal bar chart for class strengths, analyzing student performance subject-wise using matplotlib, visualizing a weather report with line plots, and comparing sugar levels between men and women using a histogram. Each task specifies the data to be used and the desired output format.

Uploaded by

shwetassharma091
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Matplotlib Programs

The document outlines four programming tasks involving data visualization. The tasks include creating a horizontal bar chart for class strengths, analyzing student performance subject-wise using matplotlib, visualizing a weather report with line plots, and comparing sugar levels between men and women using a histogram. Each task specifies the data to be used and the desired output format.

Uploaded by

shwetassharma091
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

1. Write a program to display a horizontal bar chart of the number of students in a class.

Class: 1= I, II, III, IV, V, VI, VII, VIII, IX, X, XI and XII.

Strengths: 40, 43, 33, 41,50, 49, 47, 50, 42, 44, 46,39
2. Write a program to analyze the performance of the students subject wise on the school

result data using matplotlib library.

Name Maths Science SSt HINDI Total

Aditya 55 76 69 79 279

Saloni 77 88 55 66 286

Muskan 98 87 90 93 368

Tamanna 90 99 96 91 376
3. Write a program to visualize a weather report for three consecutive weeks through Line Plot

using ‘Weather.csv’ .

Week1 Week2 Week3

36 37 36

38 39 40

42 41 40

40 41 42

39 40 41
4. Given below are the sugar levels for men and women in a city. Compare the sugar levels

amongst them through a histogram.

Men: [112,85,149,82,129]

Women: [67,77,76,150,100]

You might also like