Hi everyone!
I’m trying to save a figure as follows:
import pandas as pd
us_cities = pd.read_csv("https://raw.githubusercontent.com/plotly/datasets/master/us-cities-top-1k.csv")
import plotly
import plotly.express as px
fig = px.scatter_mapbox(us_cities, lat="lat", lon="lon", hover_name="City", hover_data=["State", "Population"],
color_discrete_sequence=["fuchsia"], zoom=3, height=300)
fig.update_layout(mapbox_style="open-street-map")
fig.update_layout(margin={"r":0,"t":0,"l":0,"b":0})
#fig.show()
fig.write_image("test_map.png")
However, I’ve got the following error:
ValueError: Transform failed with error code 525: Mapbox error.
It only occurs when I set the mapbox_style param as open-street-map. The other options work just fine.
Best,