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

Method select_scenes

plotly/graph_objs/_figure.py:23074–23104  ·  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

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

Callers 2

for_each_sceneMethod · 0.95
update_scenesMethod · 0.95

Tested by

no test coverage detected