title: A Shapely MultiLinestring shows up as a MultiPolygon in Pyplot
body: <p><strong>Aim :</strong> drawing MultiPolygon (land) and MultiLinestring (rivers) on the same pyplot Figure. Coloring the land white.</p>
  
  <p><strong>Problem :</strong> it seems the MultiLinestring is shown as a MultiPolygon built by closing all its Linestrings automatically to make them Polygons</p>
  
  <p><strong>Telltale:</strong> when coloring the MultiPolygon white, it doesn't color what seems to be Polygons made out of the Linestrings from the MultiLinestring</p>
  
  <p>Here's the reproductible code :</p>
  
  <pre><code>import matplotlib.pyplot as plt
  import cartopy.crs as ccrs
  import cartopy.io.shapereader as shpreader
  from cartopy.feature import ShapelyFeature
  
  # creates a map
  map_projection = ccrs.PlateCarree(central_longitude=0.0, globe=None)
  map_figure = plt.figure()
  map_subplot = plt.axes(projection=map_projection)
  # limits the display bounds of the map
  map_subplot.set_extent((5.2, 31.4, 35, 54.3), crs=map_projection)
  
  # adding land from a local shp (source : Natural Earth website)
  # facecolor = white
  landshpfilename = "Central Europe _ lands minus lakes.shp"
  landshapereader = shpreader.Reader(landshpfilename)
  landshape_feature = ShapelyFeature(landshapereader.geometries(), map_projection, facecolor='white',edgecolor='black')
  map_subplot.add_feature(landshape_feature)
  
  # adding large river from a local shp (source : Natural Earth website)
  # edgecolor = blue
  largeriversshpfilename = "Central Europe _ large rivers minus lakes.shp"
  largeriversshapereader = shpreader.Reader(largeriversshpfilename)
  largeriversshape_feature = ShapelyFeature(largeriversshapereader.geometries(), map_projection,edgecolor='blue')
  map_subplot.add_feature(largeriversshape_feature)
  
  # verifying the geom_type of the first objects in the shapefiles
  # putting it as a title
  land_geom_type_text = ' '.join(['lands geom_type :',next(landshape_feature.geometries()).geom_type])
  river_geom_type_text = ' '.join(['rivers geom_type :',next(largeriversshape_feature.geometries()).geom_type])
  map_figure.suptitle('\n'.join([land_geom_type_text,river_geom_type_text]))
  
  plt.show()
  </code></pre>
  
  <p>Here's the result :
  <a href="https://i.stack.imgur.com/4yjRW.png" rel="nofollow noreferrer">rendered map</a></p>
  
  <p><strong>Question :</strong> How to fix it ?</p>