python-3.x - 如何在 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()
解决方案
推荐阅读
- c++ - c++:以编程方式初始化 constexpr std-2DArray
- python-3.x - 在比较之前字符串会自动转换为浮点数吗
- reactjs - React Router V5 HashRouter 不存储历史记录
- spring-boot - Spring Boot JpaRepository 时间复杂度问题
- android - 深层链接打开错误的应用程序(即时应用程序,未安装的应用程序)
- java - Windows 上的 jlink 失败 w“错误:重复条目!”
- c# - 使用 Dockerfile (Visual Studio) 设置 .xml 文件的相对路径
- youtube - 了解 Youtube Push Notificationy 收到的事件 - PubSubHubbub
- python - for循环和while循环,学习python
- javascript - StyledComponents:引用另一个组件