Add Information to the Plot
Compito
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 thecbar
variable. -
Set the colormap legend label to
'HDI'
(by applying the.ax.set_xlabel()
to thecbar
).
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 3. Capitolo 12
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
Awesome!
Completion rate improved to 2.94
Add Information to the Plot
Scorri per mostrare il menu
Compito
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 thecbar
variable. -
Set the colormap legend label to
'HDI'
(by applying the.ax.set_xlabel()
to thecbar
).
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Awesome!
Completion rate improved to 2.94Sezione 3. Capitolo 12
single