8000 Doc multi version master by mdboom · Pull Request #1100 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Doc multi version master #1100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Aug 19, 2012
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add an autogenerated plotting command summary.
  • Loading branch information
mdboom committed Aug 16, 2012
commit 87f8df3bc020b91eb86b6c456a82c47ddac3b070
11 changes: 10 additions & 1 deletion boilerplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
_fmtplot = """\
# This function was autogenerated by boilerplate.py. Do not edit as
# changes will be lost
@autogen_docstring(Axes.%(func)s)
@_autogen_docstring(Axes.%(func)s)
def %(func)s(%(argspec)s):
%(ax)s = gca()
# allow callers to override the hold state by passing hold=True|False
Expand Down Expand Up @@ -246,3 +246,12 @@ def %(name)s():
for name in cmaps:
print _fmtcmap%locals()

print "# This function was autogenerated by boilerplate.py"
print "def _colormaps():"
print " return ["
for name in cmaps:
print " %r," % name
print " ]"

print
print "_setup_pyplot_info_docstrings()"
4 changes: 2 additions & 2 deletions doc/_templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ <h1>Introduction</h1>
For a sampling, see the <a href="{{ pathto('users/screenshots') }}">screenshots</a>, <a href="{{ pathto('gallery') }}">thumbnail</a> gallery, and
<a href="examples/index.html">examples</a> directory</p>

<p>For example, using "ipython -pylab" to provide an interactive
<p>For example, using <tt>"ipython --pylab"</tt> to provide an interactive
environment, to generate 10,000 gaussian random numbers and plot a
histogram with 100 bins, you simply need to
type</p>
Expand Down Expand Up @@ -91,7 +91,7 @@ <h1>Documentation</h1>

<p>Trying to learn how to do a particular kind of plot? Check out
the <a href="gallery.html">gallery</a>, <a href="examples/index.html">examples</a>,
or the <a href="api/pyplot_api.html">list of plotting
or the <a href="api/pyplot_summary.html">list of plotting
commands</a>.</p>

<h4>Other learning resources</h4>
Expand Down
1 change: 1 addition & 0 deletions doc/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
.. toctree::
:maxdepth: 1

pyplot_summary.rst
api_changes.rst
matplotlib_configuration_api.rst
afm_api.rst
Expand Down
3 changes: 2 additions & 1 deletion doc/api/pyplot_api.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
******
pyplot
******


:mod:`matplotlib.pyplot`
========================
Expand All @@ -10,3 +10,4 @@ pyplot
:members:
:undoc-members:
:show-inheritance:
:exclude-members: plotting colormaps
8 changes: 8 additions & 0 deletions doc/api/pyplot_summary.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Plotting commands summary
=========================

.. currentmodule:: matplotlib.pyplot

.. autofunction:: plotting

.. autofunction:: colormaps
2 changes: 2 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'

default_role = 'obj'

# Plot directive configuration
# ----------------------------

Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ def rc(group, **kwargs):

def rcdefaults():
"""
Restore the default rc params - these are not the params loaded by
Restore the default rc params. These are not the params loaded by
the rc file, but mpl's internal params. See rc_file_defaults for
reloading the default params from the rc file
"""
Expand Down
4 changes: 4 additions & 0 deletions lib/matplotlib/artist.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,8 @@ def set(self, **kwargs):

def findobj(self, match=None, include_self=True):
"""
Find artist objects.

pyplot signature:
findobj(o=gcf(), match=None, include_self=True)

Expand Down Expand Up @@ -1135,6 +1137,8 @@ def getp(obj, property=None):

def setp(obj, *args, **kwargs):
"""
Set a property on an artist object.

matplotlib supports the use of :func:`setp` ("set property") and
:func:`getp` to set and get object properties, as well as to do
introspection on the object. For example, to set the linestyle of a
Expand Down
Loading
0