Skip to content

Commit 928efdd

Browse files
bottlerfacebook-github-bot
authored andcommitted
fix camera plot for new matplotlib
Summary: fixes #1554 , needed for Matplotlib 3.6+ Reviewed By: patricklabatut Differential Revision: D46438822 fbshipit-source-id: f3c06ad5d8e881a635edd14f96d498dca73c169f
1 parent 35badc0 commit 928efdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorials/utils/camera_visualization.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def plot_camera_scene(cameras, cameras_gt, status: str):
3333
a string passed inside the `status` argument.
3434
"""
3535
fig = plt.figure()
36-
ax = fig.gca(projection="3d")
36+
ax = fig.add_subplot(projection="3d")
3737
ax.clear()
3838
ax.set_title(status)
3939
handle_cam = plot_cameras(ax, cameras, color="#FF7D1E")

0 commit comments

Comments
 (0)