Skip to content

Commit

Permalink
1-line tutorial notebook plotting change to fix blank figure problem (#…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
relh authored and facebook-github-bot committed Jun 16, 2023
1 parent 009a3d3 commit 8842985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/deform_source_mesh_to_target_mesh.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8842985

Please sign in to comment.