【问题标题】:Failure to import plot_helper in CobraPy在 CobraPy 中导入 plot_helper 失败
【发布时间】:2018-11-17 12:04:28
【问题描述】:

我正在尝试为 CobraPy 执行 this tutorial,但似乎无法导入 plot_helper

plot_helper 在哪里?是pip下载吗?

【问题讨论】:

    标签: python python-import toolkit cobra


    【解决方案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()
    

    希望对你有帮助

    【讨论】:

      猜你喜欢
      • 2018-11-11
      • 2021-08-31
      • 2019-09-04
      • 2020-11-02
      • 2015-02-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-24
      相关资源
      最近更新 更多