我导入了matplotlib。Python3.X、MacOS、Chrome
import matplotlib.pyplot as plt
from plotting import plot_diagram, plot_landscapes
from plotting import plot_betti_surfaces, plot_betti_curves
我得到这个错误。有人知道为什么以及如何修复吗? “绘图”是另一个库的一部分,需要从其他软件包安装吗? 多谢各位
ImportError Traceback (most recent call last)
<ipython-input-72-8c06bd9c066e> in <module>
11 import matplotlib.pyplot as plt
12 from plotting import plot_diagram, plot_landscapes
---> 13 from plotting import plot_betti_surfaces, plot_betti_curves
14 from plotting import plot_point_cloud
15 from pandas.plotting import register_matplotlib_converters
ImportError: cannot import name 'plot_betti_surfaces' from 'plotting' (/Users/username/opt/anaconda3/lib/python3.7/site-packages/plotting/__init__.py)
----------
##
看来
plot_betti_surfaces
是另一个包“giotto tda”的一部分https://docs-tda.giotto.ai/latest/modules/generated/plotting/gtda.plotting.plot_betti_surfaces.html
我想你错过了安装plotting
相关问题 更多 >
编程相关推荐