Computer Science, asked by harnoorkaur81, 11 months ago

1) Which of the following is not a valid plotting function of pyplot?
a: plot( )
b: bar( )
c: line( )
d: pie( ) ​

Answers

Answered by isyllus
6

Answer:

Option "c: line()" is the correct answer.

line() is not a valid plotting function of pyplot.

Explanation:

First of all let us learn about pyplot.

Pyplot is a python library which is used for plotting 2D graphs in Python programming language.

Pyplot library is present in the Matplotlib library of Python.

To use pyplot in the python program, we need to import it first.

We use the following statement to import:

import matplotlib.pyplot as pp

After this statement, we can use variable pp in our program.

Pyplot has following functions:

a: plot() to draw a line graph in python.

b: bar() to draw a bar graph in python.

d: pie() to draw a pie chart in python.

There is no such function with name line() in pyplot library.

Option "c: line()" is the correct answer.

line() is not a valid plotting function of pyplot.

Similar questions