Skip to content

Commit

Permalink
fix camera plot for new matplotlib
Browse files Browse the repository at this point in the history
Summary: fixes #1554 , needed for Matplotlib 3.6+

Reviewed By: patricklabatut

Differential Revision: D46438822

fbshipit-source-id: f3c06ad5d8e881a635edd14f96d498dca73c169f
  • Loading branch information
bottler authored and facebook-github-bot committed Jun 7, 2023
1 parent 35badc0 commit 928efdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/utils/camera_visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def plot_camera_scene(cameras, cameras_gt, status: str):
a string passed inside the `status` argument.
"""
fig = plt.figure()
ax = fig.gca(projection="3d")
ax = fig.add_subplot(projection="3d")
ax.clear()
ax.set_title(status)
handle_cam = plot_cameras(ax, cameras, color="#FF7D1E")
Expand Down

0 comments on commit 928efdd

Please sign in to comment.