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

Method __init__

lib/matplotlib/collections.py:1385–1453  ·  view source on GitHub ↗

Parameters ---------- t_direction : {{'x', 'y'}} The axes on which the variable lies. - 'x': the curves are ``(t, f1)`` and ``(t, f2)``. - 'y': the curves are ``(f1, t)`` and ``(f2, t)``. t : array-like The ``t_direct

(
            self, t_direction, t, f1, f2, *,
            where=None, interpolate=False, step=None, **kwargs)

Source from the content-addressed store, hash-verified

1383 `.PolyCollection` that fills the area between two x- or y-curves.
1384 """
1385 def __init__(
1386 self, t_direction, t, f1, f2, *,
1387 where=None, interpolate=False, step=None, **kwargs):
1388 """
1389 Parameters
1390 ----------
1391 t_direction : {{'x', 'y'}}
1392 The axes on which the variable lies.
1393
1394 - 'x': the curves are ``(t, f1)`` and ``(t, f2)``.
1395 - 'y': the curves are ``(f1, t)`` and ``(f2, t)``.
1396
1397 t : array-like
1398 The ``t_direction`` coordinates of the nodes defining the curves.
1399
1400 f1 : array-like or float
1401 The other coordinates of the nodes defining the first curve.
1402
1403 f2 : array-like or float
1404 The other coordinates of the nodes defining the second curve.
1405
1406 where : array-like of bool, optional
1407 Define *where* to exclude some {dir} regions from being filled.
1408 The filled regions are defined by the coordinates ``t[where]``.
1409 More precisely, fill between ``t[i]`` and ``t[i+1]`` if
1410 ``where[i] and where[i+1]``. Note that this definition implies
1411 that an isolated *True* value between two *False* values in *where*
1412 will not result in filling. Both sides of the *True* position
1413 remain unfilled due to the adjacent *False* values.
1414
1415 interpolate : bool, default: False
1416 This option is only relevant if *where* is used and the two curves
1417 are crossing each other.
1418
1419 Semantically, *where* is often used for *f1* > *f2* or
1420 similar. By default, the nodes of the polygon defining the filled
1421 region will only be placed at the positions in the *t* array.
1422 Such a polygon cannot describe the above semantics close to the
1423 intersection. The t-sections containing the intersection are
1424 simply clipped.
1425
1426 Setting *interpolate* to *True* will calculate the actual
1427 intersection point and extend the filled region up to this point.
1428
1429 step : {{'pre', 'post', 'mid'}}, optional
1430 Define *step* if the filling should be a step function,
1431 i.e. constant in between *t*. The value determines where the
1432 step will occur:
1433
1434 - 'pre': The f value is continued constantly to the left from
1435 every *t* position, i.e. the interval ``(t[i-1], t[i]]`` has the
1436 value ``f[i]``.
1437 - 'post': The y value is continued constantly to the right from
1438 every *x* position, i.e. the interval ``[t[i], t[i+1])`` has the
1439 value ``f[i]``.
1440 - 'mid': Steps occur half-way between the *t* positions.
1441
1442 **kwargs

Callers

nothing calls this directly

Calls 2

_make_vertsMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected