# Examples built with GR’s Matplotlib backend¶

Matplotlib is the most popular graphics library for Python. It is the workhorse plotting utility of the scientific Python world. However, depending on the field of application, the software may be reaching its limits. This is the point where the GR framework will help.

Starting with release 0.6.0 the GR framework can be used as a backend for Matplotlib and significantly improve the performance of existing Matplotlib applications, e.g.:

python artist_reference.py -dmodule://gr.matplotlib.backend_gr


With Matplotlib 1.5 you can set the backend using the MPLBACKEND environment variable:

export MPLBACKEND="module://gr.matplotlib.backend_gr"


Some of the Matplotlib examples (along with the unmodified Python code) are shown below.