English

Name the plot which displays the statistical summary. Note: Give appropriate title, set xlabel and ylabel while attempting the following questions.

Advertisements
Advertisements

Question

Name the plot which displays the statistical summary.

Note: Give appropriate title, set xlabel and ylabel while attempting the following questions.

Code Writing
Advertisements

Solution

The plot which displays the statistical summary of data is called a Box Plot (Box and Whisker Plot).

A box plot shows the minimum value, maximum value, median, and quartile values of a dataset.

import matplotlib.pyplot as plt
marks = [15, 18, 21, 22, 25]
plt.boxplot(marks)
plt.title("Statistical Summary of Student Marks")
plt.xlabel("Class 12 Students")
plt.ylabel("Marks Scored")
plt.show()
shaalaa.com
  Is there an error in this question or solution?
Chapter 4: Plotting Data using Matplotlib - Exercise [Page 134]

APPEARS IN

NCERT Informatics Practices [English] Class 12
Chapter 4 Plotting Data using Matplotlib
Exercise | Q 9. | Page 134
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×