How to plot a shapefile centered in the Pacific with Basemap?
问题 When plotting with Basemap's readshapefile , if the defined map is centered anywhere else than the longitudinal center of the shapefile, only a portion of it it's plotted. Here's an example using Natural Earth's coastlines: import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.basemap import Basemap shpf = './NaturalEarth/ne_50m_land/ne_50m_land' fig, ax = plt.subplots(nrows=1, ncols=1, dpi=100) m = Basemap( ax = ax, projection = 'cyl', llcrnrlon = 0, llcrnrlat = -90, urcrnrlon