My python
plot data only show 2 points on x axis.
I would like to have more, but don't know how.
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, ............ ]
plt.plot( x, y )
The X axis only shows 2 points of interval. I tried to use .xticks
but didn't work for X axis.
It gave the below error:
TypeError: object of type 'datetime.datetime' has no len()