在CobraPy中导入plot_helper失败

问题描述 投票:0回答:1

我正在尝试为 CobraPy 做 本教程,但似乎无法导入

plot_helper

plot_helper
在哪里?是pip下载的吗?

python pip python-import
1个回答
1
投票

我也遇到了同样的问题。我是 cobrapy 的新手,但这解决了我的问题。 我使用以下链接来绘制散点图 https://python-graph-gallery.com/130-basic-matplotlib-scatterplot/ 所以在第 8.1 节中,我个人使用的额外更改是:

我将 In[1] 中的

import plot_helper
替换为:

import matplotlib.pyplot

我使用的不是 In[4]:

matplotlib.pyplot.plot("loopless", "nominal", data=df, linestyle='none', marker='o')
matplotlib.pyplot.show()

希望这有帮助

© www.soinside.com 2019 - 2024. All rights reserved.