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

Skip to content

Commit 029fe21

Browse files
committed
Add note to errobar
1 parent 089da7a commit 029fe21

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Default behavior of log scales changed to mask <= 0 values
22
``````````````````````````````````````````````````````````
33

4-
Calling `matplotlib.Axes.set_xscale` or `matplotlib.Axes.set_yscale` now uses
5-
'mask' as the default method to handle invalid values (as opposed to 'clip').
6-
This means that any values <= 0 on a log scale will not be shown.
4+
Calling `matplotlib.axes.Axes.set_xscale` or `matplotlib.axes.Axes.set_yscale`
5+
now uses 'mask' as the default method to handle invalid values (as opposed to
6+
'clip'). This means that any values <= 0 on a log scale will not be shown.
77

88
Previously they were clipped to a very small number and shown.

lib/matplotlib/axes/_axes.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2751,6 +2751,10 @@ def errorbar(self, x, y, yerr=None, xerr=None,
27512751
27522752
%(Line2D)s
27532753
2754+
Notes
2755+
-----
2756+
Error bars with negative values will not be shown when plotted on a
2757+
logarithmic axis.
27542758
"""
27552759
kwargs = cbook.normalize_kwargs(kwargs, _alias_map)
27562760
# anything that comes in as 'None', drop so the default thing

0 commit comments

Comments
 (0)