Apply a function to all scene objects that satisfy the specified selection criteria Parameters ---------- fn: Function that inputs a single scene object. selector: dict, function, or None (default None) Dict to use as selectio
(self, fn, selector=None, row=None, col=None)
| 23104 | return self._select_layout_subplots_by_prefix("scene", selector, row, col) |
| 23105 | |
| 23106 | def for_each_scene(self, fn, selector=None, row=None, col=None) -> "Figure": |
| 23107 | """ |
| 23108 | Apply a function to all scene objects that satisfy the |
| 23109 | specified selection criteria |
| 23110 | |
| 23111 | Parameters |
| 23112 | ---------- |
| 23113 | fn: |
| 23114 | Function that inputs a single scene object. |
| 23115 | selector: dict, function, or None (default None) |
| 23116 | Dict to use as selection criteria. |
| 23117 | scene objects will be selected if they contain |
| 23118 | properties corresponding to all of the dictionary's keys, with |
| 23119 | values that exactly match the supplied values. If None |
| 23120 | (the default), all scene objects are selected. If a |
| 23121 | function, it must be a function accepting a single argument and |
| 23122 | returning a boolean. The function will be called on each |
| 23123 | scene and those for which the function returned True will |
| 23124 | be in the selection. |
| 23125 | row, col: int or None (default None) |
| 23126 | Subplot row and column index of scene objects to select. |
| 23127 | To select scene objects by row and column, the Figure |
| 23128 | must have been created using plotly.subplots.make_subplots. |
| 23129 | If None (the default), all scene objects are selected. |
| 23130 | Returns |
| 23131 | ------- |
| 23132 | self |
| 23133 | Returns the Figure object that the method was called on |
| 23134 | """ |
| 23135 | for obj in self.select_scenes(selector=selector, row=row, col=col): |
| 23136 | fn(obj) |
| 23137 | |
| 23138 | return self |
| 23139 | |
| 23140 | def update_scenes( |
| 23141 | self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs |
nothing calls this directly
no test coverage detected