plotly / documentation

Issue tracker for Plotly's open-source documentation.
423 stars 546 forks source link

Missing borders in World Choropleth Map #797

Open evpu opened 7 years ago

evpu commented 7 years ago

The example World Choropleth Map (https://plot.ly/python/choropleth-maps/) does not plot borders where GDP data is missing. In this map shapefile (from Natural Earth?) Somaliland is plotted independently from Somalia, and also Western Sahara has a different shape if compared to, for example, Google Maps.

Katush888 commented 5 years ago

To prevent missing countries borders try to add showcountries = True

`layout = dict(
        title = '2011 US Agriculture Exports by State<br>(Hover for breakdown)',
        geo = dict(
            scope='usa',
            projection=dict( type='albers usa' ),
            showlakes = True,
            showcountries = True,
            lakecolor = 'rgb(255, 255, 255)'),
             )`