0 votes
in Matplotlib by
What is the expected output of the following code?

import matplotlib.pyplot as plt

fig = plt.figure()

ax = fig.add_subplot(111)

plt.plot([10, 12, 14, 16])

plt.show()

a) A line passing through points : (0, 10), (2, 14)

b) Error as plot takes x and y arguments

c) A line passing through points : (1,10), (3, 14)

d) A line passing through points : (10, 0), (14, 2)

1 Answer

0 votes
by
Correct answer is : a) A line passing through points : (0, 10), (2, 14)

Related questions

0 votes
asked Dec 25, 2021 in Matplotlib by rajeshsharma
0 votes
asked Dec 25, 2021 in Matplotlib by rajeshsharma
...