# 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.

## 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.

## Fix matplotlib.rcParams[‘lines.color’] Has no Affect on plot(): A Step Guide – Matplotlib Tutorial

matplotlib.rcParams[‘lines.color’] allows us to change the color of the line in matplotlib. However, it has no affect on plot() function. In this tutorial, we will introduce how to fix this problem.

## A Full List of Matplotlib Line Style: A Beginner Guide – Matplotlib Tutorial

We can use matplotlib.rcParams[‘lines.linestyle’] to set the style of line in matplotlib. In this tutorial, we will list all the line styles to help matplotlib beginners to use.

## Understand Matplotlib.rcParams: A Beginner Guide – Matplotlib Tutorial

matplotlib.rcParams is a matplotlib.RcParams object, it is a dictionary-like variable which store some rc settings in matplotlib. In this tutorial, we will introduce how to use it.

## Understand matplotlib.pyplot.imshow(): Display Data as an Image – Matplotlib Tutorial

matplotlib.pyplot.imshow() can display data as an image file, we will use some examples to show you how to use this function correctly in this tutorial.

## Matplotlib Create Stacked Histogram: A Beginner Guide – Matplotlib Tutorial

Stacked histogram is widely used in papers. In this tutorial, we will introduce how to create a stacked histogram using matplotlib in python.

## Python Matplotlib Implement a Line Chart: A Completed Guide – Matplotlib Tutorial

Line chart is common used in data analysis field, it is easy to implement in python. In this tutorial, we will introduce python beginners to understand how to draw a line chart.

## Understand Matplotlib Fontdict: A Beginner Guide – Matplotlib Tutorial

Matplotlib fontdict can allow us to set the font style of text in a plot, how to use it to set font style? In this tutorial, we will introduce some tips on how to set values of fontdict for matplotlib beginners.

## Python Matplotlib Change Text Font Style: A Beginner Guide – Matplotlib Tutorial

To change the font style of text is very easy in python matplotlib. In this tutorial, we will tell you how to do. However, as a python beginner, you should know two basic concepts: font family and font, which will be used in this tutorial.