PlotlyWidget.for_each_mapbox

PlotlyWidget.for_each_mapbox(fn, selector=None, row=None, col=None)

Apply a function to all mapbox objects that satisfy the specified selection criteria

Parameters
  • fn – Function that inputs a single mapbox object.

  • selector (dict, function, or None (default None)) – Dict to use as selection criteria. mapbox objects will be selected if they contain properties corresponding to all of the dictionary’s keys, with values that exactly match the supplied values. If None (the default), all mapbox objects are selected. If a function, it must be a function accepting a single argument and returning a boolean. The function will be called on each mapbox and those for which the function returned True will be in the selection.

  • row (int or None (default None)) – Subplot row and column index of mapbox objects to select. To select mapbox objects by row and column, the Figure must have been created using plotly.subplots.make_subplots. If None (the default), all mapbox objects are selected.

  • col (int or None (default None)) – Subplot row and column index of mapbox objects to select. To select mapbox objects by row and column, the Figure must have been created using plotly.subplots.make_subplots. If None (the default), all mapbox objects are selected.

Returns

Returns the Figure object that the method was called on

Return type

self