Select polar subplot objects from a particular subplot cell and/or polar 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)
| 22964 | return self |
| 22965 | |
| 22966 | def select_polars(self, selector=None, row=None, col=None): |
| 22967 | """ |
| 22968 | Select polar subplot objects from a particular subplot cell |
| 22969 | and/or polar subplot objects that satisfy custom selection |
| 22970 | criteria. |
| 22971 | |
| 22972 | Parameters |
| 22973 | ---------- |
| 22974 | selector: dict, function, or None (default None) |
| 22975 | Dict to use as selection criteria. |
| 22976 | polar objects will be selected if they contain |
| 22977 | properties corresponding to all of the dictionary's keys, with |
| 22978 | values that exactly match the supplied values. If None |
| 22979 | (the default), all polar objects are selected. If a |
| 22980 | function, it must be a function accepting a single argument and |
| 22981 | returning a boolean. The function will be called on each |
| 22982 | polar and those for which the function returned True will |
| 22983 | be in the selection. |
| 22984 | row, col: int or None (default None) |
| 22985 | Subplot row and column index of polar objects to select. |
| 22986 | To select polar objects by row and column, the Figure |
| 22987 | must have been created using plotly.subplots.make_subplots. |
| 22988 | If None (the default), all polar objects are selected. |
| 22989 | Returns |
| 22990 | ------- |
| 22991 | generator |
| 22992 | Generator that iterates through all of the polar |
| 22993 | objects that satisfy all of the specified selection criteria |
| 22994 | """ |
| 22995 | |
| 22996 | return self._select_layout_subplots_by_prefix("polar", selector, row, col) |
| 22997 | |
| 22998 | def for_each_polar(self, fn, selector=None, row=None, col=None) -> "FigureWidget": |
| 22999 | """ |
no test coverage detected