- Matplotlib 3.0 Cookbook
- Srinivasa Rao Poladi
- 49字
- 2025-04-04 16:06:36
Plotting the graph
After reading the data from any of the three formats (.txt, .csv, .xlsx) and format it to x and y variables, then we plot the graph using these variables as follows:
plt.plot(x, y)
Display the graph on the screen:
plt.show()
The following is the output obtained:
