matplotlib (version 1.3.1) | index /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/__init__.py |
This is an object-oriented plotting library.
A procedural interface is provided by the companion pyplot module,
which may be imported directly, e.g.::
from matplotlib.pyplot import *
To include numpy functions too, use::
from pylab import *
or using ipython::
ipython -pylab
For the most part, direct use of the object-oriented library is
encouraged when programming; pyplot is primarily for working
interactively. The
exceptions are the pyplot commands :func:`~matplotlib.pyplot.figure`,
:func:`~matplotlib.pyplot.subplot`,
:func:`~matplotlib.pyplot.subplots`,
:func:`~matplotlib.backends.backend_qt4agg.show`, and
:func:`~pyplot.savefig`, which can greatly simplify scripting.
Modules include:
:mod:`matplotlib.axes`
defines the :class:`~matplotlib.axes.Axes` class. Most pylab
commands are wrappers for :class:`~matplotlib.axes.Axes`
methods. The axes module is the highest level of OO access to
the library.
:mod:`matplotlib.figure`
defines the :class:`~matplotlib.figure.Figure` class.
:mod:`matplotlib.artist`
defines the :class:`~matplotlib.artist.Artist` base class for
all classes that draw things.
:mod:`matplotlib.lines`
defines the :class:`~matplotlib.lines.Line2D` class for
drawing lines and markers
:mod:`matplotlib.patches`
defines classes for drawing polygons
:mod:`matplotlib.text`
defines the :class:`~matplotlib.text.Text`,
:class:`~matplotlib.text.TextWithDash`, and
:class:`~matplotlib.text.Annotate` classes
:mod:`matplotlib.image`
defines the :class:`~matplotlib.image.AxesImage` and
:class:`~matplotlib.image.FigureImage` classes
:mod:`matplotlib.collections`
classes for efficient drawing of groups of lines or polygons
:mod:`matplotlib.colors`
classes for interpreting color specifications and for making
colormaps
:mod:`matplotlib.cm`
colormaps and the :class:`~matplotlib.image.ScalarMappable`
mixin class for providing color mapping functionality to other
classes
:mod:`matplotlib.ticker`
classes for calculating tick mark locations and for formatting
tick labels
:mod:`matplotlib.backends`
a subpackage with modules for various gui libraries and output
formats
The base matplotlib namespace includes:
:data:`~matplotlib.rcParams`
a global dictionary of default configuration settings. It is
initialized by code which may be overridded by a matplotlibrc
file.
:func:`~matplotlib.rc`
a function for setting groups of rcParams values
:func:`~matplotlib.use`
a function for setting the matplotlib backend. If used, this
function must be called immediately after importing matplotlib
for the first time. In particular, it must be called
**before** importing pylab (if pylab is imported).
matplotlib was initially written by John D. Hunter (1968-2012) and is now
developed and maintained by a host of others.
Occasionally the internal documentation (python docstrings) will refer
to MATLAB®, a registered trademark of The MathWorks, Inc.
Classes | ||||||||||||||||||||||||||
|
Functions | ||
|
Data | ||
__version__ = '1.3.1' __version__numpy__ = '1.5' absolute_import = _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 16384) bad_pyparsing = False default = True defaultParams = {'agg.path.chunksize': [0, <function validate_int>], 'animation.avconv_args': ['', <function validate_stringlist>], 'animation.avconv_path': ['avconv', <type 'str'>], 'animation.bitrate': [-1, <function validate_int>], 'animation.codec': ['mpeg4', <type 'str'>], 'animation.convert_args': ['', <function validate_stringlist>], 'animation.convert_path': ['convert', <type 'str'>], 'animation.ffmpeg_args': ['', <function validate_stringlist>], 'animation.ffmpeg_path': ['ffmpeg', <type 'str'>], 'animation.frame_format': ['png', <matplotlib.rcsetup.ValidateInStrings instance>], ...} default_test_modules = ['matplotlib.tests.test_agg', 'matplotlib.tests.test_arrow_patches', 'matplotlib.tests.test_artist', 'matplotlib.tests.test_axes', 'matplotlib.tests.test_backend_pdf', 'matplotlib.tests.test_backend_pgf', 'matplotlib.tests.test_backend_qt4', 'matplotlib.tests.test_backend_svg', 'matplotlib.tests.test_basic', 'matplotlib.tests.test_bbox_tight', 'matplotlib.tests.test_cbook', 'matplotlib.tests.test_coding_standards', 'matplotlib.tests.test_collections', 'matplotlib.tests.test_colorbar', 'matplotlib.tests.test_colors', 'matplotlib.tests.test_compare_images', 'matplotlib.tests.test_contour', 'matplotlib.tests.test_dates', 'matplotlib.tests.test_delaunay', 'matplotlib.tests.test_figure', ...] f = Forward: "a" key = 'svg.embed_char_paths' major = 2 minor1 = 7 minor2 = 10 print_function = _Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 65536) rcParams = RcParams({'agg.path.chunksize': 0, 'an...or.size': 2, 'ytick.minor.width': 0.5}) rcParamsDefault = RcParams({'agg.path.chunksize': 0, 'an...or.size': 2, 'ytick.minor.width': 0.5}) rcParamsOrig = {'agg.path.chunksize': 0, 'animation.avconv_args': '', 'animation.avconv_path': 'avconv', 'animation.bitrate': -1, 'animation.codec': 'mpeg4', 'animation.convert_args': '', 'animation.convert_path': 'convert', 'animation.ffmpeg_args': '', 'animation.ffmpeg_path': 'ffmpeg', 'animation.frame_format': 'png', ...} s = '9999' tmp = 0 verbose = <matplotlib.Verbose instance> |