Names on the Axis
Draw values as a line at the positions 0, 1, 2, ... and show the matching name from names under each position instead of the number. Return the figure.
Checked: the lines, the x ticks and the x tick labels.
Example 1
names ["Jan","Feb","Mar"]
values [3,5,2]
draws

Constraints
2 <= len(names) == len(values) <= 12- The names are all different
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More matplotlib problems
- Side by SideEasy
- Zoom InEasy
- Bars in PairsMedium
- Bars on Top of BarsMedium
- Boxes for GroupsMedium
- Grid of FourMedium
- Numbers on a HeatmapMedium
- Price and Its AverageMedium