text: import matplotlib.pyplot as plt
  from mpl_toolkits.mplot3d import Axes3D
  from mpl_toolkits.basemap import Basemap
  from matplotlib.collections import PolyCollection
  
  map = Basemap()
  
  fig = plt.figure()
  ax = Axes3D(fig)
  
  ax.azim = 270
  ax.elev = 50
  ax.dist = 8
  
  ax.add_collection3d(map.drawcoastlines(linewidth=0.25))
  ax.add_collection3d(map.drawcountries(linewidth=0.35))
  
  polys = []
  for polygon in map.landpolygons:
      polys.append(polygon.get_coords())
  
  
  lc = PolyCollection(polys, edgecolor='black',
                      facecolor='#DDDDDD', closed=False)
  
  ax.add_collection3d(lc)
  
  
  plt.show()