Apply a function to all ternary objects that satisfy the specified selection criteria Parameters ---------- fn: Function that inputs a single ternary object. selector: dict, function, or None (default None) Dict to use as sele
(self, fn, selector=None, row=None, col=None)
| 23328 | return self._select_layout_subplots_by_prefix("ternary", selector, row, col) |
| 23329 | |
| 23330 | def for_each_ternary(self, fn, selector=None, row=None, col=None) -> "Figure": |
| 23331 | """ |
| 23332 | Apply a function to all ternary objects that satisfy the |
| 23333 | specified selection criteria |
| 23334 | |
| 23335 | Parameters |
| 23336 | ---------- |
| 23337 | fn: |
| 23338 | Function that inputs a single ternary object. |
| 23339 | selector: dict, function, or None (default None) |
| 23340 | Dict to use as selection criteria. |
| 23341 | ternary objects will be selected if they contain |
| 23342 | properties corresponding to all of the dictionary's keys, with |
| 23343 | values that exactly match the supplied values. If None |
| 23344 | (the default), all ternary objects are selected. If a |
| 23345 | function, it must be a function accepting a single argument and |
| 23346 | returning a boolean. The function will be called on each |
| 23347 | ternary and those for which the function returned True will |
| 23348 | be in the selection. |
| 23349 | row, col: int or None (default None) |
| 23350 | Subplot row and column index of ternary objects to select. |
| 23351 | To select ternary objects by row and column, the Figure |
| 23352 | must have been created using plotly.subplots.make_subplots. |
| 23353 | If None (the default), all ternary objects are selected. |
| 23354 | Returns |
| 23355 | ------- |
| 23356 | self |
| 23357 | Returns the Figure object that the method was called on |
| 23358 | """ |
| 23359 | for obj in self.select_ternaries(selector=selector, row=row, col=col): |
| 23360 | fn(obj) |
| 23361 | |
| 23362 | return self |
| 23363 | |
| 23364 | def update_ternaries( |
| 23365 | self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs |
nothing calls this directly
no test coverage detected