Matplotlib is a Python 2D plotting library which produces publication-quality figures in a variety of hardcopy formats and interactive environments across platforms. Matplotlib can be used in Python scripts, the Python and IPython shell (à la MATLAB or Mathematica), web application servers, and various graphical user interface toolkits.
NOTE: The current master branch is now Python 3 only. Python 2 support is being dropped.
For installation instructions and requirements, see the INSTALL.rst file or the install documentation. If you think you may want to contribute to matplotlib, check out the guide to working with the source code.
After installation, you can launch the test suite:
pytest
Or from the Python interpreter:
import matplotlib matplotlib.test()
Consider reading http://matplotlib.org/devel/coding_guide.html#testing for more information. Note that the test suite requires pytest. Please install with pip or your package manager of choice.
Discourse is the discussion forum for general questions and discussions and our recommended starting point.
Our active mailing lists (which are mirrored on Discourse) are:
Gitter is for coordinating development and asking questions directly related to contributing to matplotlib.
You've discovered a bug or something else you want to change - excellent!
You've worked out a way to fix it – even better!
You want to tell us about it – best of all!
Start at the contributing guide!
Developer notes are now at Developer Discussions (Note: For technical reasons, this is currently only accessible for matplotlib developers.)
If Matplotlib contributes to a project that leads to publication, please acknowledge this by citing Matplotlib. A ready-made citation entry is available.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。