Matplotlib is a library for plotting data for the Python programming language and its numerical mathematics extension NumPy. The API allows embedding plots into applications using GUI toolkits such as Tkinter, wxPython, Qt, and GTK.