Skip to main content

Program to Plot List of X, Y Coordinates in Matplotlib

· One min read

Code >

file.py
import numpy as np
import matplotlib.pyplot as plt
x = np.arange(1, 11, 1)
y = np.arange(10, 0, -1)
# plot our list in X,Y coordinates
plt.scatter(x, y)
plt.show()

Output >

Output