MCPcopy Index your code
hub / github.com/plotly/plotly.py / select_smiths

Method select_smiths

plotly/graph_objs/_figurewidget.py:23190–23220  ·  view source on GitHub ↗

Select smith subplot objects from a particular subplot cell and/or smith 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)

Source from the content-addressed store, hash-verified

23188 return self
23189
23190 def select_smiths(self, selector=None, row=None, col=None):
23191 """
23192 Select smith subplot objects from a particular subplot cell
23193 and/or smith subplot objects that satisfy custom selection
23194 criteria.
23195
23196 Parameters
23197 ----------
23198 selector: dict, function, or None (default None)
23199 Dict to use as selection criteria.
23200 smith objects will be selected if they contain
23201 properties corresponding to all of the dictionary's keys, with
23202 values that exactly match the supplied values. If None
23203 (the default), all smith objects are selected. If a
23204 function, it must be a function accepting a single argument and
23205 returning a boolean. The function will be called on each
23206 smith and those for which the function returned True will
23207 be in the selection.
23208 row, col: int or None (default None)
23209 Subplot row and column index of smith objects to select.
23210 To select smith objects by row and column, the Figure
23211 must have been created using plotly.subplots.make_subplots.
23212 If None (the default), all smith objects are selected.
23213 Returns
23214 -------
23215 generator
23216 Generator that iterates through all of the smith
23217 objects that satisfy all of the specified selection criteria
23218 """
23219
23220 return self._select_layout_subplots_by_prefix("smith", selector, row, col)
23221
23222 def for_each_smith(self, fn, selector=None, row=None, col=None) -> "FigureWidget":
23223 """

Callers 2

for_each_smithMethod · 0.95
update_smithsMethod · 0.95

Tested by

no test coverage detected