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.

Everything was clear?

Section 1. Chapter 4
course content

Course Content

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.

Everything was clear?

Section 1. Chapter 4
some-alt