Apply a function to all xaxis objects that satisfy the specified selection criteria Parameters ---------- fn: Function that inputs a single xaxis object. selector: dict, function, or None (default None) Dict to use as selectio
(self, fn, selector=None, row=None, col=None)
| 23440 | return self._select_layout_subplots_by_prefix("xaxis", selector, row, col) |
| 23441 | |
| 23442 | def for_each_xaxis(self, fn, selector=None, row=None, col=None) -> "Figure": |
| 23443 | """ |
| 23444 | Apply a function to all xaxis objects that satisfy the |
| 23445 | specified selection criteria |
| 23446 | |
| 23447 | Parameters |
| 23448 | ---------- |
| 23449 | fn: |
| 23450 | Function that inputs a single xaxis object. |
| 23451 | selector: dict, function, or None (default None) |
| 23452 | Dict to use as selection criteria. |
| 23453 | xaxis objects will be selected if they contain |
| 23454 | properties corresponding to all of the dictionary's keys, with |
| 23455 | values that exactly match the supplied values. If None |
| 23456 | (the default), all xaxis objects are selected. If a |
| 23457 | function, it must be a function accepting a single argument and |
| 23458 | returning a boolean. The function will be called on each |
| 23459 | xaxis and those for which the function returned True will |
| 23460 | be in the selection. |
| 23461 | row, col: int or None (default None) |
| 23462 | Subplot row and column index of xaxis objects to select. |
| 23463 | To select xaxis objects by row and column, the Figure |
| 23464 | must have been created using plotly.subplots.make_subplots. |
| 23465 | If None (the default), all xaxis objects are selected. |
| 23466 | Returns |
| 23467 | ------- |
| 23468 | self |
| 23469 | Returns the Figure object that the method was called on |
| 23470 | """ |
| 23471 | for obj in self.select_xaxes(selector=selector, row=row, col=col): |
| 23472 | fn(obj) |
| 23473 | |
| 23474 | return self |
| 23475 | |
| 23476 | def update_xaxes( |
| 23477 | self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs |
nothing calls this directly
no test coverage detected