MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / fill_between

Method fill_between

lib/mpl_toolkits/mplot3d/axes3d.py:2246–2374  ·  view source on GitHub ↗

Fill the area between two 3D curves. The curves are defined by the points (*x1*, *y1*, *z1*) and (*x2*, *y2*, *z2*). This creates one or multiple quadrangle polygons that are filled. All points must be the same length N, or a single value to be used for all

(self, x1, y1, z1, x2, y2, z2, *,
                     where=None, mode='auto', facecolors=None, shade=None,
                     axlim_clip=False, **kwargs)

Source from the content-addressed store, hash-verified

2244 plot3D = plot
2245
2246 def fill_between(self, x1, y1, z1, x2, y2, z2, *,
2247 where=None, mode='auto', facecolors=None, shade=None,
2248 axlim_clip=False, **kwargs):
2249 """
2250 Fill the area between two 3D curves.
2251
2252 The curves are defined by the points (*x1*, *y1*, *z1*) and
2253 (*x2*, *y2*, *z2*). This creates one or multiple quadrangle
2254 polygons that are filled. All points must be the same length N, or a
2255 single value to be used for all points.
2256
2257 Parameters
2258 ----------
2259 x1, y1, z1 : float or 1D array-like
2260 x, y, and z coordinates of vertices for 1st line.
2261
2262 x2, y2, z2 : float or 1D array-like
2263 x, y, and z coordinates of vertices for 2nd line.
2264
2265 where : array of bool (length N), optional
2266 Define *where* to exclude some regions from being filled. The
2267 filled regions are defined by the coordinates ``pts[where]``,
2268 for all x, y, and z pts. More precisely, fill between ``pts[i]``
2269 and ``pts[i+1]`` if ``where[i] and where[i+1]``. Note that this
2270 definition implies that an isolated *True* value between two
2271 *False* values in *where* will not result in filling. Both sides of
2272 the *True* position remain unfilled due to the adjacent *False*
2273 values.
2274
2275 mode : {'quad', 'polygon', 'auto'}, default: 'auto'
2276 The fill mode. One of:
2277
2278 - 'quad': A separate quadrilateral polygon is created for each
2279 pair of subsequent points in the two lines.
2280 - 'polygon': The two lines are connected to form a single polygon.
2281 This is faster and can render more cleanly for simple shapes
2282 (e.g. for filling between two lines that lie within a plane).
2283 - 'auto': If the points all lie on the same 3D plane, 'polygon' is
2284 used. Otherwise, 'quad' is used.
2285
2286 facecolors : :mpltype:`color` or list of :mpltype:`color`, optional
2287 Colors of each individual patch, or a single color to be used for
2288 all patches. If not given, the next color from the patch color
2289 cycle is used.
2290
2291 shade : bool, default: None
2292 Whether to shade the facecolors. If *None*, then defaults to *True*
2293 for 'quad' mode and *False* for 'polygon' mode.
2294
2295 axlim_clip : bool, default: False
2296 Whether to hide data that is outside the axes view limits.
2297
2298 .. versionadded:: 3.10
2299
2300 **kwargs
2301 All other keyword arguments are passed on to `.Poly3DCollection`.
2302
2303 Returns

Callers 3

test_fill_between_quadFunction · 0.45
test_removalFunction · 0.45

Calls 4

auto_scale_xyzMethod · 0.95
has_dataMethod · 0.80
add_collectionMethod · 0.80
get_next_colorMethod · 0.45

Tested by 3

test_fill_between_quadFunction · 0.36
test_removalFunction · 0.36