Axes3d vs axes3d matplotlib

前端 未结 2 1952
闹比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.

提交回复
热议问题