Hello, I am trying to plot a scatter map box graph which is actually working. This is the code I have used:
mapboxt = open(âmapbox_token.txtâ).read().rstrip() #my mapbox_access_token
scatt = go.Scattermapbox(
lat=df_XY[âLatitudeâ],
lon=df_XY[âLongitudeâ],
mode=âmarkersâ,
text=df_XY[â1-Noiseâ],
marker=dict(
size=10,
showscale=True,
colorscale=âViridisâ,
symbol = ây-downâ,
cmin=0,
color = df_XY[â1-Noiseâ],
cmax=df_XY[â1-Noiseâ].max()))
layout = go.Layout(title_text =âTurbine Lossesâ,
title_x =0.5, width=1350, height=800,
mapbox = dict(center=go.layout.mapbox.Center(lat=df_XY[âLatitudeâ][0],lon=df_XY[âLongitudeâ][0]),
accesstoken= mapboxt,
zoom=6,
style=âlightâ
))
fig.layout.coloraxis.colorbar.title = â1-Noiseâ
fig=go.Figure(data=[ scatt], layout =layout)
fig.show()
This is the graph I obtained:
However, I would like to have the ây-downâ markers instead of the circles. However, when I changed the symbol parameter for ây-downâ I get an error saying Javascript error: Mapbox error
Thanks in advance.