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