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

Method select_xaxes

plotly/graph_objs/_figurewidget.py:23414–23444  ·  view source on GitHub ↗

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

23412 return self
23413
23414 def select_xaxes(self, selector=None, row=None, col=None):
23415 """
23416 Select xaxis subplot objects from a particular subplot cell
23417 and/or xaxis subplot objects that satisfy custom selection
23418 criteria.
23419
23420 Parameters
23421 ----------
23422 selector: dict, function, or None (default None)
23423 Dict to use as selection criteria.
23424 xaxis objects will be selected if they contain
23425 properties corresponding to all of the dictionary's keys, with
23426 values that exactly match the supplied values. If None
23427 (the default), all xaxis objects are selected. If a
23428 function, it must be a function accepting a single argument and
23429 returning a boolean. The function will be called on each
23430 xaxis and those for which the function returned True will
23431 be in the selection.
23432 row, col: int or None (default None)
23433 Subplot row and column index of xaxis objects to select.
23434 To select xaxis objects by row and column, the Figure
23435 must have been created using plotly.subplots.make_subplots.
23436 If None (the default), all xaxis objects are selected.
23437 Returns
23438 -------
23439 generator
23440 Generator that iterates through all of the xaxis
23441 objects that satisfy all of the specified selection criteria
23442 """
23443
23444 return self._select_layout_subplots_by_prefix("xaxis", selector, row, col)
23445
23446 def for_each_xaxis(self, fn, selector=None, row=None, col=None) -> "FigureWidget":
23447 """

Callers 2

for_each_xaxisMethod · 0.95
update_xaxesMethod · 0.95

Tested by

no test coverage detected