Mar-01-2022, 02:21 AM
One package. pyplot and dates are modules in matplotlib. DateFormatter is a class.
It is poor presentation to have 256 labels on a graph. Pyplot is giving bad results because your request is unreasonable. I don't know the frequency of your data, but you should consider only labelling the start of each year. Your plot should have 8 axis labels, not 256.
It is common for plots to not label the start of rend of the plot. Without seeing the data I cannot tell you exactly why the last point is not labeled.
It is poor presentation to have 256 labels on a graph. Pyplot is giving bad results because your request is unreasonable. I don't know the frequency of your data, but you should consider only labelling the start of each year. Your plot should have 8 axis labels, not 256.
It is common for plots to not label the start of rend of the plot. Without seeing the data I cannot tell you exactly why the last point is not labeled.