79458031

Date: 2025-02-21 16:25:34
Score: 5
Natty:
Report link

The top left corner has a global base map of the North Pole

But I wanted to show the Eastern Hemisphere, not the North Pole.How do I change the below code?

import matplotlib.pyplot as plt
import cartopy.crs as ccrs
import geopandas as gpd
import os
import numpy as np
import cartopy.io.img_tiles as cimgt

map_crs1 = ccrs.LambertConformal(central_longitude=105, standard_parallels=[25, 47])
map_crs2 = ccrs.LambertAzimuthalEqualArea(central_longitude=100)
data_crs = ccrs.PlateCarree()

fig, ax = plt.subplots(figsize=(16,9),subplot_kw={'projection': map_crs1})
ax.set_extent([78,128,15,56],crs=data_crs)
mini_ax1 = ax.inset_axes([.0, 0.72, 0.26, 0.26],projection=map_crs2,transform=ax.transAxes)

google = cimgt.GoogleTiles(style='satellite', cache=True)
extentd = [-180,180,-90,90]
zoomlev = 2
mini_ax1.set_extent(extentd, crs=data_crs)
imgfactory = mini_ax1.add_image(google, zoomlev)

enter image description here

Reasons:
  • Blacklisted phrase (1): How do I
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Chenqi Fang