Basics of Matplotlib

In this lesson, we will learn some basic features of Matplotlib, including key terms and their definitions.

We'll cover the following

What is Matplotlib? Matplotlib elements Matplotlib is a versatile tool that can be used to create many different plot elements. As such, it can be confusing to new users. Before trying to create a plot, let’s make sure to define some basic terms first.

The first question is what is a figure? You may see some code like below.

plot.set_title("This is a figure.")
axes.set_title("This is a figure.")

What is a plot? What is a axes? What are differences between them? How to draw a figure, by figure or axes?

Below is an official image which tell us some important parts of a figure.

Get hands-on with 1200+ tech skills courses.