Plotting Multiple Curves

In this lesson, we will learn some different ways of plotting multiple graphs and how to label them.

In this course, we will be using the object-oriented approach when working with matplotlib.The main idea with object-oriented programming is to have objects that one can apply functions and actions to, and no object or program states should be global. The real advantage of the object-oriented approach in plotting becomes apparent when more than one figure is created, or when a figure contains more than one plot.

Multiple curves on the same graph #

We can draw multiple curves on the same graph by repeatedly using the plot command.

Get hands-on with 1400+ tech skills courses.