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

Skip to content

Commit b4a29e3

Browse files
committed
MNT : rename step_where -> step in fill_beteween
1 parent bf2ddb1 commit b4a29e3

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
@@ -4370,7 +4370,7 @@ def fill(self, *args, **kwargs):
43704370

43714371
@docstring.dedent_interpd
43724372
def fill_between(self, x, y1, y2=0, where=None, interpolate=False,
4373-
step_where=None,
4373+
step=None,
43744374
**kwargs):
43754375
"""
43764376
Make filled polygons between two curves.
@@ -4402,7 +4402,7 @@ def fill_between(self, x, y1, y2=0, where=None, interpolate=False,
44024402
end points of the filled region will only occur on explicit
44034403
values in the *x* array.
44044404
4405-
step_where : {'pre', 'post', 'mid'}, optional
4405+
step : {'pre', 'post', 'mid'}, optional
44064406
If not None, fill with step logic.
44074407
44084408
@@ -4459,8 +4459,8 @@ def fill_between(self, x, y1, y2=0, where=None, interpolate=False,
44594459
xslice = x[ind0:ind1]
44604460
y1slice = y1[ind0:ind1]
44614461
y2slice = y2[ind0:ind1]
4462-
if step_where is not None:
4463-
step_func = STEP_LOOKUP_MAP[step_where]
4462+
if step is not None:
4463+
step_func = STEP_LOOKUP_MAP[step]
44644464
xslice, y1slice, y2slice = step_func(xslice, y1slice, y2slice)
44654465

44664466
if not len(xslice):
@@ -4523,7 +4523,7 @@ def get_interp_point(ind):
45234523

45244524
@docstring.dedent_interpd
45254525
def fill_betweenx(self, y, x1, x2=0, where=None,
4526-
step_where=None, **kwargs):
4526+
step=None, **kwargs):
45274527
"""
45284528
Make filled polygons between two horizontal curves.
45294529
@@ -4551,7 +4551,7 @@ def fill_betweenx(self, y, x1, x2=0, where=None,
45514551
it is a N length numpy boolean array and the fill will
45524552
only happen over the regions where ``where==True``
45534553
4554-
step_where : {'pre', 'post', 'mid'}, optional
4554+
step : {'pre', 'post', 'mid'}, optional
45554555
If not None, fill with step logic.
45564556
45574557
Notes
@@ -4607,8 +4607,8 @@ def fill_betweenx(self, y, x1, x2=0, where=None,
46074607
yslice = y[ind0:ind1]
46084608
x1slice = x1[ind0:ind1]
46094609
x2slice = x2[ind0:ind1]
4610-
if step_where is not None:
4611-
step_func = STEP_LOOKUP_MAP[step_where]
4610+
if step is not None:
4611+
step_func = STEP_LOOKUP_MAP[step]
46124612
yslice, x1slice, x2slice = step_func(yslice, x1slice, x2slice)
46134613

46144614
if not len(yslice):

0 commit comments

Comments
 (0)