Basic Plotting

In this lesson, we will discuss the basic use of plot command and how to save figures.

We'll cover the following

Python’s 2-D and 3-D plotting library Matplotlib produces high-quality figures in a variety of formats and interactive environments. Using this library, you can generate simple plots, bar charts, scatter plots, contour plots, error charts, etc. Matplotlib makes these things a lot easier because it is easy to get started with. It has support for LaTeX formatted labels and texts.

What makes Matplotlib highly suitable for generating figures for scientific publications, is that all aspects of the figure can be controlled programmatically. This is important for reproducibility and is convenient when one needs to regenerate the figure with updated data or change its appearance.

The submodule matplotlib.pyplot provides an object-oriented interface for the plotting library.

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy