mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-02 03:42:50 +08:00
fix camera plot for new matplotlib
Summary: fixes https://github.com/facebookresearch/pytorch3d/issues/1554 , needed for Matplotlib 3.6+ Reviewed By: patricklabatut Differential Revision: D46438822 fbshipit-source-id: f3c06ad5d8e881a635edd14f96d498dca73c169f
This commit is contained in:
parent
35badc0892
commit
928efdd640
@ -33,7 +33,7 @@ def plot_camera_scene(cameras, cameras_gt, status: str):
|
|||||||
a string passed inside the `status` argument.
|
a string passed inside the `status` argument.
|
||||||
"""
|
"""
|
||||||
fig = plt.figure()
|
fig = plt.figure()
|
||||||
ax = fig.gca(projection="3d")
|
ax = fig.add_subplot(projection="3d")
|
||||||
ax.clear()
|
ax.clear()
|
||||||
ax.set_title(status)
|
ax.set_title(status)
|
||||||
handle_cam = plot_cameras(ax, cameras, color="#FF7D1E")
|
handle_cam = plot_cameras(ax, cameras, color="#FF7D1E")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user