hi

hi


python

import matplotlib.pyplot as plt


x = [1, 2, 3, 4, 5]

y = [9, 12, 23, 2, 34]


plt.plot(x, y)

plt.xlabel("x axis")

plt.ylabel("y axis")

plt.title("just plot a line")

plt.show()


plt.scatter(x, y, color='red', marker="o", label="data point")

plt.legend()

plt.show()


Report Page