Skip to content

Commit 8842985

Browse files
relhfacebook-github-bot
authored andcommitted
1-line tutorial notebook plotting change to fix blank figure problem (#1549)
Summary: Hi, Not sure this is the best fix. But while running this notebook, I only ever saw a blank canvas when trying to visualize the dolphin. It might be that I have a broken dependency, like plotly. I also don't know what the visualization is "supposed" to look like. But incase other people have this issue, this one line change solved the whole problem for me. Now I have a happy, rotatable dolphin. Pull Request resolved: #1549 Reviewed By: shapovalov Differential Revision: D46350930 Pulled By: bottler fbshipit-source-id: e19aa71eb05a93e2955262a2c90d1f0d09576228
1 parent 009a3d3 commit 8842985

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorials/deform_source_mesh_to_target_mesh.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@
262262
" points = sample_points_from_meshes(mesh, 5000)\n",
263263
" x, y, z = points.clone().detach().cpu().squeeze().unbind(1) \n",
264264
" fig = plt.figure(figsize=(5, 5))\n",
265-
" ax = Axes3D(fig)\n",
265+
" ax = fig.add_subplot(111, projection='3d')\n",
266266
" ax.scatter3D(x, z, -y)\n",
267267
" ax.set_xlabel('x')\n",
268268
" ax.set_ylabel('z')\n",

0 commit comments

Comments
 (0)