how do you display a graph in python?
Answers
Answered by
38
Explanation:
Define the x-axis and corresponding y-axis values as lists.
Plot them on canvas using . plot() function.
Give a name to x-axis and y-axis using . xlabel() and . ylabel() functions.
Give a title to your plot using . title() function.
Finally, to view your plot, we use . show() function.
Similar questions