Skip to content

Instantly share code, notes, and snippets.

@dopplershift
Created February 12, 2021 03:00
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dopplershift/1d3c801c923b13f0c6f05b6c4a344d9e to your computer and use it in GitHub Desktop.
Save dopplershift/1d3c801c923b13f0c6f05b6c4a344d9e to your computer and use it in GitHub Desktop.
Example notebook plotting satellite data, RTMA data, and surface observations
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ktyle
Copy link

ktyle commented Feb 12, 2021

Very cool ... when I ran this though, the land surface was all filled with yellow:
Screen Shot 2021-02-11 at 10 34 24 PM

@dopplershift
Copy link
Author

Try adding facecolor='none' to the calls to add_feature.

@ktyle
Copy link

ktyle commented Feb 12, 2021

Thanks; this actually looks to be some misbehavior in my current MPL/Cartopy environment which is affecting Natural Earth Feature plotting.

@ktyle
Copy link

ktyle commented Feb 12, 2021

Using edgecolor instead of color to add_feature produces the desired effect for my environment (matplotlib = 3.3.3, cartopy = 0.18.0, python = 3.8.6) . color seems to act to fill the enclosed features with the color specified. Anyway, thanks for putting this notebook together!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment