Skip to content

Commit

Permalink
use grid.imshow
Browse files Browse the repository at this point in the history
  • Loading branch information
mcflugen committed Oct 20, 2024
1 parent d6aaddf commit 01fc7ec
Showing 1 changed file with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@
"\n",
"from landlab import RasterModelGrid\n",
"from landlab.components import river_flow_dynamics\n",
"from landlab.io import esri_ascii\n",
"from landlab.plot.imshow import imshow_grid"
"from landlab.io import esri_ascii"
]
},
{
Expand Down Expand Up @@ -174,7 +173,7 @@
"outputs": [],
"source": [
"# Showing the topography\n",
"imshow_grid(grid, \"topographic__elevation\")"
"grid.imshow(\"topographic__elevation\")"
]
},
{
Expand Down Expand Up @@ -306,7 +305,7 @@
"\n",
" if disp >= displayAnimationFreq:\n",
" clear_output(wait=True) # This will clear the previous image\n",
" imshow_grid(grid, \"surface_water__depth\")\n",
" grid.imshow(\"surface_water__depth\")\n",
" plt.show()\n",
" disp = -1\n",
"\n",
Expand All @@ -326,7 +325,7 @@
"metadata": {},
"outputs": [],
"source": [
"imshow_grid(grid, \"surface_water__depth\")"
"grid.imshow(\"surface_water__depth\")"
]
},
{
Expand All @@ -342,7 +341,7 @@
"metadata": {},
"outputs": [],
"source": [
"imshow_grid(grid, \"surface_water__elevation\")"
"grid.imshow(\"surface_water__elevation\")"
]
},
{
Expand Down Expand Up @@ -403,7 +402,7 @@
"outputs": [],
"source": [
"# Showing the topography\n",
"imshow_grid(grid, \"topographic__elevation\")"
"grid.imshow(\"topographic__elevation\")"
]
},
{
Expand Down Expand Up @@ -612,7 +611,7 @@
"\n",
" if disp >= displayAnimationFreq:\n",
" clear_output(wait=True) # This will clear the previous image\n",
" imshow_grid(grid, \"surface_water__depth\")\n",
" grid.imshow(\"surface_water__depth\")\n",
" plt.show()\n",
" disp = -1\n",
"\n",
Expand All @@ -632,7 +631,7 @@
"metadata": {},
"outputs": [],
"source": [
"imshow_grid(grid, \"surface_water__depth\")"
"grid.imshow(\"surface_water__depth\")"
]
},
{
Expand Down

0 comments on commit 01fc7ec

Please sign in to comment.