Computer Science, asked by jplatypi, 11 months ago

how do you display a graph in python?

Answers

Answered by gurj57364953
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