result.extend(points[mask])
points = points[~mask]
return np.array(result)
points = np.random.randint(0, 90, size=(100000, 2))
m = Basemap(projection='moll', lon_0=0, resolution='c')
m.drawcoastlines()
m.fillcontinents(color='coral', lake_color='aqua')
x, y = m(points[:, (0)], points[:, (1)])
loc = np.c_[x, y]
polys = [p.boundary for p in m.landpolygons]
land_loc = points_in_polys(loc, polys)
m.plot(land_loc[:, (0)], land_loc[:, (1)], 'ro')
plt.show()
Сюжет только на континенте в matplotlib