SyntaxFix
Write A Post
Hire A Developer
Questions
xmarks=[i for i in range(1,length+1,1)] plt.xticks(xmarks)
This worked for me
if you want ticks between [1,5] (1 and 5 inclusive) then replace
length = 5