0

Is there a way to get X, Y and Z data back from a surface plot (Poly3DCollection), generated by Axes3D.plot_surface(X, Y, Z)?

1 Answer 1

2
xdata, ydata, zdata, _ = ax.collections[0]._vec

Change the index to the correct value if you are plotting multiple surfaces. As far as I know, it is not possible to update these values.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.