Skip to content

Commit

Permalink
Merge pull request #230 from ArtesiaWater/improve-plots
Browse files Browse the repository at this point in the history
add contour-array flopy func
  • Loading branch information
dbrakenhoff authored Aug 24, 2023
2 parents 06f0be4 + 35c440d commit 2e404d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion nlmod/plot/dcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def line_intersect_grid(self, cs_line):
xys = xys[xys[:, -1].argsort()]
return xys

def plot_layers(self, colors=None, min_label_area=np.inf, **kwargs):
def plot_layers(self, colors=None, min_label_area=np.inf, fontsize=None, **kwargs):
if colors is None:
cmap = plt.get_cmap("tab20")
colors = [cmap(i) for i in range(len(self.layer))]
Expand Down Expand Up @@ -223,6 +223,7 @@ def plot_layers(self, colors=None, min_label_area=np.inf, **kwargs):
self.layer[i],
ha="center",
va="center",
fontsize=fontsize,
)
return polygons

Expand Down
2 changes: 1 addition & 1 deletion nlmod/plot/flopy.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def map_array(
alpha=1.0,
colorbar=True,
colorbar_label="",
plot_grid=True,
plot_grid=False,
add_to_plot=None,
backgroundmap=False,
figsize=None,
Expand Down

0 comments on commit 2e404d3

Please sign in to comment.