Axes3d vs axes3d matplotlib

前端 未结 2 1905
闹比i
闹比i 2021-02-20 12:20

I just finished a horrible install of scipy, numpy, and matplotlib on OSX Lion. For some reason, I can\'t do a:

import matplotlib.pyplot as plt
from mpl_toolkits         


        
相关标签:
2条回答
  • 2021-02-20 12:49

    The following two things work for me (watch your capitalization):

    from mpl_toolkits.mplot3d import Axes3D
    from mpl_toolkits.mplot3d import axes3d
    

    But I get the same error for what you wrote (with the d in 3d in lower case). Note that the two imports that do work are not equivalent.

    0 讨论(0)
  • 2021-02-20 12:53
    from mpl_toolkits.mplot3d import Axes3D
    

    Please use above command to use the 3D image for an object

    0 讨论(0)
提交回复
热议问题