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

Skip to content

Commit a83790b

Browse files
committed
slight tweak to the documentation of errorbar to make it clear
that xerr and yerr are always relative to the data location.
1 parent b3f676c commit a83790b

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

lib/matplotlib/axes.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5320,11 +5320,12 @@ def errorbar(self, x, y, yerr=None, xerr=None,
53205320
Optional keyword arguments:
53215321
53225322
*xerr*/*yerr*: [ scalar | N, Nx1, or 2xN array-like ]
5323-
If a scalar number, len(N) array-like object, or an Nx1 array-like
5324-
object, errorbars are drawn +/- value.
5323+
If a scalar number, len(N) array-like object, or an Nx1
5324+
array-like object, errorbars are drawn at +/-value relative
5325+
to the data.
53255326
5326-
If a sequence of shape 2xN, errorbars are drawn at -row1 and
5327-
+row2
5327+
If a sequence of shape 2xN, errorbars are drawn at - row1
5328+
and +row2 relative to the data.
53285329
53295330
*fmt*: '-'
53305331
The plot format symbol. If *fmt* is *None*, only the

0 commit comments

Comments
 (0)