My code is as follows (dont ask for the variable names, im german^^):
import matplotlib.pyplot as plt
import numpy as np strecke = []
zeit = []daten = open("BewegungBeschleunigung.csv")for i in daten:i = i.strip().split(",")strecke.append(i[1])zeit.append(i[0])zeit.pop(0)
strecke.pop(0)f, ax = plt.subplots()ax.set_xticks(np.arange(0, 100 + 1, 5))
ax.set_yticks(np.arange(0,6000, 10))
ax.set_xlabel("Zeit")
ax.set_ylabel("Strecke")plt.plot(zeit, strecke, "go")
#plt.autoscale(enable = False, axis = "both", tight = None)
plt.grid(True)
plt.show()
Now my Question is: As you can see in the picture , the y-axis only goes to 4860 instead of 6000 which is what I wrote and not in 10 steps (as what I wanted). It just goes in random steps. What am I doing wrong and why doesn't the x-axis go to 100?
thanks for your help.