<jupyter_start><jupyter_text>Punkte auf Karte einzeichnen<jupyter_code>%matplotlib inline
import matplotlib.pyplot as plt
import cartopy.crs as ccrs

fig = plt.figure(figsize=(10, 15))
ax = plt.axes(projection=ccrs.Robinson())

ax.set_global()
ax.coastlines(resolution="110m")
ax.gridlines()

ax.plot([-0.1071], [51.4899], marker="X", color=(1, 0, 0), transform=ccrs.PlateCarree())

plt.show()<jupyter_output><empty_output><jupyter_text>Verbindung zwischen 2 Punkten einzeichnen<jupyter_code>%matplotlib inline
import matplotlib.pyplot as plt
import cartopy.crs as ccrs

fig = plt.figure(figsize=(10, 15))
ax = plt.axes(projection=ccrs.PlateCarree())

ax.set_global()
ax.coastlines(resolution="110m")
ax.gridlines()

ax.plot([-0.1071], [51.4899], marker="X", color=(1, 0, 0), transform=ccrs.PlateCarree())
ax.plot([114.1689], [22.2935], marker="X", color=(0, 1, 0), transform=ccrs.PlateCarree())

x = [-0.1071, 114.1689]
y = [51.4899, 22.2935]

ax.plot(x, y, color=(0, 0, 1), transform=ccrs.PlateCarree())

plt.show()<jupyter_output><empty_output><jupyter_text>Aber ist das jetzt die kürzeste Strecke zwischen den beiden Punkten?Nein, ist es nicht!<jupyter_code>%matplotlib inline
import matplotlib.pyplot as plt
import cartopy.crs as ccrs

fig = plt.figure(figsize=(10, 15))
ax = plt.axes(projection=ccrs.NearsidePerspective(central_longitude=54.67, central_latitude=33.28))

ax.set_global()
ax.coastlines(resolution="110m")
ax.gridlines()

ax.plot([-0.1071], [51.4899], marker="X", color=(1, 0, 0), transform=ccrs.PlateCarree())
ax.plot([114.1689], [22.2935], marker="X", color=(0, 1, 0), transform=ccrs.PlateCarree())

x = [-0.1071, 114.1689]
y = [51.4899, 22.2935]

ax.plot(x, y, color=(0, 0, 1), transform=ccrs.PlateCarree())
ax.plot(x, y, color=(0, 1, 0), transform=ccrs.Geodetic())


plt.show()
%matplotlib inline
import matplotlib.pyplot as plt
import cartopy.crs as ccrs

fig = plt.figure(figsize=(10, 15))
ax = plt.axes(projection=ccrs.PlateCarree())

ax.set_global()
ax.coastlines(resolution="110m")
ax.gridlines()

ax.plot([-0.1071], [51.4899], marker="X", color=(1, 0, 0), transform=ccrs.PlateCarree())
ax.plot([114.1689], [22.2935], marker="X", color=(0, 1, 0), transform=ccrs.PlateCarree())

x = [-0.1071, 114.1689]
y = [51.4899, 22.2935]

ax.plot(x, y, color=(0, 0, 1), transform=ccrs.PlateCarree())
ax.plot(x, y, color=(0, 1, 0), transform=ccrs.Geodetic())

plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.19171842650103518, 'fraction_numerical': 0.09440993788819876, 'mean_word_length': 6.45679012345679, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '293865', 'license': 'MIT', 'n_tokens_mistral': 1158, 'n_tokens_neox': 1028, 'n_words': 192, 'path': 'UDEMY_Datavis_Python/07 - cartopy/Punkte einzeichnen.ipynb', 'repo_name': 'Priskawa/GITHUB_ME', 'size': '2415'}