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

Method select_yaxes

plotly/graph_objs/_figure.py:23522–23566  ·  view source on GitHub ↗

Select yaxis subplot objects from a particular subplot cell and/or yaxis 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, secondary_y=None)

Source from the content-addressed store, hash-verified

23520 return self
23521
23522 def select_yaxes(self, selector=None, row=None, col=None, secondary_y=None):
23523 """
23524 Select yaxis subplot objects from a particular subplot cell
23525 and/or yaxis subplot objects that satisfy custom selection
23526 criteria.
23527
23528 Parameters
23529 ----------
23530 selector: dict, function, or None (default None)
23531 Dict to use as selection criteria.
23532 yaxis objects will be selected if they contain
23533 properties corresponding to all of the dictionary's keys, with
23534 values that exactly match the supplied values. If None
23535 (the default), all yaxis objects are selected. If a
23536 function, it must be a function accepting a single argument and
23537 returning a boolean. The function will be called on each
23538 yaxis and those for which the function returned True will
23539 be in the selection.
23540 row, col: int or None (default None)
23541 Subplot row and column index of yaxis objects to select.
23542 To select yaxis objects by row and column, the Figure
23543 must have been created using plotly.subplots.make_subplots.
23544 If None (the default), all yaxis objects are selected.
23545 secondary_y: boolean or None (default None)
23546 * If True, only select yaxis objects associated with the secondary
23547 y-axis of the subplot.
23548 * If False, only select yaxis objects associated with the primary
23549 y-axis of the subplot.
23550 * If None (the default), do not filter yaxis objects based on
23551 a secondary y-axis condition.
23552
23553 To select yaxis objects by secondary y-axis, the Figure must
23554 have been created using plotly.subplots.make_subplots. See
23555 the docstring for the specs argument to make_subplots for more
23556 info on creating subplots with secondary y-axes.
23557 Returns
23558 -------
23559 generator
23560 Generator that iterates through all of the yaxis
23561 objects that satisfy all of the specified selection criteria
23562 """
23563
23564 return self._select_layout_subplots_by_prefix(
23565 "yaxis", selector, row, col, secondary_y=secondary_y
23566 )
23567
23568 def for_each_yaxis(
23569 self, fn, selector=None, row=None, col=None, secondary_y=None

Callers 4

for_each_yaxisMethod · 0.95
update_yaxesMethod · 0.95
configure_cartesian_axesFunction · 0.45

Tested by

no test coverage detected