Building the Irish coastline using Basemap in matplotlib

I would like to know how to build an Irish coastline in Basemap. I would like to build the whole of Great Britain with the help of Basemap, however I cannot force the Irish coastline to plot. I also tried map.drawcountries(linewidth = 0.2), map.fillcontinents(color = 'lightgray', zorder = 0)and map.drawmapboundary(linewidth = 0.2), but none of them give the coastline that I use.

I am sure that Ireland has a coastline, as I saw it in real life. Thank you in advance.

No ireland

from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt

fig, ax = plt.subplots()
map = Basemap(projection='merc', lat_0 = 55, lon_0 = -4,
    resolution = 'i', area_thresh = 0.05,
    llcrnrlon=-9, llcrnrlat=49,
    urcrnrlon=2, urcrnrlat=61)
map.drawcoastlines(linewidth = 0.2, zorder = 0)
plt.show()
+4
source share
1 answer

I know this a bit later, but you can try this

import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap

fig, ax = plt.subplots() map = Basemap(projection='merc', lat_0 = 53.866772, lon_0 = -5.23636,resolution = 'i', area_thresh = 0.05,llcrnrlon=-10.65073, llcrnrlat=49.16209,urcrnrlon=1.76334, urcrnrlat=61) map.drawcoastlines(linewidth = 0.2, zorder = 0) plt.show()

+1
source

All Articles