# Matplotlib Tutorials and Examples for Beginners

Matplotlib is a plotting library for the Python programming language and its numerical mathematics extension NumPy. It provides an object-oriented API for embedding plots into applications using general-purpose GUI toolkits like Tkinter, wxPython, Qt, or GTK+.

In this page, we will write some tutorials and examples on how to use matplotlib, you can learn how to draw graphics by using it.

## Fix Matplotlib plt.savefig() Save a Blank image – Matplotlib Tutorial

We often use plt.savefig() to save a plot to an image. However, we may find the saved image may be blank. In this tutorial, we will introduce you how to fix this problem.

## Matplotlib Plot a Bar with a Dictionary {x:y}: A Step Guide – Matplotlib Tutorial

In python, we often save some data with a dictionary, which is very good to save data what contains label:number. In this tutorial, we will introduce you how to plot a bar chart with this dictionary using python matplotlib.

## Matplotlib plt.Circle(): Draw a Circle – Matplotlib Tutorial

In this tutorial, we will introduce you how to draw a circle using python matplotlib. It is easy to use.

## Step Guide to Plot Multiple Lines in Matplotlib – Matplotlib Tutorial

In this tutorial, we will introduce you how to plot multiple lines in a chart using python matplotlib. It is very easy.

## Fix Matplotlib AttributeError: module ‘sip’ has no attribute ‘setapi’ – Matplotlib Tutorial

In this tutorial, we will introduce how to fix AttributeError: module ‘sip’ has no attribute ‘setapi’ when using matplotlib.

## Create Matplotlib Scatter with RGB Color – Matplotlib Tutorial

When we are using matplotlib to plot a scatter, we may want to use rgb color. In this tutorial, we will introduce you how to do.

## Visualizing Clustered and Labeled Data With Different Color in Matplotlib Scatter Plots

In text processing, we may need to visualize some labeled data using scatter plots in matplotlib. In this tutorial, we will use an example to show you how to display them.

## List of Matplotlib Common Used Colors – Matplotlib Tutorial

Color is an important part in matplotlib, in this tutorial, we will list some most used in plots.

## Matplotlib Generate PGF File: Create a PGF Plot – Matplotlib Tutorial

If you plan to insert an image to latex, you can insert a pgf or eps image. In this tutorial, we will introduce how to use matplotlib to create a pgf file for latex.

## Understand Matplotlib plt.subplot(): A Beginner Introduction – Matplotlib Tutorial

Matplotlib plt.subplot() function can allow us to display some graphics in one figure. In this tutorial, we will introdue how to use this function by using some examples.