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

Skip to content

Commit 1981234

Browse files
committed
Remove mlab.poly_between
1 parent bca721f commit 1981234

File tree

3 files changed

+2
-29
lines changed

3 files changed

+2
-29
lines changed

doc/api/next_api_changes/2018-09-18-DS.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ in Matplotlib 2.2 has been removed. See below for a list:
3636
- `mlab.cross_from_below`
3737
- `mlab.contiguous_regions` (use `.cbook.contiguous_regions` instead)
3838
- `mlab.is_closed_polygon`
39+
- `mlab.poly_between`
3940
- `mlab.donothing_callback`

lib/matplotlib/mlab.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2717,31 +2717,3 @@ def poly_below(xmin, xs, ys):
27172717
y[:Nx] = ys
27182718
y[Nx:] = ys[::-1]
27192719
return x, y
2720-
2721-
2722-
@cbook.deprecated("2.2")
2723-
def poly_between(x, ylower, yupper):
2724-
"""
2725-
Given a sequence of *x*, *ylower* and *yupper*, return the polygon
2726-
that fills the regions between them. *ylower* or *yupper* can be
2727-
scalar or iterable. If they are iterable, they must be equal in
2728-
length to *x*.
2729-
2730-
Return value is *x*, *y* arrays for use with
2731-
:meth:`matplotlib.axes.Axes.fill`.
2732-
"""
2733-
if any(isinstance(var, np.ma.MaskedArray) for var in [ylower, yupper, x]):
2734-
numpy = np.ma
2735-
else:
2736-
numpy = np
2737-
2738-
Nx = len(x)
2739-
if not np.iterable(ylower):
2740-
ylower = ylower*numpy.ones(Nx)
2741-
2742-
if not np.iterable(yupper):
2743-
yupper = yupper*numpy.ones(Nx)
2744-
2745-
x = numpy.concatenate((x, x[::-1]))
2746-
y = numpy.concatenate((yupper, ylower[::-1]))
2747-
return x, y

lib/matplotlib/pylab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
frange,
236236
identity, inside_poly, ispower2, isvector, l1norm,
237237
l2norm, log2, movavg, norm_flat,
238-
poly_below, poly_between,
238+
poly_below,
239239
rec2csv, rec_append_fields, rec_drop_fields, rec_join, rms_flat,
240240
window_hanning, window_none)
241241

0 commit comments

Comments
 (0)