0% found this document useful (0 votes)
14 views1 page

Theoretical Question Based On Plotting

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

Theoretical Question Based On Plotting

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

Theoretical question based on Plotting

1. What do you by data visualization? Give two example of data visualization that we come across in our daily
life.

Ans. Data Visulization means pictorial or graphical representation of data.

2. Which library of python is to be imported for plotting?

Ans. matplotlib

3. Write short note on mat plot library.

Ans. Matplotlib is used for creating static, animated and interactive 2D- plots or figures in python.

4. Which module of matplotlib library is required for plotting?

Ans. pyplot

5. Write a statement to import pyplot module of matplotlib library.

Ans. Import matplotlib.pyplot as plt

6. Which function of pyplot module is used to create a chart?

Ans. Plot()

7. Which function is used to display figure created using plot function.

Ans. Show()

8. Write two ways of saving a chart or figure created in python using pyplot.

Ans. (i) we can click on the save button on the output window and save the plot as an image.

(ii) A figure can also be saved by using savefig() function.

9. Which function is used to plot bar chart and histogram right with statement?

Ans. Bar() is used to create bar chart. plt.bar()

Hist() is used to create histogram. Plt.hist()

10. Name four parameters of plot function.

Ans. (i) Marker

(ii) Color

(iii) linestyle

(iv) linewidth

Created by Garima Singh

You might also like