From 524955a0978bc7724ee62624cda1972ebd2a2496 Mon Sep 17 00:00:00 2001 From: Richard Higgins Date: Wed, 31 May 2023 17:22:31 -0700 Subject: [PATCH] 1-line plotting change to fix blank figure problem This change makes my version of the notebook actually show a dolphin rather than just a "blank canvas" --- docs/tutorials/deform_source_mesh_to_target_mesh.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorials/deform_source_mesh_to_target_mesh.ipynb b/docs/tutorials/deform_source_mesh_to_target_mesh.ipynb index a669267e6..ea96678f6 100644 --- a/docs/tutorials/deform_source_mesh_to_target_mesh.ipynb +++ b/docs/tutorials/deform_source_mesh_to_target_mesh.ipynb @@ -262,7 +262,7 @@ " points = sample_points_from_meshes(mesh, 5000)\n", " x, y, z = points.clone().detach().cpu().squeeze().unbind(1) \n", " fig = plt.figure(figsize=(5, 5))\n", - " ax = Axes3D(fig)\n", + " ax = fig.add_subplot(111, projection='3d')\n", " ax.scatter3D(x, z, -y)\n", " ax.set_xlabel('x')\n", " ax.set_ylabel('z')\n",