我也遇到了同样的问题。我是 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()
希望这有帮助