Change tick frequency on X (time, not number) frequency
Whatever reason it is you are getting 2 ticks only by default, you can fix it (customise it) by changing the ticker locator using a date locator. import matplotlib.pyplot as plt import matplotlib.dates as mdates x = [ datetime.datetime(1900,1,1,0,1,2), datetime.datetime(1900,1,1,0,1,3), … ] # ( more than 1000 elements ) y = [ 34, 33, 23, … Read more