From 87a68ff2ab755af5f3f2dff89165fd610b248651 Mon Sep 17 00:00:00 2001 From: Santiago Soler Date: Wed, 31 Jan 2024 09:31:45 -0800 Subject: [PATCH] Fix missing y_topo_max variable in live notebook (#43) --- live/01-forward-dc-resistivity-2d.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/live/01-forward-dc-resistivity-2d.ipynb b/live/01-forward-dc-resistivity-2d.ipynb index fdf37d9..67fd650 100644 --- a/live/01-forward-dc-resistivity-2d.ipynb +++ b/live/01-forward-dc-resistivity-2d.ipynb @@ -274,10 +274,10 @@ "fig = plt.figure(figsize=(8, 4))\n", "\n", "ax1 = fig.add_axes([0.14, 0.17, 0.8, 0.7])\n", - "mesh.plot_grid(ax=ax1, linewidth=1)\n", + "mesh.plot_grid(ax=ax1, linewidth=0.75)\n", "ax1.grid(False)\n", "ax1.set_xlim(-200, 200)\n", - "ax1.set_ylim(y_topo_max - 200, y_topo_max)\n", + "ax1.set_ylim(np.max(y_topo) - 200, np.max(y_topo))\n", "ax1.set_title(\"Mesh\")\n", "ax1.set_xlabel(\"x (m)\")\n", "ax1.set_ylabel(\"y (m)\")\n",