Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Adding One More Line | Basics: Line Charts
Visualization in Python with matplotlib

Adding One More LineAdding One More Line

Quite good! That's a good visualization! Let's expand our chart with new data.

We may want to compare the emission levels by displaying several lines on a single chart. It can be easily done by calling the .plot() method of Axes object multiple times. For instance, if you call ax.plot() two times, you will get two lines on one chart. By default, the first line will be blue, the second one will be orange.

Tudo estava claro?

Seção 1. Capítulo 4
course content

Conteúdo do Curso

Visualization in Python with matplotlib

Adding One More LineAdding One More Line

Quite good! That's a good visualization! Let's expand our chart with new data.

We may want to compare the emission levels by displaying several lines on a single chart. It can be easily done by calling the .plot() method of Axes object multiple times. For instance, if you call ax.plot() two times, you will get two lines on one chart. By default, the first line will be blue, the second one will be orange.

Tudo estava claro?

Seção 1. Capítulo 4
some-alt