Python matplotlib is a for 2D plotting publication-ready figures in various formats, or rendering them interactively cross-platform. It can be scripted or used in Pythons interactive shell, within web applications, or through bindings with multiple GUI toolkits. It simplifies plot generation, histograms, power spectra, bar charts, error charts, scatter plots. Typical uses only require a few lines of code, while complex rendering is kept feasible. Its pyplot interface provides a MATLAB-style API.