-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
DOC: Updating docstring to numpy doc format for errorbar #7032
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
Changes from 1 commit
4d2c994
5ecdb2e
d3d5ad0
89c8586
5a9ee00
6ab965e
835fec6
d06853b
96b05e9
f2f7689
8ae6f94
98f4ac1
b5dafba
bec46f0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2691,7 +2691,8 @@ def errorbar(self, x, y, yerr=None, xerr=None, | |
| barsabove=False, lolims=False, uplims=False, | ||
| xlolims=False, xuplims=False, errorevery=1, capthick=None, | ||
| **kwargs): | ||
| """Plot an errorbar graph. | ||
| """ | ||
| Plot an errorbar graph. | ||
|
|
||
| Plot x versus y with error deltas in yerr and xerr. | ||
| Vertical errorbars are plotted if yerr is not None. | ||
|
|
@@ -2702,13 +2703,13 @@ def errorbar(self, x, y, yerr=None, xerr=None, | |
|
|
||
| Parameters | ||
| ---------- | ||
| x : scalar | ||
| x : scalar | ||
| y : scalar | ||
| xerr/yerr : scalar or array-like, shape(n,1) or shape(2,n), optional, default: None | ||
|
|
||
|
||
| xerr/yerr : scalar or array-like, shape(n,1) or shape(2,n), optional | ||
| If a scalar number, len(N) array-like object, or an Nx1 | ||
| array-like object, errorbars are drawn at +/-value relative | ||
| to the data. | ||
| to the data. Default is None. | ||
|
|
||
| If a sequence of shape 2xN, errorbars are drawn at -row1 | ||
| and +row2 relative to the data. | ||
|
|
@@ -2759,11 +2760,11 @@ def errorbar(self, x, y, yerr=None, xerr=None, | |
|
|
||
| Returns | ||
| ------- | ||
| plotline: :class:`~matplotlib.lines.Line2D` instance | ||
| plotline : :class:`~matplotlib.lines.Line2D` instance | ||
| x, y plot markers and/or line | ||
| caplines: | ||
| caplines : | ||
| list of error bar cap :class:`~matplotlib.lines.Line2D` instances | ||
|
||
| barlinecols: | ||
| barlinecols : | ||
| list of :class:`~matplotlib.collections.LineCollection` instances for | ||
| the horizontal and vertical error ranges. | ||
|
|
||
|
|
@@ -2789,7 +2790,6 @@ def errorbar(self, x, y, yerr=None, xerr=None, | |
| Example | ||
| ------- | ||
|
||
| .. plot:: mpl_examples/statistics/errorbar_demo.py | ||
|
|
||
| """ | ||
| kwargs = cbook.normalize_kwargs(kwargs, _alias_map) | ||
| kwargs.setdefault('zorder', 2) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure that the arguments should not have the distinct formatting that they originally had.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I much prefer the way it is now, and I think we've had this discussion about 3 years ago and agreed to remove the *. This do not bring much in the sphinx rendering, and clutter the python docstrings.