Matplotlib

This is an old revision of this page, as edited by 128.131.49.182 (talk) at 18:03, 18 February 2009 (Added Link to PLplot). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Matplotlib is a plotting library for the Python programming language and its NumPy numerical mathematics extension. It provides a "pylab" API designed to closely resemble that of MATLAB, thereby making it easy to learn for experienced MATLAB users. Matplotlib is written and maintained primarily by John Hunter, and is distributed under a BSD-style license.

matplotlib
Original author(s)John Hunter
Stable release
0.98.5 / 2008-12-11
Repository
Engine
  • Cairo
  • Anti-Grain Geometry
Edit this at Wikidata
Operating systemCross-platform
TypePlotting
Licensematplotlib licence
Websitematplotlib.sf.net

The "pylab" interface is procedural and based on a state machine, like OpenGL. There is also an OOP interface which is documented in the API Docs [1] which allows matplotlib plots to be embedded into applications using generic GUI toolkits, like wxPython, Qt or GTK.

Currently, Matplotlib only has support for Python versions up to 2.5.

Comparison with MATLAB

Matplotlib has become a viable alternative for many MATLAB users, and – like MATLAB before it – it is on its way to become a commonly used teaching tool for numerical mathematics and signal processing.

Advantages of Python+NumPy+Matplotlib over MATLAB include:

  • Based on Python, a full-featured modern object-oriented programming language suitable for large-scale software development
  • Suitable for fast scripting, including CGI scripts
  • Free, open source, no license servers

Compare to