1matplotlib is a python 2D plotting library which produces publication quality 2figures using in a variety of hardcopy formats (PNG, JPG, PS, SVG) and 3interactive GUI environments (WX, GTK, Tkinter) across platforms. matplotlib 4can be used in python scripts, interactively from the python shell (ala matlab 5or mathematica), in web application servers generating dynamic charts, or 6embedded in GTK, Tk or WX applications; see backends. 7