Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

plotly garden wing map

import plotly.graph_objects as go

mapbox_access_token = "your_token"

lat=13.749347864846364
lon = 100.6474419540223

fig = go.Figure(go.Scattermapbox(
        lat=[f'{lat}'],
        lon=[f'{lon}'],
        mode='markers',
        marker=go.scattermapbox.Marker(
            size=15
        ),
        text=['Garden Wing'],
    ))

fig.update_layout(
    width=2000,
    height=1000,
    mapbox=dict(
        accesstoken=mapbox_access_token,
        center=go.layout.mapbox.Center(
            lat=lat,
            lon=lon
        ),
        pitch=0,
        zoom=17
    )
)

fig.show()

# https://plotly.com/python/scattermapbox/
Comment

PREVIOUS NEXT
Code Example
Python :: how can i get the data from a queryset in django template 
Python :: python tuple first column 
Python :: python program to remove comment lines 
Python :: python class optional arguments 
Python :: _set.filter django 
Python :: Incrémenter/décrémenter variable python 
Python :: how to open Website from CMD using python 
Python :: save media file from url python 
Python :: mysql insert into python many 
Python :: heapq basic push and pop - default minHeap 
Python :: accessing list elements in python 
Python :: write python code in ansible 
Python :: Python Tkinter SpinBox Widget Syntax 
Python :: how to combine sets using union() function 
Python :: webcolors python 
Python :: Plot Multiple ROC Curves in Python 
Python :: Mirror Inverse Program in python 
Python :: how to strip characters in python 
Python :: pandas merge keep one of column copy 
Python :: flask request parameters 
Python :: 0 in python 
Python :: how to get 2 values form a dictionary in python 
Python :: python first letter to capitalize 
Python :: jupyter notebook print formatted text 
Python :: redirect user based on input with python cgi code 
Python :: string times python 
Python :: Python Textfeld lköschen 
Python :: nltk document 
Python :: validate delete inline formset django 
Python :: python print functoin 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =