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

Method select_ternaries

plotly/graph_objs/_figurewidget.py:23302–23332  ·  view source on GitHub ↗

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

23300 return self
23301
23302 def select_ternaries(self, selector=None, row=None, col=None):
23303 """
23304 Select ternary subplot objects from a particular subplot cell
23305 and/or ternary subplot objects that satisfy custom selection
23306 criteria.
23307
23308 Parameters
23309 ----------
23310 selector: dict, function, or None (default None)
23311 Dict to use as selection criteria.
23312 ternary objects will be selected if they contain
23313 properties corresponding to all of the dictionary's keys, with
23314 values that exactly match the supplied values. If None
23315 (the default), all ternary objects are selected. If a
23316 function, it must be a function accepting a single argument and
23317 returning a boolean. The function will be called on each
23318 ternary and those for which the function returned True will
23319 be in the selection.
23320 row, col: int or None (default None)
23321 Subplot row and column index of ternary objects to select.
23322 To select ternary objects by row and column, the Figure
23323 must have been created using plotly.subplots.make_subplots.
23324 If None (the default), all ternary objects are selected.
23325 Returns
23326 -------
23327 generator
23328 Generator that iterates through all of the ternary
23329 objects that satisfy all of the specified selection criteria
23330 """
23331
23332 return self._select_layout_subplots_by_prefix("ternary", selector, row, col)
23333
23334 def for_each_ternary(self, fn, selector=None, row=None, col=None) -> "FigureWidget":
23335 """

Callers 2

for_each_ternaryMethod · 0.95
update_ternariesMethod · 0.95

Tested by

no test coverage detected