Plotting grid
#1639
Replies: 1 comment 1 reply
-
You need to specify a model name in the
sim = flopy.mf6.MFSimulation.load(sim_ws='.', load_only=['dis'], verbosity_level=0)
mymodel = sim.get_model("my_model_name")
mapview = flopy.plot.PlotMapView(model=mymodel)
linecollection = mapview.plot_grid()
mymodel = sim.get_model("my_model_name")
mg = mymodel.modelgrid
linecollection = mg.plot_grid() |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to plot a grid of a model run with modflow 6.
I read the example at: https://github.com/modflowpy/flopy/blob/develop/examples/Notebooks/flopy3.3_PlotMapView.ipynb
I am using:
But it does not work.
I have also extracted the grid with the command line:
mg = sim.get_model().modelgrid
and I have tried:
linecollection = mg.plot_grid()
But plot_grid is not an attribute for modelgrid.
Could you please suggest how to extract the grid and plot it using flopy.mf6?
I could found an example in the github repository
Thank you so much.
Best regards
Beta Was this translation helpful? Give feedback.
All reactions