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

bookGroup by Continuous Variable

Task

Swipe to start coding

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:

    • Set points color (c) to the 'hdi' column values of the data;
    • Set colormap (cmap) to 'plasma'.

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

  2. Apply .colorbar() function to Figure object assigning cax as an argument.

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 10
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

Awesome!

Completion rate improved to 2.94

bookGroup by Continuous Variable

Swipe to show menu

Task

Swipe to start coding

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:

    • Set points color (c) to the 'hdi' column values of the data;
    • Set colormap (cmap) to 'plasma'.

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

  2. Apply .colorbar() function to Figure object assigning cax as an argument.

Solution

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!

close

Awesome!

Completion rate improved to 2.94
SectionΒ 3. ChapterΒ 10
single

single

some-alt