So using matplotlib scatter plot, i am getting a plot that looks like this: scatter plot
I am trying to plot a long list of coordinates however it appears to be making a seperate x and y axis label for every single point in an unordered manner. I just want to to have set x and y axis labels e.g. (10,20,...,100) instead of one appearing for every point.
def visualise(self):
input_file = open("textFiles/points.txt", 'r')
xVals = []
yVals = []
for line in input_file:
line = line.split(",")
xVals.append(line[0])
yVals.append(line[1])
plt.scatter(xVals,yVals, s = 2)
plt.show()