please consider this snippet:
import matplotlib.pyplot as plt
for i in range(1,21):
d[i] = i**2
As it can be seen from attached screenshot, xticks values are shifted to right (by 1).
Seems strange, but perhaps something to do with Python 0-start.
So why plot starts at beginning of x-axis and xticks start shifted by 1?
How does regular matplotlib users handle similar code?