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

Skip to content

Commit 8039d12

Browse files
committed
added comments; fixed typo
1 parent f5c787f commit 8039d12

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

examples/statistics/errorbar_limits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Demo of the errorbar function, includig upper and lower limits
2+
Demo of the errorbar function, including upper and lower limits
33
"""
44
import numpy as np
55
import matplotlib.pyplot as plt

lib/matplotlib/axes/_axes.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2754,6 +2754,8 @@ def xywhere(xs, ys, mask):
27542754
right = [thisx + thiserr for (thisx, thiserr)
27552755
in cbook.safezip(x, xerr)]
27562756

2757+
# select points without upper/lower limits in x
2758+
# draw normal errorbars for these points
27572759
noxlims = ~(xlolims | xuplims)
27582760
if noxlims.any():
27592761
yo, _ = xywhere(y, right, noxlims & everymask)
@@ -2802,6 +2804,8 @@ def xywhere(xs, ys, mask):
28022804
upper = [thisy + thiserr for (thisy, thiserr)
28032805
in cbook.safezip(y, yerr)]
28042806

2807+
# select points without upper/lower limits in y
2808+
# draw normal errorbars for these points
28052809
noylims = ~(lolims | uplims)
28062810
if noylims.any():
28072811
xo, _ = xywhere(x, lower, noylims & everymask)

0 commit comments

Comments
 (0)