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

Method update_maps

plotly/graph_objs/_figurewidget.py:22808–22852  ·  view source on GitHub ↗

Perform a property update operation on all map objects that satisfy the specified selection criteria Parameters ---------- patch: dict Dictionary of property updates to be applied to all map objects that satisfy the selection criteria

(
        self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs
    )

Source from the content-addressed store, hash-verified

22806 return self
22807
22808 def update_maps(
22809 self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs
22810 ) -> "FigureWidget":
22811 """
22812 Perform a property update operation on all map objects
22813 that satisfy the specified selection criteria
22814
22815 Parameters
22816 ----------
22817 patch: dict
22818 Dictionary of property updates to be applied to all
22819 map objects that satisfy the selection criteria.
22820 selector: dict, function, or None (default None)
22821 Dict to use as selection criteria.
22822 map objects will be selected if they contain
22823 properties corresponding to all of the dictionary's keys, with
22824 values that exactly match the supplied values. If None
22825 (the default), all map objects are selected. If a
22826 function, it must be a function accepting a single argument and
22827 returning a boolean. The function will be called on each
22828 map and those for which the function returned True will
22829 be in the selection.
22830 overwrite: bool
22831 If True, overwrite existing properties. If False, apply updates
22832 to existing properties recursively, preserving existing
22833 properties that are not specified in the update operation.
22834 row, col: int or None (default None)
22835 Subplot row and column index of map objects to select.
22836 To select map objects by row and column, the Figure
22837 must have been created using plotly.subplots.make_subplots.
22838 If None (the default), all map objects are selected.
22839 **kwargs
22840 Additional property updates to apply to each selected
22841 map object. If a property is specified in
22842 both patch and in **kwargs then the one in **kwargs
22843 takes precedence.
22844 Returns
22845 -------
22846 self
22847 Returns the FigureWidget object that the method was called on
22848 """
22849 for obj in self.select_maps(selector=selector, row=row, col=col):
22850 obj.update(patch, overwrite=overwrite, **kwargs)
22851
22852 return self
22853
22854 def select_mapboxes(self, selector=None, row=None, col=None):
22855 """

Callers

nothing calls this directly

Calls 2

select_mapsMethod · 0.95
updateMethod · 0.45

Tested by

no test coverage detected