diff --git a/Python/PY_NTNDA_Viewer/numpyImage.py b/Python/PY_NTNDA_Viewer/numpyImage.py index d6ff533..8f666f2 100644 --- a/Python/PY_NTNDA_Viewer/numpyImage.py +++ b/Python/PY_NTNDA_Viewer/numpyImage.py @@ -371,7 +371,7 @@ def plot3d(self, image): image = image[yoffset:ny, xoffset:nx] image = np.transpose(image) fig = plt.figure() - ax = fig.gca(projection="3d") + ax = fig.add_subplot(111, projection="3d") ax.set_xlabel("x") ax.set_ylabel("y") ax.set_zlabel("value")