Create a Complete Bar Chart
Oppgave
Swipe to start coding
-
Assign the second call of the
.barh()function to thebar2variable. -
Customize the plot:
- set x label to
'Rainfall (mm)'; - y label to
'Month'; - title to
'Average rainfall level in Indian cities'; - limit the values on the x-axis to diapason
(0, 380).
- set x label to
-
Add labels to bars:
- set
padding = -5at the first call; - pass
bar2as the first parameter at the second call.
- set
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 10
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Suggested prompts:
Oppsummer dette kapittelet
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 2.94
Create a Complete Bar Chart
Sveip for å vise menyen
Oppgave
Swipe to start coding
-
Assign the second call of the
.barh()function to thebar2variable. -
Customize the plot:
- set x label to
'Rainfall (mm)'; - y label to
'Month'; - title to
'Average rainfall level in Indian cities'; - limit the values on the x-axis to diapason
(0, 380).
- set x label to
-
Add labels to bars:
- set
padding = -5at the first call; - pass
bar2as the first parameter at the second call.
- set
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 10
single