Ich habe mir für ein geografisches Gebiet eine Karte erstellt.
nun möchte ich, dass ich für Darstellungszwecke das Viereck auf ein Globus ziehen.
Das klappt aber nicht ganz richtig. Gibt es da eine andere Möglichkeit?
Code: Alles auswählen
import cartopy.crs as ccrs
import matplotlib.pyplot as plt
import cartopy
import matplotlib.patches as mpatches
#Geostationär
plt.figure(figsize=(4, 4))
ax = plt.axes(projection=ccrs.Geostationary())
ax.coastlines(resolution='110m')
ax.gridlines()
ax.stock_img()
ax.add_feature(cartopy.feature.BORDERS, linestyle='-', alpha=.5)
ax.add_patch(mpatches.Rectangle(xy=[-29, 1], width=58, height=38,
facecolor='blue',
alpha=0.2,
transform=ccrs.PlateCarree()))
plt.show()