Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Add Information to the Plot | Scatter Plots
Visualization in Python with matplotlib
course content

Зміст курсу

Visualization in Python with matplotlib

Visualization in Python with matplotlib

1. Basics: Line Charts
2. Bar Charts
3. Scatter Plots

Add Information to the Plot

Завдання

  1. 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'.
  2. Assign fig.colorbar() to the cbar variable.
  3. Set the colormap legend label to 'HDI' (by applying the .ax.set_xlabel() to the cbar).

Завдання

  1. 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'.
  2. Assign fig.colorbar() to the cbar variable.
  3. Set the colormap legend label to 'HDI' (by applying the .ax.set_xlabel() to the cbar).

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Секція 3. Розділ 12
toggle bottom row

Add Information to the Plot

Завдання

  1. 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'.
  2. Assign fig.colorbar() to the cbar variable.
  3. Set the colormap legend label to 'HDI' (by applying the .ax.set_xlabel() to the cbar).

Завдання

  1. 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'.
  2. Assign fig.colorbar() to the cbar variable.
  3. Set the colormap legend label to 'HDI' (by applying the .ax.set_xlabel() to the cbar).

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Секція 3. Розділ 12
toggle bottom row

Add Information to the Plot

Завдання

  1. 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'.
  2. Assign fig.colorbar() to the cbar variable.
  3. Set the colormap legend label to 'HDI' (by applying the .ax.set_xlabel() to the cbar).

Завдання

  1. 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'.
  2. Assign fig.colorbar() to the cbar variable.
  3. Set the colormap legend label to 'HDI' (by applying the .ax.set_xlabel() to the cbar).

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Завдання

  1. 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'.
  2. Assign fig.colorbar() to the cbar variable.
  3. Set the colormap legend label to 'HDI' (by applying the .ax.set_xlabel() to the cbar).

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Секція 3. Розділ 12
Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
We're sorry to hear that something went wrong. What happened?
some-alt