I have looked into the numpy.arrange() documentation, but couldn’t understand how the following command is working:
plt.xticks(numpy.arange(130000)[::20000][2:],[‘11AM day 1’,‘5:30PM day 1’,‘10PM day 1’, ‘3:30AM day 2’, ‘9AM day 2’],rotation=90)
Just for reference, it is part of the following snippet I am working on:
if plot==True:
fig,ax = plt.subplots(figsize=(6,5))
ax.plot(tt, yy, “-k”, linewidth=1, alpha=0.3)
ax.plot(tt, fitfunc(tt), “r-”, label=“Circadian Rhythm”, linewidth=2)
plt.xticks(numpy.arange(130000)[::20000][2:],[‘11AM day 1’,‘5:30PM day 1’,‘10PM day 1’, ‘3:30AM day 2’, ‘9AM day 2’],rotation=90)
plt.legend()
fig.tight_layout()
plt.show()