Select mapbox subplot objects from a particular subplot cell and/or mapbox 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)
| 22852 | return self |
| 22853 | |
| 22854 | def select_mapboxes(self, selector=None, row=None, col=None): |
| 22855 | """ |
| 22856 | Select mapbox subplot objects from a particular subplot cell |
| 22857 | and/or mapbox subplot objects that satisfy custom selection |
| 22858 | criteria. |
| 22859 | |
| 22860 | Parameters |
| 22861 | ---------- |
| 22862 | selector: dict, function, or None (default None) |
| 22863 | Dict to use as selection criteria. |
| 22864 | mapbox objects will be selected if they contain |
| 22865 | properties corresponding to all of the dictionary's keys, with |
| 22866 | values that exactly match the supplied values. If None |
| 22867 | (the default), all mapbox objects are selected. If a |
| 22868 | function, it must be a function accepting a single argument and |
| 22869 | returning a boolean. The function will be called on each |
| 22870 | mapbox and those for which the function returned True will |
| 22871 | be in the selection. |
| 22872 | row, col: int or None (default None) |
| 22873 | Subplot row and column index of mapbox objects to select. |
| 22874 | To select mapbox objects by row and column, the Figure |
| 22875 | must have been created using plotly.subplots.make_subplots. |
| 22876 | If None (the default), all mapbox objects are selected. |
| 22877 | Returns |
| 22878 | ------- |
| 22879 | generator |
| 22880 | Generator that iterates through all of the mapbox |
| 22881 | objects that satisfy all of the specified selection criteria |
| 22882 | """ |
| 22883 | |
| 22884 | return self._select_layout_subplots_by_prefix("mapbox", selector, row, col) |
| 22885 | |
| 22886 | def for_each_mapbox(self, fn, selector=None, row=None, col=None) -> "FigureWidget": |
| 22887 | """ |
no test coverage detected