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

Skip to content

Commit 0562b46

Browse files
committed
MNT : rename step_where -> step in fill_beteween
1 parent 3484d8f commit 0562b46

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4428,7 +4428,7 @@ def fill(self, *args, **kwargs):
44284428

44294429
@docstring.dedent_interpd
44304430
def fill_between(self, x, y1, y2=0, where=None, interpolate=False,
4431-
step_where=None,
4431+
step=None,
44324432
**kwargs):
44334433
"""
44344434
Make filled polygons between two curves.
@@ -4460,7 +4460,7 @@ def fill_between(self, x, y1, y2=0, where=None, interpolate=False,
44604460
end points of the filled region will only occur on explicit
44614461
values in the *x* array.
44624462
4463-
step_where : {'pre', 'post', 'mid'}, optional
4463+
step : {'pre', 'post', 'mid'}, optional
44644464
If not None, fill with step logic.
44654465
44664466
@@ -4517,8 +4517,8 @@ def fill_between(self, x, y1, y2=0, where=None, interpolate=False,
45174517
xslice = x[ind0:ind1]
45184518
y1slice = y1[ind0:ind1]
45194519
y2slice = y2[ind0:ind1]
4520-
if step_where is not None:
4521-
step_func = STEP_LOOKUP_MAP[step_where]
4520+
if step is not None:
4521+
step_func = STEP_LOOKUP_MAP[step]
45224522
xslice, y1slice, y2slice = step_func(xslice, y1slice, y2slice)
45234523

45244524
if not len(xslice):
@@ -4581,7 +4581,7 @@ def get_interp_point(ind):
45814581

45824582
@docstring.dedent_interpd
45834583
def fill_betweenx(self, y, x1, x2=0, where=None,
4584-
step_where=None, **kwargs):
4584+
step=None, **kwargs):
45854585
"""
45864586
Make filled polygons between two horizontal curves.
45874587
@@ -4609,7 +4609,7 @@ def fill_betweenx(self, y, x1, x2=0, where=None,
46094609
it is a N length numpy boolean array and the fill will
46104610
only happen over the regions where ``where==True``
46114611
4612-
step_where : {'pre', 'post', 'mid'}, optional
4612+
step : {'pre', 'post', 'mid'}, optional
46134613
If not None, fill with step logic.
46144614
46154615
Notes
@@ -4665,8 +4665,8 @@ def fill_betweenx(self, y, x1, x2=0, where=None,
46654665
yslice = y[ind0:ind1]
46664666
x1slice = x1[ind0:ind1]
46674667
x2slice = x2[ind0:ind1]
4668-
if step_where is not None:
4669-
step_func = STEP_LOOKUP_MAP[step_where]
4668+
if step is not None:
4669+
step_func = STEP_LOOKUP_MAP[step]
46704670
yslice, x1slice, x2slice = step_func(yslice, x1slice, x2slice)
46714671

46724672
if not len(yslice):

0 commit comments

Comments
 (0)