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

Method update_scenes

plotly/graph_objs/_figurewidget.py:23144–23188  ·  view source on GitHub ↗

Perform a property update operation on all scene objects that satisfy the specified selection criteria Parameters ---------- patch: dict Dictionary of property updates to be applied to all scene objects that satisfy the selection crit

(
        self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs
    )

Source from the content-addressed store, hash-verified

23142 return self
23143
23144 def update_scenes(
23145 self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs
23146 ) -> "FigureWidget":
23147 """
23148 Perform a property update operation on all scene objects
23149 that satisfy the specified selection criteria
23150
23151 Parameters
23152 ----------
23153 patch: dict
23154 Dictionary of property updates to be applied to all
23155 scene objects that satisfy the selection criteria.
23156 selector: dict, function, or None (default None)
23157 Dict to use as selection criteria.
23158 scene objects will be selected if they contain
23159 properties corresponding to all of the dictionary's keys, with
23160 values that exactly match the supplied values. If None
23161 (the default), all scene objects are selected. If a
23162 function, it must be a function accepting a single argument and
23163 returning a boolean. The function will be called on each
23164 scene and those for which the function returned True will
23165 be in the selection.
23166 overwrite: bool
23167 If True, overwrite existing properties. If False, apply updates
23168 to existing properties recursively, preserving existing
23169 properties that are not specified in the update operation.
23170 row, col: int or None (default None)
23171 Subplot row and column index of scene objects to select.
23172 To select scene objects by row and column, the Figure
23173 must have been created using plotly.subplots.make_subplots.
23174 If None (the default), all scene objects are selected.
23175 **kwargs
23176 Additional property updates to apply to each selected
23177 scene object. If a property is specified in
23178 both patch and in **kwargs then the one in **kwargs
23179 takes precedence.
23180 Returns
23181 -------
23182 self
23183 Returns the FigureWidget object that the method was called on
23184 """
23185 for obj in self.select_scenes(selector=selector, row=row, col=col):
23186 obj.update(patch, overwrite=overwrite, **kwargs)
23187
23188 return self
23189
23190 def select_smiths(self, selector=None, row=None, col=None):
23191 """

Callers

nothing calls this directly

Calls 2

select_scenesMethod · 0.95
updateMethod · 0.45

Tested by

no test coverage detected