Skip to content

Update 3D plot axis creation in NumpyImage class#27

Open
gnzng wants to merge 1 commit intoareaDetector:masterfrom
gnzng:fix3dplot
Open

Update 3D plot axis creation in NumpyImage class#27
gnzng wants to merge 1 commit intoareaDetector:masterfrom
gnzng:fix3dplot

Conversation

@gnzng
Copy link
Copy Markdown

@gnzng gnzng commented Jul 16, 2025

Problem

ax = fig.gca(projection="3d") got deprecated in newer matplotlib versions, and gave the following error:

image

Fix

using fig.add_subplot(111, projection="3d") works fine:
image

Tested on python 3.10 and matplotlib 3.10.3 for PVAPY_NTNDA_Viewer.py and P4P_NTNDA_Viewer.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant