Select coloraxis subplot objects from a particular subplot cell and/or coloraxis subplot objects that satisfy custom selection criteria. Parameters ---------- selector: dict, function, or None (default None) Dict to use as selection crite
(self, selector=None, row=None, col=None)
| 22400 | return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) |
| 22401 | |
| 22402 | def select_coloraxes(self, selector=None, row=None, col=None): |
| 22403 | """ |
| 22404 | Select coloraxis subplot objects from a particular subplot cell |
| 22405 | and/or coloraxis subplot objects that satisfy custom selection |
| 22406 | criteria. |
| 22407 | |
| 22408 | Parameters |
| 22409 | ---------- |
| 22410 | selector: dict, function, or None (default None) |
| 22411 | Dict to use as selection criteria. |
| 22412 | coloraxis objects will be selected if they contain |
| 22413 | properties corresponding to all of the dictionary's keys, with |
| 22414 | values that exactly match the supplied values. If None |
| 22415 | (the default), all coloraxis objects are selected. If a |
| 22416 | function, it must be a function accepting a single argument and |
| 22417 | returning a boolean. The function will be called on each |
| 22418 | coloraxis and those for which the function returned True will |
| 22419 | be in the selection. |
| 22420 | row, col: int or None (default None) |
| 22421 | Subplot row and column index of coloraxis objects to select. |
| 22422 | To select coloraxis objects by row and column, the Figure |
| 22423 | must have been created using plotly.subplots.make_subplots. |
| 22424 | If None (the default), all coloraxis objects are selected. |
| 22425 | Returns |
| 22426 | ------- |
| 22427 | generator |
| 22428 | Generator that iterates through all of the coloraxis |
| 22429 | objects that satisfy all of the specified selection criteria |
| 22430 | """ |
| 22431 | |
| 22432 | return self._select_layout_subplots_by_prefix("coloraxis", selector, row, col) |
| 22433 | |
| 22434 | def for_each_coloraxis(self, fn, selector=None, row=None, col=None) -> "Figure": |
| 22435 | """ |
no test coverage detected