Observe the following graph and find the missing statement in the Python code.
Observe the following graph and find the missing statement in the Python code.
import matplotlib.pyplot as pl
______
pl. show()
Graph: a single line joining the points (0.0, 5), (1.0, 2), (2.0, 3), (3.0, 1); x-axis 0.0 to 3.0, y-axis 1.0 to 5.0.
Show answerHide answer
Correct answer: (C) pl.plot ([5, 2, 3, 1])
Explanation
pl.plot([5, 2, 3, 1]) draws a line graph, using the indexes 0-3 as x values. bar and scatter give different charts, and pl.line does not exist.