Select geo subplot objects from a particular subplot cell and/or geo subplot objects that satisfy custom selection criteria. Parameters ---------- selector: dict, function, or None (default None) Dict to use as selection criteria.
(self, selector=None, row=None, col=None)
| 22516 | return self |
| 22517 | |
| 22518 | def select_geos(self, selector=None, row=None, col=None): |
| 22519 | """ |
| 22520 | Select geo subplot objects from a particular subplot cell |
| 22521 | and/or geo subplot objects that satisfy custom selection |
| 22522 | criteria. |
| 22523 | |
| 22524 | Parameters |
| 22525 | ---------- |
| 22526 | selector: dict, function, or None (default None) |
| 22527 | Dict to use as selection criteria. |
| 22528 | geo objects will be selected if they contain |
| 22529 | properties corresponding to all of the dictionary's keys, with |
| 22530 | values that exactly match the supplied values. If None |
| 22531 | (the default), all geo objects are selected. If a |
| 22532 | function, it must be a function accepting a single argument and |
| 22533 | returning a boolean. The function will be called on each |
| 22534 | geo and those for which the function returned True will |
| 22535 | be in the selection. |
| 22536 | row, col: int or None (default None) |
| 22537 | Subplot row and column index of geo objects to select. |
| 22538 | To select geo objects by row and column, the Figure |
| 22539 | must have been created using plotly.subplots.make_subplots. |
| 22540 | If None (the default), all geo objects are selected. |
| 22541 | Returns |
| 22542 | ------- |
| 22543 | generator |
| 22544 | Generator that iterates through all of the geo |
| 22545 | objects that satisfy all of the specified selection criteria |
| 22546 | """ |
| 22547 | |
| 22548 | return self._select_layout_subplots_by_prefix("geo", selector, row, col) |
| 22549 | |
| 22550 | def for_each_geo(self, fn, selector=None, row=None, col=None) -> "FigureWidget": |
| 22551 | """ |
no test coverage detected