Skip to main content
Chapter 4 of 7
NCERT Solutions

Plotting Data using Matplotlib

CBSE · Class 12 · Informatics Practices

NCERT Solutions for Plotting Data using Matplotlib — CBSE Class 12 Informatics Practices.

63 questions78 flashcards5 concepts

Interactive on Super Tutor

Studying Plotting Data using Matplotlib? Get the full interactive chapter.

Quizzes, flashcards, AI doubt-solver and a step-by-step study plan — built for ncert solutions and more.

1,000+ Class 12 students started this chapter today

16 Questions Solved · 1 Section

8 worked solutions below. Unlock all 16 free in Super Tutor

Exercise

1What is the purpose of the Matplotlib library?Show solution
The Matplotlib library is used for creating static, animated, and interactive 2D plots or figures in Python.

Not sure why a step works? check your working in Super Tutor

2What are some of the major components of any graphs or plot?Show solution
The major components of a graph or plot are title, legend, ticks, x-label, and y-label.

Not sure why a step works? check your working in Super Tutor

3Name the function which is used to save the plot.Show solution
The function used to save the plot is `savefig()`.

Not sure why a step works? check your working in Super Tutor

4Write short notes on different customisation options available with any plot.Show solution
Pyplot provides many customisation options to make a chart more meaningful and readable. We can add a title using `title()`, set axis labels using `xlabel()` and `ylabel()`, show or hide grid lines using `grid()`, and display a legend using `legend()`. We can also change the appearance of the plot by using markers, colours, line styles, and line widths. For example, `marker='*'` adds star markers, `color='green'` changes the line colour, `linestyle='--'` makes a dashed line, and `linewidth=2` makes the line thicker. For bar charts and histograms, we can also adjust properties like edgecolor, fill, hatch, and in pie charts we can use explode and autopct.

Not sure why a step works? check your working in Super Tutor

5What is the purpose of a legend?Show solution
A legend is used to identify the plotted data and show which line, bar, or symbol belongs to which dataset.

Not sure why a step works? check your working in Super Tutor

6Define Pandas visualisation.Show solution
Pandas visualisation means using the built-in `.plot()` method of Series and DataFrame objects to plot graphs directly from Pandas data. It is a wrapper around Matplotlib’s pyplot plotting functions.

Not sure why a step works? check your working in Super Tutor

7What is open data? Name any two websites from which we can download open data.Show solution
Open data is data that is open to the public for access and use. The chapter names Open Government Data (OGD) Platform India at data.gov.in as one source. Another website can also be used from which open data is available, but among the chapter’s content, data.gov.in is explicitly given.

Not sure why a step works? check your working in Super Tutor

8Give an example of data comparison where we can use the scatter plot.Show solution
A scatter plot can be used for comparison where we want to show the relationship between two variables. From the chapter, an example is discount offered versus sales made.

Not sure why a step works? check your working in Super Tutor

9Name the plot which displays the statistical summary.
10Plot the following data using a line plot:
11Collect data about colleges in Delhi University or any other university of your choice and number of courses they run for Science, Commerce and Humanities, store it in a CSV file and present it using a bar plot.
12Collect and store data related to the screen time of students in your class separately for boys and girls and present it using a boxplot.
13Explain the findings of the boxplot of Figure 4.18 by filling the following blanks:
14Collect the minimum and maximum temperature of your city for a month and present it using a histogram plot.
15Conduct a class census by preparing a questionnaire. The questionnaire should contain a minimum of five questions. Questions should relate to students, their family members, their class performance, their health etc. Each student is required to fill up the questionnaire. Compile the information in numerical terms (in terms of percentage). Present the information through a bar, scatter-diagram. (NCERT Geography class IX, Page 60)
16Visit data.gov.in, search for the following in “catalogs” option of the website:

8 more solved questions in Plotting Data using Matplotlib

Every remaining exercise is solved step by step in Super Tutor, plus practice quizzes and flashcards for this chapter. Free to start.

Stuck on a step?

Ask Super Tutor AI to explain any solution on this page in a simpler way — free, 24x7.

Ask a Doubt Free

Frequently Asked Questions

What are the important topics in Plotting Data using Matplotlib for CBSE Class 12 Informatics Practices?
Plotting Data using Matplotlib covers several key topics that are frequently asked in CBSE Class 12 board exams. Focus on the core concepts listed on this page and practise related questions to build confidence.
How to score full marks in Plotting Data using Matplotlib — CBSE Class 12 Informatics Practices?
Understand the core concepts first, then work through the 63 practice questions available for this chapter. Revise formulas and definitions regularly, and use flashcards for quick recall before the exam.
Where can I get free NCERT Solutions for Plotting Data using Matplotlib Class 12 Informatics Practices?
This page has free step-by-step NCERT Solutions for every exercise question in Plotting Data using Matplotlib (CBSE Class 12 Informatics Practices) — written the way examiners award marks: given, formula, working, answer.

Sources & Official References

Content is aligned to the official syllabus. Refer to the board website for the latest curriculum.

For serious students

Get the full Plotting Data using Matplotlib chapter — for free.

Quizzes, flashcards, AI doubt-solver and a step-by-step study plan for CBSE Class 12 Informatics Practices.