Add Information to the Plot
Tarefa
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).
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 3. Capítulo 12
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Suggested prompts:
Resumir este capítulo
Explicar o código em file
Explicar por que file não resolve a tarefa
Awesome!
Completion rate improved to 2.94
Add Information to the Plot
Deslize para mostrar o menu
Tarefa
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).
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 3. Capítulo 12
single