Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
The Simplest Scatter Plot
course content

Course Content

Visualization in Python with matplotlib

The Simplest Scatter PlotThe Simplest Scatter Plot

Welcome to the third section of the course! Let's consider one more plot type widely used in analytics - scatter plots. This type of plot is quite easy to understand - it's just a collection of points with specific coordinates. Often this type of plot is used in experiments or discovering if there is relation between factors.

To build a scatter plot we need to do the same as for a simple line plot. But this time we use .scatter() applied to Axes object (instead of .plot() in the previous section). The first parameter of this function will be the x-axis, and the second - y-axis. Throughout this section, you will use the 'gapminder' dataset (as of 2017), which contains different economical, demographical, social indicators. Before we start, let's explore the data you will work with.

For instance, let's visualize on scatter plot the gdp per capita and share of population with access to the Internet.

For instance, if you run the code above, you will see that there is a relation between economical wellness and internet availability for people.


Everything was clear?

Section 3. Chapter 1