2

I am trying to print 3d scattered plot in python. However when I use this line ax = fig.add_subplot(111,projection='3d') I get the following error:

KeyError: u'_internal.classic_mode'

For complete information, I am running it on macOS and my matplotlib version is 1.1.3

2
  • matplotlib is up to 2.0 now, don't know if it would help Commented Feb 24, 2017 at 4:41
  • 2
    Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. See: How to create a minimal reproducible example. Commented Feb 24, 2017 at 8:42

1 Answer 1

2

Did you import Axes3D (note the capitalization)?

from mpl_toolkits.mplot3d import Axes3D

It is not explicitly used but is required for 3d projections.

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.