I plot bitrate in time with following function
#!/usr/bin/python3 import matplotlib.pyplot as plt import datetime def plotBitrate(time,bitrate,filename): ti
The autofmt_xdate() is indeed a good way of preventing overlapping labels. However, pyplot does not have this method, instead, it's a method of figure.
figure
Therefore
plt.gcf().autofmt_xdate()
would do the job.