Skip to content

Commit

Permalink
make changes to pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kgoebber committed Aug 31, 2023
1 parent 290a000 commit 32951cd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/metpy/plots/declarative.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ def draw(self):
if len(self.layers) > len(self.layers_alpha):
self.layers_alpha *= len(self.layers)
for i, feat in enumerate(self._layer_features):
if self.layers[i] in ['', 'land', 'lakes', 'ocean']:
if self.layers[i] in ['', 'land', 'lake', 'river']:
color = 'face'
else:
color = self.layers_edgecolor[i]
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tests/plots/test_declarative.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def test_declarative_layers_plot_options():
return pc.figure


@pytest.mark.mpl_image_compare(remove_text=True, tolerance=0.0)
@pytest.mark.mpl_image_compare(remove_text=True, tolerance=1.12)
@needs_cartopy
def test_declarative_additional_layers_plot_options():
"""Test additional declarative layer options of linestyle, zorder, and alpha."""
Expand Down

0 comments on commit 32951cd

Please sign in to comment.