Matplotlib can produce high-quality graphs targeting many different platforms and display technologies. To achieve this in an efficient and transparent way, Matplotlib developers introduced the notion of a backend. A backend is code that is designed to render Matplotlib graphs in a particular graphing environment. Users of Matplotlib are mostly insulated from the details of the actual rendering, but some devices and operating systems might require the selection of the appropriate backend.
Using different backends to display graphs
Getting ready
In this example, we will write our code in a script, so you will need to open your text editor.