## Customization

You may wonder why the plot from the previous chapter didn't look like the first one. That is not the bug, just without setting the limits `matplotlib`

automatically set the limits such that there is a little gap between the first observations and axis. Like simple line plots, scatter plots can also be customized in several ways.

We can set the **size** and **color** of points. To set the points color use parameter `c`

(possible values for this parameter are the same as for `color`

parameter in `.plot()`

function from the previous section), to set the size of the points use `s`

parameter (either single integer/float number or array with the same size as the number of points). For example, we can relate the size of the points from the previous example to the values of `'population'`

column divided by 1000000 (to make these values smaller) and make all the points red.

Everything was clear?

Course Content

# Visualization in Python with matplotlib

Visualization in Python with matplotlib

## Customization

You may wonder why the plot from the previous chapter didn't look like the first one. That is not the bug, just without setting the limits `matplotlib`

automatically set the limits such that there is a little gap between the first observations and axis. Like simple line plots, scatter plots can also be customized in several ways.

We can set the **size** and **color** of points. To set the points color use parameter `c`

(possible values for this parameter are the same as for `color`

parameter in `.plot()`

function from the previous section), to set the size of the points use `s`

parameter (either single integer/float number or array with the same size as the number of points). For example, we can relate the size of the points from the previous example to the values of `'population'`

column divided by 1000000 (to make these values smaller) and make all the points red.

Everything was clear?