Long Names Sideways
Long names fit better down the side. df has columns team and score. Turn the usual seaborn chart of mean scores on its side: the team names along the y axis and each mean as a horizontal bar reaching right, with errorbar=None. Draw it on a chart made with fig, ax = plt.subplots() by passing ax=ax, and return the figure.
Checked: the bars and the y tick labels.
Example 1
df {"team":["red","blue","red","blue","red"],"score":[10,20,30,40,50]}
draws

Constraints
- 2 to 5 teams,
len(df) <= 60
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More seaborn problems
- Numbers in the CellsEasy
- Tallest FirstEasy
- Trend Through the DotsEasy
- A Chart per GroupMedium
- A Trend per GroupMedium
- Counts in a Chosen OrderMedium
- How the Columns Move TogetherMedium
- Means Joined by LinesMedium