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