Select map subplot objects from a particular subplot cell and/or map 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)
| 22740 | return self |
| 22741 | |
| 22742 | def select_maps(self, selector=None, row=None, col=None): |
| 22743 | """ |
| 22744 | Select map subplot objects from a particular subplot cell |
| 22745 | and/or map subplot objects that satisfy custom selection |
| 22746 | criteria. |
| 22747 | |
| 22748 | Parameters |
| 22749 | ---------- |
| 22750 | selector: dict, function, or None (default None) |
| 22751 | Dict to use as selection criteria. |
| 22752 | map objects will be selected if they contain |
| 22753 | properties corresponding to all of the dictionary's keys, with |
| 22754 | values that exactly match the supplied values. If None |
| 22755 | (the default), all map objects are selected. If a |
| 22756 | function, it must be a function accepting a single argument and |
| 22757 | returning a boolean. The function will be called on each |
| 22758 | map and those for which the function returned True will |
| 22759 | be in the selection. |
| 22760 | row, col: int or None (default None) |
| 22761 | Subplot row and column index of map objects to select. |
| 22762 | To select map objects by row and column, the Figure |
| 22763 | must have been created using plotly.subplots.make_subplots. |
| 22764 | If None (the default), all map objects are selected. |
| 22765 | Returns |
| 22766 | ------- |
| 22767 | generator |
| 22768 | Generator that iterates through all of the map |
| 22769 | objects that satisfy all of the specified selection criteria |
| 22770 | """ |
| 22771 | |
| 22772 | return self._select_layout_subplots_by_prefix("map", selector, row, col) |
| 22773 | |
| 22774 | def for_each_map(self, fn, selector=None, row=None, col=None) -> "FigureWidget": |
| 22775 | """ |
no test coverage detected