Apply a function to all map objects that satisfy the specified selection criteria Parameters ---------- fn: Function that inputs a single map object. selector: dict, function, or None (default None) Dict to use as selection cr
(self, fn, selector=None, row=None, col=None)
| 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 | """ |
| 22776 | Apply a function to all map objects that satisfy the |
| 22777 | specified selection criteria |
| 22778 | |
| 22779 | Parameters |
| 22780 | ---------- |
| 22781 | fn: |
| 22782 | Function that inputs a single map object. |
| 22783 | selector: dict, function, or None (default None) |
| 22784 | Dict to use as selection criteria. |
| 22785 | map objects will be selected if they contain |
| 22786 | properties corresponding to all of the dictionary's keys, with |
| 22787 | values that exactly match the supplied values. If None |
| 22788 | (the default), all map objects are selected. If a |
| 22789 | function, it must be a function accepting a single argument and |
| 22790 | returning a boolean. The function will be called on each |
| 22791 | map and those for which the function returned True will |
| 22792 | be in the selection. |
| 22793 | row, col: int or None (default None) |
| 22794 | Subplot row and column index of map objects to select. |
| 22795 | To select map objects by row and column, the Figure |
| 22796 | must have been created using plotly.subplots.make_subplots. |
| 22797 | If None (the default), all map objects are selected. |
| 22798 | Returns |
| 22799 | ------- |
| 22800 | self |
| 22801 | Returns the FigureWidget object that the method was called on |
| 22802 | """ |
| 22803 | for obj in self.select_maps(selector=selector, row=row, col=col): |
| 22804 | fn(obj) |
| 22805 | |
| 22806 | return self |
| 22807 | |
| 22808 | def update_maps( |
| 22809 | self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs |
nothing calls this directly
no test coverage detected