Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Group by Continuous Variable | Scatter Plots
Visualization in Python with matplotlib
course content

Course Content

Visualization in Python with matplotlib

Visualization in Python with matplotlib

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

bookGroup by Continuous Variable

Task
test

Swipe to show code editor

This time, we are goint to paint the points for the same scatter plot in respect to the 'hdi' column values.

  1. Initialize a scatter plot with the next parameters:

    Save the call of the .scatter() function to the cax variable.

    • Set points color (c) to the 'hdi' column values of the data;
    • Set colormap (cmap) to 'plasma'.
  2. Apply .colorbar() function to Figure object assigning cax as an argument.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 10
toggle bottom row

bookGroup by Continuous Variable

Task
test

Swipe to show code editor

This time, we are goint to paint the points for the same scatter plot in respect to the 'hdi' column values.

  1. Initialize a scatter plot with the next parameters:

    Save the call of the .scatter() function to the cax variable.

    • Set points color (c) to the 'hdi' column values of the data;
    • Set colormap (cmap) to 'plasma'.
  2. Apply .colorbar() function to Figure object assigning cax as an argument.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 10
toggle bottom row

bookGroup by Continuous Variable

Task
test

Swipe to show code editor

This time, we are goint to paint the points for the same scatter plot in respect to the 'hdi' column values.

  1. Initialize a scatter plot with the next parameters:

    Save the call of the .scatter() function to the cax variable.

    • Set points color (c) to the 'hdi' column values of the data;
    • Set colormap (cmap) to 'plasma'.
  2. Apply .colorbar() function to Figure object assigning cax as an argument.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Task
test

Swipe to show code editor

This time, we are goint to paint the points for the same scatter plot in respect to the 'hdi' column values.

  1. Initialize a scatter plot with the next parameters:

    Save the call of the .scatter() function to the cax variable.

    • Set points color (c) to the 'hdi' column values of the data;
    • Set colormap (cmap) to 'plasma'.
  2. Apply .colorbar() function to Figure object assigning cax as an argument.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Section 3. Chapter 10
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt