Skip to content

Commit

Permalink
Allow specifying min amd max plot concentration
Browse files Browse the repository at this point in the history
  • Loading branch information
pya committed Jul 3, 2023
1 parent 79220a3 commit 50a99b0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/pymf6/modeling_tools/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,17 @@ def show_concentration(
show_grid=True,
levels=None,
kstpkper=None,
show_wells=True):
show_wells=True,
vmin=None,
vmax=None):
"""Plot calculated heads along with flow vector."""
gwtname = 'gwt_' + name
sim = get_simulation(model_path, name)
gwt = sim.get_model(gwtname)

conc = gwt.output.concentration().get_data(kstpkper)
#conc[0, :, 0] = 10
pmv = flopy.plot.PlotMapView(gwt)
# hack to level start azero
conc[0, -1, -1] = 0
arr = pmv.plot_array(conc)
arr = pmv.plot_array(conc, vmin=vmin, vmax=vmax)
if show_grid:
pmv.plot_grid(colors='white')
if show_wells:
Expand Down

0 comments on commit 50a99b0

Please sign in to comment.