Time-series data has unique formatting needs: leap years, month boundaries, weekend gaps, and multi-scale zoom levels. Matplotlib provides specialized `matplotlib.dates` locators and formatters.
A calendar timeline ruler that automatically switches from displaying months to displaying exact hours as you zoom in.
`fig.autofmt_xdate(rotation=30)` automatically rotates date labels and right-aligns them cleanly.
fig.autofmt_xdate(rotation=35)Avoid the top errors and bad plotting practices that trip up new Python developers
Switch from abstract numbers to relatable Cricket, Cinema & Business charts
Write Matplotlib code to solve the objective and see your live plot render
Plot `dates=['Jan', 'Feb', 'Mar', 'Apr']` and `vals=[10, 25, 40, 60]` with `color='#6366F1'` and title 'Q1 Trajectory'.
✓ plot✓ set_titleTest your understanding to unlock the lesson completion badge