FunctionRacerProblemsRace

Sideways Bars

BeginnermatplotlibPython

Long names read better on the side. Draw a horizontal bar chart: one bar per name, with the bar of names[i] reaching values[i] to the right. Return the figure.

Checked: the bars and the y tick labels.

Example 1

names ["tea","milk","jam"]
values [3,5,2]
draws
The chart to draw in example 1 of Sideways Bars

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More matplotlib problems