Set new values for the two bounding curves. Parameters ---------- t : array-like The ``self.t_direction`` coordinates of the nodes defining the curves. f1 : array-like or float The other coordinates of the nodes defining the first cu
(self, t, f1, f2, *, where=None)
| 1469 | return self._f_dir_from_t(self.t_direction) |
| 1470 | |
| 1471 | def set_data(self, t, f1, f2, *, where=None): |
| 1472 | """ |
| 1473 | Set new values for the two bounding curves. |
| 1474 | |
| 1475 | Parameters |
| 1476 | ---------- |
| 1477 | t : array-like |
| 1478 | The ``self.t_direction`` coordinates of the nodes defining the curves. |
| 1479 | |
| 1480 | f1 : array-like or float |
| 1481 | The other coordinates of the nodes defining the first curve. |
| 1482 | |
| 1483 | f2 : array-like or float |
| 1484 | The other coordinates of the nodes defining the second curve. |
| 1485 | |
| 1486 | where : array-like of bool, optional |
| 1487 | Define *where* to exclude some {dir} regions from being filled. |
| 1488 | The filled regions are defined by the coordinates ``t[where]``. |
| 1489 | More precisely, fill between ``t[i]`` and ``t[i+1]`` if |
| 1490 | ``where[i] and where[i+1]``. Note that this definition implies |
| 1491 | that an isolated *True* value between two *False* values in *where* |
| 1492 | will not result in filling. Both sides of the *True* position |
| 1493 | remain unfilled due to the adjacent *False* values. |
| 1494 | |
| 1495 | See Also |
| 1496 | -------- |
| 1497 | .PolyCollection.set_verts, .Line2D.set_data |
| 1498 | """ |
| 1499 | t, f1, f2 = self.axes._fill_between_process_units( |
| 1500 | self.t_direction, self._f_direction, t, f1, f2) |
| 1501 | |
| 1502 | verts = self._make_verts(t, f1, f2, where) |
| 1503 | self.set_verts(verts) |
| 1504 | |
| 1505 | def get_datalim(self, transData): |
| 1506 | """Calculate the data limits and return them as a `.Bbox`.""" |
nothing calls this directly
no test coverage detected