What is the expected output of the following code?
Answer»
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() Choose the correct option from below LIST (1)Error as plot takes x and y arguments (2)A line PASSING through points : (0, 10), (2, 14) (3)A line passing through points : (10, 0), (14, 2) (4)A line passing through points : (1,10), (3, 14)
Answer:-(2)A line passing through points : (0, 10), (2, 14)