Ich möchte einige Punkte (geographische Länge, Breite) auf einer Karte von Taiwan mit plotly library anzeigen. Das Problem ist, wo kann ich eine solche Karte von Taiwan finden und laden und gibt es eine Probe?Karte mit plotly python
1
A
Antwort
1
Hallo Ich habe wie diese erstellt Tutorials für Probleme haben, können Sie darauf zugreifen auf: https://github.com/SayaliSonawane/Plotly_Offline_Python/tree/master/Satellite%20Map
Sie Satellitenkarte im Freien Stil verwenden können, diese Art von Handlung zu erstellen:
import plotly
import pandas as pd
from plotly.graph_objs import Scattermapbox,Data,Layout
# Open mapbox account and pass your access token over here
# Mapbox account sign up and access token is free.
# Mapbox information: https://www.mapbox.com/help/how-access-tokens-work/#rotating-tokens
mapbox_access_token = 'Enter_your_access_token'
data = Data([Scattermapbox(
lat= dataframe_name['Latitude'],
lon= dataframe_name['Longitude'],
# text: provide column which will display hover information
text = [str(n) for n in dataframe_name['ADR_Line_2']],
mode='markers',
marker = dict(color = 'rgb(0, 128, 0)',size=10),
hoverinfo='skip'
) ])
layout = Layout(
title = "title_for_plot",
font=dict(family='Courier New, monospace', size=18, color='rgb(0,0,0)'),
autosize=False,
hovermode='closest',
showlegend=False,
width=1800,
height=1000,
mapbox=dict(
accesstoken=mapbox_access_token,
#width=1415,
bearing=0,
pitch=0,
style = 'outdoors'
),
)
plotly.offline.plot({"data":data, "layout":layout},filename = 'taiwan_map.html')
Verwandte Themen
- 1. Plotten eines Dendrogramms mit Plotly Python
- 2. Dynamisches Spektrum mit plotly
- 3. Plotly bewegliche/ziehbare Legenden, Python
- 4. Plotly animated slider in Python
- 5. Python Plotly Format Achsnummern als%
- 6. Plotly Installation Unterschied von Python-Plotly und Pip installieren plotly (debian)
- 7. Verwendung von Plotly ohne Online Plotly Konto
- 8. PYTHON (Plotly) - Achse Umbenennen von Zecken
- 9. Plotly Python Bubble Chart - Text hinzufügen
- 10. Python, Plotly und Raspberry Pi [Errno 13]
- 11. Gliederungs Grundstück in plotly in Python
- 12. Wie Hintergrundfarbe, Titel in Plotly (Python) festlegen?
- 13. Plotly + Python: Wie zeichne Pfeile in 3D?
- 14. Unterplots mit zwei y-Achsen (jeweils) - Plotly und Python/Pandas
- 15. R Plotly Gesamtanzahl
- 16. Plotly in Jupyter Ausgabe
- 17. Verwenden von Range Sliders mit offline Plotly
- 18. Fehler mit Plotly auf pycharm
- 19. Plot 3D-Plots mit Plotly
- 20. Mehrere ggplot2-Plots mit plotly
- 21. Fehler beim plotly
- 22. Plotly Aktualisierungsdaten
- 23. machen plotly Dendrogramm in Javascript
- 24. Iterieren mit Lambda und Karte Python
- 25. compose Funktionen mit der Karte in Python
- 26. einfache Karte in Python mit Funktion
- 27. Python Wörterbuch Zuordnung mit Karte und Lambda
- 28. Python parallel Karte (multiprocessing.Pool.map) mit globalen Daten
- 29. Mit plotly mit Zeppellin in Scala
- 30. 3D-Blasendiagramm in R Plotly
starten hier: https : //plot.ly/ipython-notebooks/basemap-maps/ –