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

Method update_ternaries

plotly/graph_objs/_figurewidget.py:23368–23412  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

23366 return self
23367
23368 def update_ternaries(
23369 self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs
23370 ) -> "FigureWidget":
23371 """
23372 Perform a property update operation on all ternary objects
23373 that satisfy the specified selection criteria
23374
23375 Parameters
23376 ----------
23377 patch: dict
23378 Dictionary of property updates to be applied to all
23379 ternary objects that satisfy the selection criteria.
23380 selector: dict, function, or None (default None)
23381 Dict to use as selection criteria.
23382 ternary objects will be selected if they contain
23383 properties corresponding to all of the dictionary's keys, with
23384 values that exactly match the supplied values. If None
23385 (the default), all ternary objects are selected. If a
23386 function, it must be a function accepting a single argument and
23387 returning a boolean. The function will be called on each
23388 ternary and those for which the function returned True will
23389 be in the selection.
23390 overwrite: bool
23391 If True, overwrite existing properties. If False, apply updates
23392 to existing properties recursively, preserving existing
23393 properties that are not specified in the update operation.
23394 row, col: int or None (default None)
23395 Subplot row and column index of ternary objects to select.
23396 To select ternary objects by row and column, the Figure
23397 must have been created using plotly.subplots.make_subplots.
23398 If None (the default), all ternary objects are selected.
23399 **kwargs
23400 Additional property updates to apply to each selected
23401 ternary object. If a property is specified in
23402 both patch and in **kwargs then the one in **kwargs
23403 takes precedence.
23404 Returns
23405 -------
23406 self
23407 Returns the FigureWidget object that the method was called on
23408 """
23409 for obj in self.select_ternaries(selector=selector, row=row, col=col):
23410 obj.update(patch, overwrite=overwrite, **kwargs)
23411
23412 return self
23413
23414 def select_xaxes(self, selector=None, row=None, col=None):
23415 """

Callers

nothing calls this directly

Calls 2

select_ternariesMethod · 0.95
updateMethod · 0.45

Tested by

no test coverage detected