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

Function configure_map

plotly/express/_core.py:828–839  ·  view source on GitHub ↗
(args, fig, orders)

Source from the content-addressed store, hash-verified

826
827
828def configure_map(args, fig, orders):
829 center = args["center"]
830 if not center and "lat" in args and "lon" in args:
831 center = dict(
832 lat=args["data_frame"][args["lat"]].mean(),
833 lon=args["data_frame"][args["lon"]].mean(),
834 )
835 fig.update_maps(
836 center=center,
837 zoom=args["zoom"],
838 style=args["map_style"],
839 )
840
841
842def configure_geo(args, fig, orders):

Callers

nothing calls this directly

Calls 2

meanMethod · 0.80
update_mapsMethod · 0.45

Tested by

no test coverage detected