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

Kurssisisältö

Visualization in Python with matplotlib

Visualization in Python with matplotlib

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

book
Group by Continuous Variable

Tehtävä

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.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 3. Luku 10
toggle bottom row

book
Group by Continuous Variable

Tehtävä

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.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 3. Luku 10
Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Pahoittelemme, että jotain meni pieleen. Mitä tapahtui?
some-alt