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

Method select_maps

plotly/graph_objs/_figure.py:22738–22768  ·  view source on GitHub ↗

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

22736 return self
22737
22738 def select_maps(self, selector=None, row=None, col=None):
22739 """
22740 Select map subplot objects from a particular subplot cell
22741 and/or map subplot objects that satisfy custom selection
22742 criteria.
22743
22744 Parameters
22745 ----------
22746 selector: dict, function, or None (default None)
22747 Dict to use as selection criteria.
22748 map objects will be selected if they contain
22749 properties corresponding to all of the dictionary's keys, with
22750 values that exactly match the supplied values. If None
22751 (the default), all map objects are selected. If a
22752 function, it must be a function accepting a single argument and
22753 returning a boolean. The function will be called on each
22754 map and those for which the function returned True will
22755 be in the selection.
22756 row, col: int or None (default None)
22757 Subplot row and column index of map objects to select.
22758 To select map objects by row and column, the Figure
22759 must have been created using plotly.subplots.make_subplots.
22760 If None (the default), all map objects are selected.
22761 Returns
22762 -------
22763 generator
22764 Generator that iterates through all of the map
22765 objects that satisfy all of the specified selection criteria
22766 """
22767
22768 return self._select_layout_subplots_by_prefix("map", selector, row, col)
22769
22770 def for_each_map(self, fn, selector=None, row=None, col=None) -> "Figure":
22771 """

Callers 2

for_each_mapMethod · 0.95
update_mapsMethod · 0.95

Tested by

no test coverage detected