As reported in a comment on https://github.com/facebookresearch/pytorch3d/issues/1071, `ax = fig.gca(projection="3d")` cannot be used any more. See e.g. https://stackoverflow.com/questions/67095247/gca-and-latest-version-of-matplotlib