Sectie 3. Hoofdstuk 12
single
Add Information to the Plot
Veeg om het menu te tonen
Taak
Swipe to start coding
-
Using the
.set()function, perform the following:- set the x-axis label (
xlabel) to'GDP per capita'; - set the y-axis label (
ylabel) to'Life expectancy'; - set the plot title (
title) to'GDP per capita vs life expectancy'.
- set the x-axis label (
-
Assign
fig.colorbar()to thecbarvariable. -
Set the colormap legend label to
'HDI'(by applying the.ax.set_xlabel()to thecbar).
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 3. Hoofdstuk 12
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.