首页 > 解决方案 > 如何在 spyder 3 中绘图

问题描述

我将 OpenSuse 从 Leap 15.1 升级到 Leap 15.2,从那以后我不能再使用 spyder3 生成绘图。

示例:以下代码不会在我的系统上创建绘图。软件版本:python 3.6.10、ipython 7.13.0

# circumvent basestring error message on start-up
    try:
      basestring
    except NameError:
      basestring = str

    import matplotlib.pyplot as plt
    plt.plot([1, 2, 3, 4])
    plt.show()

标签: python-3.xspyder

解决方案


推荐阅读