Cartopy coastlines line width

1,070 views
Skip to first unread message

Duncan Watson-Parris

unread,
Apr 14, 2016, 1:08:28 PM4/14/16
to Iris
This might be a silly question, but I wondered if there was a way to change the line width of the cartopy coastlines?

I can't see any specific keyword args to the coastlines method, or on FeatureArtists more generally.

Andrew Dawson

unread,
Apr 14, 2016, 4:00:51 PM4/14/16
to Iris
If you use the coastlines method you can just add the linewidth keyword:

import cartopy.crs as ccrs
import matplotlib.pyplot as plt

ax
= plt.axes(projection=ccrs.PlateCarree())
ax
.coastlines(linewidth=2)

Likewise for the add_feature method.

Duncan Watson-Parris

unread,
Apr 15, 2016, 7:03:09 AM4/15/16
to Iris
I'm sure I tried that! Thanks Andrew.

Might be worth documenting though?
Reply all
Reply to author
Forward
0 new messages