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

Method select_scenes

plotly/graph_objs/_figurewidget.py:23078–23108  ·  view source on GitHub ↗

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

23076 return self
23077
23078 def select_scenes(self, selector=None, row=None, col=None):
23079 """
23080 Select scene subplot objects from a particular subplot cell
23081 and/or scene subplot objects that satisfy custom selection
23082 criteria.
23083
23084 Parameters
23085 ----------
23086 selector: dict, function, or None (default None)
23087 Dict to use as selection criteria.
23088 scene objects will be selected if they contain
23089 properties corresponding to all of the dictionary's keys, with
23090 values that exactly match the supplied values. If None
23091 (the default), all scene objects are selected. If a
23092 function, it must be a function accepting a single argument and
23093 returning a boolean. The function will be called on each
23094 scene and those for which the function returned True will
23095 be in the selection.
23096 row, col: int or None (default None)
23097 Subplot row and column index of scene objects to select.
23098 To select scene objects by row and column, the Figure
23099 must have been created using plotly.subplots.make_subplots.
23100 If None (the default), all scene objects are selected.
23101 Returns
23102 -------
23103 generator
23104 Generator that iterates through all of the scene
23105 objects that satisfy all of the specified selection criteria
23106 """
23107
23108 return self._select_layout_subplots_by_prefix("scene", selector, row, col)
23109
23110 def for_each_scene(self, fn, selector=None, row=None, col=None) -> "FigureWidget":
23111 """

Callers 2

for_each_sceneMethod · 0.95
update_scenesMethod · 0.95

Tested by

no test coverage detected