@@ -1253,51 +1253,6 @@ def set_verts_and_codes(self, verts, codes):
12531253 for xy , cds in zip (verts , codes )]
12541254 self .stale = True
12551255
1256- @classmethod
1257- @_api .deprecated ("3.7" , alternative = "fill_between" )
1258- def span_where (cls , x , ymin , ymax , where , ** kwargs ):
1259- """
1260- Return a `.BrokenBarHCollection` that plots horizontal bars from
1261- over the regions in *x* where *where* is True. The bars range
1262- on the y-axis from *ymin* to *ymax*
1263-
1264- *kwargs* are passed on to the collection.
1265- """
1266- xranges = []
1267- for ind0 , ind1 in cbook .contiguous_regions (where ):
1268- xslice = x [ind0 :ind1 ]
1269- if not len (xslice ):
1270- continue
1271- xranges .append ((xslice [0 ], xslice [- 1 ] - xslice [0 ]))
1272- return BrokenBarHCollection (xranges , [ymin , ymax - ymin ], ** kwargs )
1273-
1274-
1275- @_api .deprecated ("3.7" )
1276- class BrokenBarHCollection (PolyCollection ):
1277- """
1278- A collection of horizontal bars spanning *yrange* with a sequence of
1279- *xranges*.
1280- """
1281- def __init__ (self , xranges , yrange , ** kwargs ):
1282- """
1283- Parameters
1284- ----------
1285- xranges : list of (float, float)
1286- The sequence of (left-edge-position, width) pairs for each bar.
1287- yrange : (float, float)
1288- The (lower-edge, height) common to all bars.
1289- **kwargs
1290- Forwarded to `.Collection`.
1291- """
1292- ymin , ywidth = yrange
1293- ymax = ymin + ywidth
1294- verts = [[(xmin , ymin ),
1295- (xmin , ymax ),
1296- (xmin + xwidth , ymax ),
1297- (xmin + xwidth , ymin ),
1298- (xmin , ymin )] for xmin , xwidth in xranges ]
1299- super ().__init__ (verts , ** kwargs )
1300-
13011256
13021257class RegularPolyCollection (_CollectionWithSizes ):
13031258 """A collection of n-sided regular polygons."""
0 commit comments