Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DOC: Fix headings and call signatures #7333

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 3 commits into from
Oct 27, 2016
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
Next Next commit
DOC: Fix overly long header underlining.
  • Loading branch information
QuLogic committed Oct 23, 2016
commit bb78abb7612ed524e1cdcaaed129e7d8a1cb52ea
16 changes: 8 additions & 8 deletions lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ def axvline(self, x=0, ymin=0, ymax=1, **kwargs):


Examples
---------
--------
* draw a thick red vline at *x* = 0 that spans the yrange::

>>> axvline(linewidth=4, color='r')
Expand Down Expand Up @@ -1034,7 +1034,7 @@ def vlines(self, x, ymin, ymax, colors='k', linestyles='solid',
hlines : horizontal lines

Examples
---------
--------
.. plot:: mpl_examples/pylab_examples/vline_hline_demo.py

"""
Expand Down Expand Up @@ -1702,7 +1702,7 @@ def acorr(self, x, **kwargs):
- `b` is the x-axis.

Other parameters
-----------------
----------------
linestyle : `~matplotlib.lines.Line2D` prop, optional, default: None
Only used if usevlines is False.

Expand Down Expand Up @@ -1766,7 +1766,7 @@ def xcorr(self, x, y, normed=True, detrend=mlab.detrend_none,
- `b` is the x-axis (none, if plot is used).

Other parameters
-----------------
----------------
linestyle : `~matplotlib.lines.Line2D` prop, optional, default: None
Only used if usevlines is False.

Expand Down Expand Up @@ -2231,7 +2231,7 @@ def barh(self, bottom, width, height=0.8, left=None, **kwargs):
the x coordinates of the left sides of the bars

Returns
--------
-------
`matplotlib.patches.Rectangle` instances.

Other parameters
Expand Down Expand Up @@ -5034,7 +5034,7 @@ def imshow(self, X, cmap=None, norm=None, aspect=None,
Display an image on the axes.

Parameters
-----------
----------
X : array_like, shape (n, m) or (n, m, 3) or (n, m, 4)
Display the image in `X` to current axes. `X` may be an
array or a PIL image. If `X` is an array, it
Expand Down Expand Up @@ -5117,7 +5117,7 @@ def imshow(self, X, cmap=None, norm=None, aspect=None,
when interpolation is one of: 'sinc', 'lanczos' or 'blackman'

Returns
--------
-------
image : `~matplotlib.image.AxesImage`

Other parameters
Expand Down Expand Up @@ -6528,7 +6528,7 @@ def hist2d(self, x, y, bins=10, range=None, normed=False, weights=None,
The return value is ``(counts, xedges, yedges, Image)``.

Other parameters
-----------------
----------------
kwargs : :meth:`pcolorfast` properties.

See also
Expand Down
6 changes: 3 additions & 3 deletions lib/matplotlib/backend_managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def toolmanager_connect(self, s, func):
Connect event with string *s* to *func*.

Parameters
-----------
----------
s : String
Name of the event

Expand Down Expand Up @@ -138,7 +138,7 @@ def get_tool_keymap(self, name):
Name of the Tool

Returns
----------
-------
list : list of keys associated with the Tool
"""

Expand Down Expand Up @@ -379,7 +379,7 @@ def get_tool(self, name, warn=True):
Return the tool object, also accepts the actual tool for convenience

Parameters
-----------
----------
name : str, ToolBase
Name of the tool, or the tool itself
warn : bool, optional
Expand Down
10 changes: 5 additions & 5 deletions lib/matplotlib/cbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def warn_deprecated(
Used to display deprecation warning in a standard way.

Parameters
------------
----------
since : str
The release at which this API became deprecated.

Expand Down Expand Up @@ -143,7 +143,7 @@ def deprecated(since, message='', name='', alternative='', pending=False,
Decorator to mark a function as deprecated.

Parameters
------------
----------
since : str
The release at which this API became deprecated. This is
required.
Expand Down Expand Up @@ -599,7 +599,7 @@ def local_over_kwdict(local_var, kwargs, *keys):
kwargs dict in place.

Parameters
------------
----------
local_var: any object
The local variable (highest priority)

Expand All @@ -611,12 +611,12 @@ def local_over_kwdict(local_var, kwargs, *keys):
priority

Returns
---------
-------
out: any object
Either local_var or one of kwargs[key] for key in keys

Raises
--------
------
IgnoredKeywordWarning
For each key in keys that is removed from kwargs but not used as
the output value
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,7 @@ def set_marker(self, marker):
ACCEPTS: :mod:`A valid marker style <matplotlib.markers>`

Parameters
-----------
----------

marker: marker style
See `~matplotlib.markers` for full description of possible
Expand Down
6 changes: 3 additions & 3 deletions lib/matplotlib/mlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
commands with the same names.

MATLAB compatible functions
-------------------------------
---------------------------

:func:`cohere`
Coherence (normalized cross spectral density)
Expand Down Expand Up @@ -39,7 +39,7 @@
Spectrogram (spectrum over segments of time)

Miscellaneous functions
-------------------------
-----------------------

Functions that don't exist in MATLAB, but are useful anyway:

Expand Down Expand Up @@ -99,7 +99,7 @@


record array helper functions
-------------------------------
-----------------------------

A collection of helper methods for numpyrecord arrays

Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/pyplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ def gca(**kwargs):
current figure matching the given keyword args, or create one.

Examples
---------
--------
To get the current polar axes on the current figure::

plt.gca(projection='polar')
Expand Down
4 changes: 2 additions & 2 deletions lib/matplotlib/tri/triinterpolate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1334,14 +1334,14 @@ def _cg(A, b, x0=None, tol=1.e-10, maxiter=1000):
Right hand side of the linear system.

Returns
----------
-------
x: array.
The converged solution.
err: float
The absolute error np.linalg.norm(A.dot(x) - b)

Other parameters
----------
----------------
x0: array.
Starting guess for the solution.
tol: float.
Expand Down