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

Method select_ternaries

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

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

Callers 2

for_each_ternaryMethod · 0.95
update_ternariesMethod · 0.95

Tested by

no test coverage detected