From ea685b1f0157b4a637db9cfca5a93aaf8328c6c4 Mon Sep 17 00:00:00 2001 From: gnzng Date: Wed, 16 Jul 2025 13:34:57 -0700 Subject: [PATCH] update 3D plot axis creation in NumpyImage class --- Python/PY_NTNDA_Viewer/numpyImage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")