I was wondering if it is possible to plot a map using geopandas and contextily basemaps in an orientation other than North up.
Example code with a map that I would like to plot upside down, but with the basemaps labels right-side up:
import osmnx as ox
import geopandas as gpd
import contextily as cx
berlin = ox.geocode_to_gdf("Berlin,Germany")
fig, ax = plt.subplots(1, 1, figsize=(10, 10))
_ = ax.axis("off")
berlin.plot(
ax=ax,
color="None",
edgecolor="black",
)
# basemap
cx.add_basemap(
ax,
crs=berlin.crs,
)
plt.savefig(
"stackoverflow_question.png",
dpi=100,
bbox_inches="tight",
)