From 93fa1cd9ba6c786498468a16ec01c877f9d7b106 Mon Sep 17 00:00:00 2001 From: Emily KL <4672118+emilykl@users.noreply.github.com> Date: Thu, 16 Jul 2026 10:35:50 -0400 Subject: [PATCH] remove all references to mapbox subplots and trace types in manually-edited files --- plotly/_subplots.py | 5 +- plotly/basedatatypes.py | 2 +- plotly/express/__init__.py | 10 -- plotly/express/_chart_types.py | 187 --------------------------- plotly/express/_core.py | 46 +------ plotly/express/_doc.py | 7 - plotly/figure_factory/__init__.py | 10 +- plotly/figure_factory/_hexbin_map.py | 21 +-- plotly/graph_objects/__init__.py | 12 -- plotly/io/_orca.py | 58 +-------- plotly/subplots.py | 1 - 11 files changed, 14 insertions(+), 345 deletions(-) diff --git a/plotly/_subplots.py b/plotly/_subplots.py index 50e8ccfb9aa..7983a994a05 100644 --- a/plotly/_subplots.py +++ b/plotly/_subplots.py @@ -8,7 +8,7 @@ # little differently. import collections -_single_subplot_types = {"scene", "geo", "polar", "ternary", "map", "mapbox"} +_single_subplot_types = {"scene", "geo", "polar", "ternary", "map"} _subplot_types = set.union(_single_subplot_types, {"xy", "domain"}) # For most subplot types, a trace is associated with a particular subplot @@ -20,7 +20,7 @@ # the trace property is just named `subplot`. For example setting # the `scatterpolar.subplot` property to `polar3` associates the scatterpolar # trace with the third polar subplot in the figure -_subplot_prop_named_subplot = {"polar", "ternary", "map", "mapbox"} +_subplot_prop_named_subplot = {"polar", "ternary", "map"} # Named tuple to hold an xaxis/yaxis pair that represent a single subplot @@ -152,7 +152,6 @@ def make_subplots( - 'polar': Polar subplot for scatterpolar, barpolar, etc. - 'ternary': Ternary subplot for scatterternary - 'map': Map subplot for scattermap, choroplethmap and densitymap - - 'mapbox': Mapbox subplot for scattermapbox, choroplethmapbox and densitymapbox - 'domain': Subplot type for traces that are individually positioned. pie, parcoords, parcats, etc. - trace type: A trace type which will be used to determine diff --git a/plotly/basedatatypes.py b/plotly/basedatatypes.py index ec4038b7fa4..3db99465618 100644 --- a/plotly/basedatatypes.py +++ b/plotly/basedatatypes.py @@ -2427,7 +2427,7 @@ def get_subplot(self, row, col, secondary_y=False): * plotly.graph_objs.layout.Scene: if subplot type is 'scene' * plotly.graph_objs.layout.Polar: if subplot type is 'polar' * plotly.graph_objs.layout.Ternary: if subplot type is 'ternary' - * plotly.graph_objs.layout.Mapbox: if subplot type is 'ternary' + * plotly.graph_objs.layout.Map: if subplot type is 'map' * SubplotDomain namedtuple with `x` and `y` fields: if subplot type is 'domain'. - x: length 2 list of the subplot start and stop width diff --git a/plotly/express/__init__.py b/plotly/express/__init__.py index 62a9bca08a2..9fc66c91ae4 100644 --- a/plotly/express/__init__.py +++ b/plotly/express/__init__.py @@ -31,14 +31,12 @@ scatter_polar, scatter_ternary, scatter_map, - scatter_mapbox, scatter_geo, line, line_3d, line_polar, line_ternary, line_map, - line_mapbox, line_geo, area, bar, @@ -62,14 +60,11 @@ funnel, funnel_area, choropleth_map, - choropleth_mapbox, density_map, - density_mapbox, ) from ._core import ( # noqa: F401 - set_mapbox_access_token, defaults, get_trendline_results, NO_COLOR, @@ -85,19 +80,16 @@ "scatter_polar", "scatter_ternary", "scatter_map", - "scatter_mapbox", "scatter_geo", "scatter_matrix", "density_contour", "density_heatmap", "density_map", - "density_mapbox", "line", "line_3d", "line_polar", "line_ternary", "line_map", - "line_mapbox", "line_geo", "parallel_coordinates", "parallel_categories", @@ -112,7 +104,6 @@ "ecdf", "choropleth", "choropleth_map", - "choropleth_mapbox", "pie", "sunburst", "treemap", @@ -123,7 +114,6 @@ "data", "colors", "trendline_functions", - "set_mapbox_access_token", "get_trendline_results", "IdentityMap", "Constant", diff --git a/plotly/express/_chart_types.py b/plotly/express/_chart_types.py index 2b4b10184e8..bf3bf84dda8 100644 --- a/plotly/express/_chart_types.py +++ b/plotly/express/_chart_types.py @@ -1406,193 +1406,6 @@ def line_map( line_map.__doc__ = make_docstring(line_map) -def scatter_mapbox( - data_frame=None, - lat=None, - lon=None, - color=None, - text=None, - hover_name=None, - hover_data=None, - custom_data=None, - size=None, - animation_frame=None, - animation_group=None, - category_orders=None, - labels=None, - color_discrete_sequence=None, - color_discrete_map=None, - color_continuous_scale=None, - range_color=None, - color_continuous_midpoint=None, - opacity=None, - size_max=None, - zoom=8, - center=None, - mapbox_style=None, - title=None, - subtitle=None, - template=None, - width=None, - height=None, -) -> go.Figure: - """ - *scatter_mapbox* is deprecated! Use *scatter_map* instead. - Learn more at: https://plotly.com/python/mapbox-to-maplibre/ - In a Mapbox scatter plot, each row of `data_frame` is represented by a - symbol mark on a Mapbox map. - """ - warn( - "*scatter_mapbox* is deprecated!" - + " Use *scatter_map* instead." - + " Learn more at: https://plotly.com/python/mapbox-to-maplibre/", - stacklevel=2, - category=DeprecationWarning, - ) - return make_figure(args=locals(), constructor=go.Scattermapbox) - - -scatter_mapbox.__doc__ = make_docstring(scatter_mapbox) - - -def choropleth_mapbox( - data_frame=None, - geojson=None, - featureidkey=None, - locations=None, - color=None, - hover_name=None, - hover_data=None, - custom_data=None, - animation_frame=None, - animation_group=None, - category_orders=None, - labels=None, - color_discrete_sequence=None, - color_discrete_map=None, - color_continuous_scale=None, - range_color=None, - color_continuous_midpoint=None, - opacity=None, - zoom=8, - center=None, - mapbox_style=None, - title=None, - subtitle=None, - template=None, - width=None, - height=None, -) -> go.Figure: - """ - *choropleth_mapbox* is deprecated! Use *choropleth_map* instead. - Learn more at: https://plotly.com/python/mapbox-to-maplibre/ - In a Mapbox choropleth map, each row of `data_frame` is represented by a - colored region on a Mapbox map. - """ - warn( - "*choropleth_mapbox* is deprecated!" - + " Use *choropleth_map* instead." - + " Learn more at: https://plotly.com/python/mapbox-to-maplibre/", - stacklevel=2, - category=DeprecationWarning, - ) - return make_figure(args=locals(), constructor=go.Choroplethmapbox) - - -choropleth_mapbox.__doc__ = make_docstring(choropleth_mapbox) - - -def density_mapbox( - data_frame=None, - lat=None, - lon=None, - z=None, - hover_name=None, - hover_data=None, - custom_data=None, - animation_frame=None, - animation_group=None, - category_orders=None, - labels=None, - color_continuous_scale=None, - range_color=None, - color_continuous_midpoint=None, - opacity=None, - zoom=8, - center=None, - mapbox_style=None, - radius=None, - title=None, - subtitle=None, - template=None, - width=None, - height=None, -) -> go.Figure: - """ - *density_mapbox* is deprecated! Use *density_map* instead. - Learn more at: https://plotly.com/python/mapbox-to-maplibre/ - In a Mapbox density map, each row of `data_frame` contributes to the intensity of - the color of the region around the corresponding point on the map - """ - warn( - "*density_mapbox* is deprecated!" - + " Use *density_map* instead." - + " Learn more at: https://plotly.com/python/mapbox-to-maplibre/", - stacklevel=2, - category=DeprecationWarning, - ) - return make_figure( - args=locals(), constructor=go.Densitymapbox, trace_patch=dict(radius=radius) - ) - - -density_mapbox.__doc__ = make_docstring(density_mapbox) - - -def line_mapbox( - data_frame=None, - lat=None, - lon=None, - color=None, - text=None, - hover_name=None, - hover_data=None, - custom_data=None, - line_group=None, - animation_frame=None, - animation_group=None, - category_orders=None, - labels=None, - color_discrete_sequence=None, - color_discrete_map=None, - zoom=8, - center=None, - mapbox_style=None, - title=None, - subtitle=None, - template=None, - width=None, - height=None, -) -> go.Figure: - """ - *line_mapbox* is deprecated! Use *line_map* instead. - Learn more at: https://plotly.com/python/mapbox-to-maplibre/ - In a Mapbox line plot, each row of `data_frame` is represented as - a vertex of a polyline mark on a Mapbox map. - """ - warn( - "*line_mapbox* is deprecated!" - + " Use *line_map* instead." - + " Learn more at: https://plotly.com/python/mapbox-to-maplibre/", - stacklevel=2, - category=DeprecationWarning, - ) - return make_figure(args=locals(), constructor=go.Scattermapbox) - - -line_mapbox.__doc__ = make_docstring(line_mapbox) - - def scatter_matrix( data_frame=None, dimensions=None, diff --git a/plotly/express/_core.py b/plotly/express/_core.py index 1b599cb43c2..04f178d582b 100644 --- a/plotly/express/_core.py +++ b/plotly/express/_core.py @@ -95,20 +95,6 @@ def reset(self): del PxDefaults -MAPBOX_TOKEN = None - - -def set_mapbox_access_token(token): - """ - Arguments: - token: A Mapbox token to be used in `plotly.express.scatter_mapbox` and \ - `plotly.express.line_mapbox` figures. See \ - https://docs.mapbox.com/help/how-mapbox-works/access-tokens/ for more details - """ - global MAPBOX_TOKEN - MAPBOX_TOKEN = token - - def get_trendline_results(fig): """ Extracts fit statistics for trendlines (when applied to figures generated with @@ -503,7 +489,6 @@ def make_trace_kwargs(args, trace_spec, trace_data, mapping_labels, sizeref): if trace_spec.constructor in [ go.Choropleth, go.Choroplethmap, - go.Choroplethmapbox, ]: trace_patch["z"] = trace_data.get_column(attr_value) trace_patch["coloraxis"] = "coloraxis1" @@ -621,9 +606,6 @@ def configure_axes(args, constructor, fig, orders): go.Scattermap: configure_map, go.Choroplethmap: configure_map, go.Densitymap: configure_map, - go.Scattermapbox: configure_mapbox, - go.Choroplethmapbox: configure_mapbox, - go.Densitymapbox: configure_mapbox, go.Scattergeo: configure_geo, go.Choropleth: configure_geo, } @@ -810,21 +792,6 @@ def configure_3d_axes(args, fig, orders): fig.update_scenes(patch) -def configure_mapbox(args, fig, orders): - center = args["center"] - if not center and "lat" in args and "lon" in args: - center = dict( - lat=args["data_frame"][args["lat"]].mean(), - lon=args["data_frame"][args["lon"]].mean(), - ) - fig.update_mapboxes( - accesstoken=MAPBOX_TOKEN, - center=center, - zoom=args["zoom"], - style=args["mapbox_style"], - ) - - def configure_map(args, fig, orders): center = args["center"] if not center and "lat" in args and "lon" in args: @@ -2334,7 +2301,7 @@ def infer_config(args, constructor, trace_patch, layout_patch): else: trace_patch["texttemplate"] = "%{" + letter + ":" + args["text_auto"] + "}" - if constructor in [go.Histogram2d, go.Densitymap, go.Densitymapbox]: + if constructor in [go.Histogram2d, go.Densitymap]: show_colorbar = True trace_patch["coloraxis"] = "coloraxis1" @@ -2344,7 +2311,6 @@ def infer_config(args, constructor, trace_patch, layout_patch): trace_patch["marker"] = dict(opacity=0.5) elif constructor in [ go.Densitymap, - go.Densitymapbox, go.Pie, go.Funnel, go.Funnelarea, @@ -2366,7 +2332,7 @@ def infer_config(args, constructor, trace_patch, layout_patch): modes.add("lines") trace_patch["mode"] = "+".join(sorted(modes)) elif constructor != go.Splom and ( - "symbol" in args or constructor in [go.Scattermap, go.Scattermapbox] + "symbol" in args or constructor == go.Scattermap ): trace_patch["mode"] = "markers" + ("+text" if args["text"] else "") @@ -2589,9 +2555,7 @@ def make_figure(args, constructor, trace_patch=None, layout_patch=None): go.Parcoords, go.Choropleth, go.Choroplethmap, - go.Choroplethmapbox, go.Densitymap, - go.Densitymapbox, go.Histogram2d, go.Sunburst, go.Treemap, @@ -2640,7 +2604,7 @@ def make_figure(args, constructor, trace_patch=None, layout_patch=None): trace.update(marker=dict(color=m.val_map[val])) elif ( trace_spec.constructor - in [go.Choropleth, go.Choroplethmap, go.Choroplethmapbox] + in [go.Choropleth, go.Choroplethmap] and m.variable == "color" ): trace.update( @@ -2727,7 +2691,7 @@ def make_figure(args, constructor, trace_patch=None, layout_patch=None): if show_colorbar: colorvar = ( "z" - if constructor in [go.Histogram2d, go.Densitymap, go.Densitymapbox] + if constructor in [go.Histogram2d, go.Densitymap] else "color" ) range_color = args["range_color"] or [None, None] @@ -2879,7 +2843,7 @@ def init_figure(args, subplot_type, frame_list, nrows, ncols, col_labels, row_la horizontal_spacing = args.get("facet_col_spacing") or 0.02 else: # Other subplot types: - # 'scene', 'geo', 'polar', 'ternary', 'mapbox', 'domain', None + # 'scene', 'geo', 'polar', 'ternary', 'map', 'domain', None # # We can customize subplot spacing per type once we enable faceting # for all plot types diff --git a/plotly/express/_doc.py b/plotly/express/_doc.py index 59faac4c0b3..3df6a191590 100644 --- a/plotly/express/_doc.py +++ b/plotly/express/_doc.py @@ -537,13 +537,6 @@ "Identifier of base map style.", "Allowed values are `'basic'`, `'carto-darkmatter'`, `'carto-darkmatter-nolabels'`, `'carto-positron'`, `'carto-positron-nolabels'`, `'carto-voyager'`, `'carto-voyager-nolabels'`, `'dark'`, `'light'`, `'open-street-map'`, `'outdoors'`, `'satellite'`, `'satellite-streets'`, `'streets'`, `'white-bg'`.", ], - mapbox_style=[ - "str (default `'basic'`, needs Mapbox API token)", - "Identifier of base map style, some of which require a Mapbox or Stadia Maps API token to be set using `plotly.express.set_mapbox_access_token()`.", - "Allowed values which do not require a token are `'open-street-map'`, `'white-bg'`, `'carto-positron'`, `'carto-darkmatter'`.", - "Allowed values which require a Mapbox API token are `'basic'`, `'streets'`, `'outdoors'`, `'light'`, `'dark'`, `'satellite'`, `'satellite-streets'`.", - "Allowed values which require a Stadia Maps API token are `'stamen-terrain'`, `'stamen-toner'`, `'stamen-watercolor'`.", - ], points=[ "str or boolean (default `'outliers'`)", "One of `'outliers'`, `'suspectedoutliers'`, `'all'`, or `False`.", diff --git a/plotly/figure_factory/__init__.py b/plotly/figure_factory/__init__.py index c0ded37ca28..fdb04bb7af8 100644 --- a/plotly/figure_factory/__init__.py +++ b/plotly/figure_factory/__init__.py @@ -29,10 +29,7 @@ if optional_imports.get_module("pandas") is not None: from plotly.figure_factory._county_choropleth import create_choropleth - from plotly.figure_factory._hexbin_map import ( - create_hexbin_map, - create_hexbin_mapbox, - ) + from plotly.figure_factory._hexbin_map import create_hexbin_map else: def create_choropleth(*args, **kwargs): @@ -41,10 +38,6 @@ def create_choropleth(*args, **kwargs): def create_hexbin_map(*args, **kwargs): raise ImportError("Please install pandas to use `create_hexbin_map`") - def create_hexbin_mapbox(*args, **kwargs): - raise ImportError("Please install pandas to use `create_hexbin_mapbox`") - - if optional_imports.get_module("skimage") is not None: from plotly.figure_factory._ternary_contour import create_ternary_contour else: @@ -64,7 +57,6 @@ def create_ternary_contour(*args, **kwargs): "create_facet_grid", "create_gantt", "create_hexbin_map", - "create_hexbin_mapbox", "create_ohlc", "create_quiver", "create_scatterplotmatrix", diff --git a/plotly/figure_factory/_hexbin_map.py b/plotly/figure_factory/_hexbin_map.py index 792cae5e238..b984324f167 100644 --- a/plotly/figure_factory/_hexbin_map.py +++ b/plotly/figure_factory/_hexbin_map.py @@ -8,7 +8,7 @@ def _project_latlon_to_wgs84(lat, lon): """ - Projects lat and lon to WGS84, used to get regular hexagons on a mapbox map + Projects lat and lon to WGS84, used to get regular hexagons on a map """ x = lon * np.pi / 180 y = np.arctanh(np.sin(lat * np.pi / 180)) @@ -17,7 +17,7 @@ def _project_latlon_to_wgs84(lat, lon): def _project_wgs84_to_latlon(x, y): """ - Projects WGS84 to lat and lon, used to get regular hexagons on a mapbox map + Projects WGS84 to lat and lon, used to get regular hexagons on a map """ lon = x * 180 / np.pi lat = (2 * np.arctan(np.exp(y)) - np.pi / 2) * 180 / np.pi @@ -26,12 +26,12 @@ def _project_wgs84_to_latlon(x, y): def _getBoundsZoomLevel(lon_min, lon_max, lat_min, lat_max, mapDim): """ - Get the mapbox zoom level given bounds and a figure dimension + Get the map zoom level given bounds and a figure dimension Source: https://stackoverflow.com/questions/6048975/google-maps-v3-how-to-calculate-the-zoom-level-for-a-given-bounds """ scale = ( - 2 # adjustment to reflect MapBox base tiles are 512x512 vs. Google's 256x256 + 2 # adjustment to reflect map base tiles are 512x512 vs. Google's 256x256 ) WORLD_DIM = {"height": 256 * scale, "width": 256 * scale} ZOOM_MAX = 18 @@ -531,16 +531,3 @@ def create_hexbin_map( ), ) - -def create_hexbin_mapbox(*args, **kwargs): - warnings.warn( - "create_hexbin_mapbox() is deprecated and will be removed in the next major version. " - + "Please use create_hexbin_map() instead. " - + "Learn more at: https://plotly.com/python/mapbox-to-maplibre/", - stacklevel=2, - category=DeprecationWarning, - ) - if "mapbox_style" in kwargs: - kwargs["map_style"] = kwargs.pop("mapbox_style") - - return create_hexbin_map(*args, **kwargs) diff --git a/plotly/graph_objects/__init__.py b/plotly/graph_objects/__init__.py index ab87744d0d7..4cf5995795c 100644 --- a/plotly/graph_objects/__init__.py +++ b/plotly/graph_objects/__init__.py @@ -16,7 +16,6 @@ from ..graph_objs import Scattersmith from ..graph_objs import Scatterpolargl from ..graph_objs import Scatterpolar - from ..graph_objs import Scattermapbox from ..graph_objs import Scattermap from ..graph_objs import Scattergl from ..graph_objs import Scattergeo @@ -39,12 +38,10 @@ from ..graph_objs import Heatmap from ..graph_objs import Funnelarea from ..graph_objs import Funnel - from ..graph_objs import Densitymapbox from ..graph_objs import Densitymap from ..graph_objs import Contourcarpet from ..graph_objs import Contour from ..graph_objs import Cone - from ..graph_objs import Choroplethmapbox from ..graph_objs import Choroplethmap from ..graph_objs import Choropleth from ..graph_objs import Carpet @@ -93,7 +90,6 @@ from ..graph_objs import scattersmith from ..graph_objs import scatterpolargl from ..graph_objs import scatterpolar - from ..graph_objs import scattermapbox from ..graph_objs import scattermap from ..graph_objs import scattergl from ..graph_objs import scattergeo @@ -116,12 +112,10 @@ from ..graph_objs import heatmap from ..graph_objs import funnelarea from ..graph_objs import funnel - from ..graph_objs import densitymapbox from ..graph_objs import densitymap from ..graph_objs import contourcarpet from ..graph_objs import contour from ..graph_objs import cone - from ..graph_objs import choroplethmapbox from ..graph_objs import choroplethmap from ..graph_objs import choropleth from ..graph_objs import carpet @@ -149,7 +143,6 @@ "..graph_objs.scattersmith", "..graph_objs.scatterpolargl", "..graph_objs.scatterpolar", - "..graph_objs.scattermapbox", "..graph_objs.scattermap", "..graph_objs.scattergl", "..graph_objs.scattergeo", @@ -172,12 +165,10 @@ "..graph_objs.heatmap", "..graph_objs.funnelarea", "..graph_objs.funnel", - "..graph_objs.densitymapbox", "..graph_objs.densitymap", "..graph_objs.contourcarpet", "..graph_objs.contour", "..graph_objs.cone", - "..graph_objs.choroplethmapbox", "..graph_objs.choroplethmap", "..graph_objs.choropleth", "..graph_objs.carpet", @@ -201,7 +192,6 @@ "..graph_objs.Scattersmith", "..graph_objs.Scatterpolargl", "..graph_objs.Scatterpolar", - "..graph_objs.Scattermapbox", "..graph_objs.Scattermap", "..graph_objs.Scattergl", "..graph_objs.Scattergeo", @@ -224,12 +214,10 @@ "..graph_objs.Heatmap", "..graph_objs.Funnelarea", "..graph_objs.Funnel", - "..graph_objs.Densitymapbox", "..graph_objs.Densitymap", "..graph_objs.Contourcarpet", "..graph_objs.Contour", "..graph_objs.Cone", - "..graph_objs.Choroplethmapbox", "..graph_objs.Choroplethmap", "..graph_objs.Choropleth", "..graph_objs.Carpet", diff --git a/plotly/io/_orca.py b/plotly/io/_orca.py index 2984210edce..6b1d8f67c00 100644 --- a/plotly/io/_orca.py +++ b/plotly/io/_orca.py @@ -306,8 +306,7 @@ def server_url(self): The server URL to use for an external orca server, or None if orca should be managed locally - Overrides executable, port, timeout, mathjax, topojson, - and mapbox_access_token + Overrides executable, port, timeout, mathjax, and topojson Returns ------- @@ -336,7 +335,6 @@ def server_url(self, val): self.timeout = None self.mathjax = None self.topojson = None - self.mapbox_access_token = None self._props["server_url"] = val @property @@ -623,34 +621,6 @@ def mathjax(self, val): # Server must restart before setting is active shutdown_server() - @property - def mapbox_access_token(self): - """ - Mapbox access token required to render mapbox traces. - - Returns - ------- - str - """ - return self._props.get("mapbox_access_token", None) - - @mapbox_access_token.setter - def mapbox_access_token(self, val): - if val is None: - self._props.pop("mapbox_access_token", None) - else: - if not isinstance(val, str): - raise ValueError( - """ -The mapbox_access_token property must be a string, \ -but received value of type {typ}. - Received value: {val}""".format(typ=type(val), val=val) - ) - self._props["mapbox_access_token"] = val - - # Server must restart before setting is active - shutdown_server() - @property def use_xvfb(self): dflt = "auto" @@ -719,7 +689,6 @@ def __repr__(self): default_format: {default_format} mathjax: {mathjax} topojson: {topojson} - mapbox_access_token: {mapbox_access_token} use_xvfb: {use_xvfb} constants @@ -738,7 +707,6 @@ def __repr__(self): default_format=self.default_format, mathjax=self.mathjax, topojson=self.topojson, - mapbox_access_token=self.mapbox_access_token, plotlyjs=self.plotlyjs, config_file=self.config_file, use_xvfb=self.use_xvfb, @@ -1299,11 +1267,6 @@ def ensure_server(): if config.mathjax: cmd_list.extend(["--mathjax", config.mathjax]) - if config.mapbox_access_token: - cmd_list.extend( - ["--mapbox-access-token", config.mapbox_access_token] - ) - # Create subprocess that launches the orca server on the # specified port. DEVNULL = open(os.devnull, "wb") @@ -1513,25 +1476,6 @@ def to_image(fig, format=None, width=None, height=None, scale=None, validate=Tru err_message += """ Try setting the `validate` argument to True to check for errors in the figure specification""" - elif response.status_code == 525: - any_mapbox = any( - [ - trace.get("type", None) == "scattermapbox" - for trace in fig_dict.get("data", []) - ] - ) - if any_mapbox and config.mapbox_access_token is None: - err_message += """ -Exporting scattermapbox traces requires a mapbox access token. -Create a token in your mapbox account and then set it using: - ->>> plotly.io.orca.config.mapbox_access_token = 'pk.abc...' - -If you would like this token to be applied automatically in -future sessions, then save your orca configuration as follows: - ->>> plotly.io.orca.config.save() -""" elif response.status_code == 530 and format == "eps": err_message += """ Exporting to EPS format requires the poppler library. You can install diff --git a/plotly/subplots.py b/plotly/subplots.py index e41839039e8..55fac2437ad 100644 --- a/plotly/subplots.py +++ b/plotly/subplots.py @@ -115,7 +115,6 @@ def make_subplots( - 'polar': Polar subplot for scatterpolar, barpolar, etc. - 'ternary': Ternary subplot for scatterternary - 'map': Map subplot for scattermap - - 'mapbox': Mapbox subplot for scattermapbox - 'domain': Subplot type for traces that are individually positioned. pie, parcoords, parcats, etc. - trace type: A trace type which will be used to determine