Skip to content

Commit

Permalink
update(contour_array): add tri_mask kwarg to parameters
Browse files Browse the repository at this point in the history
* update docstrings for `tri_mask` kwarg
  • Loading branch information
jlarsen-usgs committed Jan 31, 2024
1 parent 14e4c2b commit b204db7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions flopy/plot/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def plot_array(self, a, masked_values=None, **kwargs):
ax.set_ylim(self.extent[2], self.extent[3])
return collection

def contour_array(self, a, masked_values=None, **kwargs):
def contour_array(self, a, masked_values=None, tri_mask=False, **kwargs):
"""
Contour an array on the grid. By default the top layer
is contoured. To select a different layer, specify the
Expand All @@ -171,6 +171,10 @@ def contour_array(self, a, masked_values=None, **kwargs):
Array to plot.
masked_values : iterable of floats, ints
Values to mask.
tri_mask : bool
Boolean flag that masks triangulation and contouring
by nearest grid neighbors. This flag is useful for contouring
on unstructured model domains that have holes in the grid.
**kwargs : dictionary
keyword arguments passed to matplotlib.pyplot.pcolormesh
Expand All @@ -197,7 +201,6 @@ def contour_array(self, a, masked_values=None, **kwargs):
ax = kwargs.pop("ax", self.ax)
filled = kwargs.pop("filled", False)
plot_triplot = kwargs.pop("plot_triplot", False)
tri_mask = kwargs.pop("tri_mask", False)

if "colors" in kwargs.keys():
if "cmap" in kwargs.keys():
Expand Down

0 comments on commit b204db7

Please sign in to comment.