Add Information to the Plot
Tarea
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).
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 3. Capítulo 12
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Genial!
Completion tasa mejorada a 2.94
Add Information to the Plot
Desliza para mostrar el menú
Tarea
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).
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 3. Capítulo 12
single