腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
Tkinter
/
matplotlib
osx
上
的
多个
活动
窗口
python
、
windows
、
macos
、
matplotlib
、
tkinter
我有一个在我
的
windows机器
上
执行
的
脚本,如下所示import numpy as np def __init__(self, root): # initialise ro
浏览 2
提问于2016-09-07
得票数 2
回答已采纳
1
回答
带有%
matplotlib
的
IPython外壳:显示图形
的
qt
窗口
在离开终端应用程序后消失。能修好吗?
qt
、
python-3.x
、
matplotlib
、
ipython
在我
的
设置中,用%
matplotlib
魔法从IPython外壳创建
的
弹出式
窗口
(不完全确定这是如何工作
的
)在从我
的
终端应用程序切换到任何其他正在运行
的
应用程序之后消失,然后再次返回。因此,例如,如果我正在绘制一个图形并想在Chrome中检查一个StackOverflow帖子,在返回到我
的
终端应用程序之后,我必须重新声明命令plt.show()来重新打开弹出
窗口
。这种行为是否听起来不典型(我
的
设置可能有问题),或者如果
浏览 4
提问于2017-01-10
得票数 2
回答已采纳
2
回答
tkinter
wiget.bind('<Activate>',回调)无效
python
、
tkinter
当按钮从禁用变为
活动
时,我一直试图创建一个消息框,但是当该按钮实际
上
从禁用变为
活动
时,由于某种原因,我
的
回调甚至没有被调用,我已经尝试让它工作了相当长
的
一段时间,现在我被卡住了。这里是这个问题
的
一个例子:from
tkinter
import Tk b.config
浏览 2
提问于2021-08-08
得票数 1
回答已采纳
1
回答
AttributeError:模块“backend_interagg”没有属性“FigureCanvas”
python
、
matplotlib
、
networkx
我正在使用
matplotlib
的
Version3.6.0和networkx
的
2.6.3版本,出于某种原因,我
的
代码给了我AttributeError: module 'backend_interagg'代码:import
matplotlib
.pyplot as pltimport
matplotlib
File &q
浏览 9
提问于2021-11-07
得票数 1
回答已采纳
2
回答
标绘时
的
歧义
python
、
matplotlib
、
operating-system
很容易验证,根据版本/操作系统
的
不同,用Python绘制
的
绘图在外观/分辨率上有很大差异:如何解决这个问题?
浏览 0
提问于2014-02-20
得票数 1
2
回答
Tkinter
/
Matplotlib
后端冲突导致无限主循环
python
、
matplotlib
、
tkinter
考虑运行以下代码(请注意,这是演示问题
的
一个极其简化
的
版本):from
tkinter
import * #
Tkinter
if yourroot.mainloop() main() 关闭第一个
窗口
可以很好地工作,但关闭第二个<em
浏览 2
提问于2013-07-09
得票数 8
回答已采纳
1
回答
带有
matplotlib
和
tkinter
的
kivy中
的
NSException
python
、
tkinter
、
kivy
我继承了一些使用kivy/
tkinter
/
matplotlib
的
代码,它们在windows
上
运行良好,但在
osx
上有一些问题。已经解决了一个问题。当我运行以下命令时,我得到了一个NSException:#
tkinter
._test()
matplotlib
.use("TkAgg") from
matplotlib</
浏览 3
提问于2017-03-08
得票数 1
回答已采纳
1
回答
Tkinter
:绘制
多个
图形,GUI崩溃,windows显示python程序没有响应?
python
、
python-3.x
、
matplotlib
、
tkinter
在我
的
tkinter
GUI中,我有两个按钮,用于绘制不同参数
的
图形,但是当我单击其中一个按钮时,图形绘制成功,并且我没有将
matplotlib
窗口
嵌入到任何其他
tkinter
窗口
中,我直接调用
matplotlib
绘图,但是当没有关闭一个绘制
的
图形时,如果我单击另一个图形,则其他图形
窗口
打开,突然出现错误,该python程序没有响应。因此,将
matplotlib
图嵌入到另一个顶层
窗口</em
浏览 1
提问于2020-06-19
得票数 0
1
回答
嵌入
Tkinter
时未调用
Matplotlib
事件处理程序
python
、
matplotlib
、
tkinter
概述当图形嵌入到
Tkinter
窗口
中时,应
浏览 27
提问于2022-04-10
得票数 0
回答已采纳
1
回答
对
Tkinter
术语
的
混淆
python
、
matplotlib
、
tkinter
、
canvas
、
figure
在构建
Tkinter
GUI时,我对根
窗口
、图形、后端和画布之间
的
区别感到困惑。据我所知,画布是艺术家可以在上面绘制
的
东西,并附加到图形
上
。这很有帮助,但我无法理解
窗口
/图/后端和画布
的
区别或层次结构是什么:http://www.aosabook.org/en/
matplotlib
.html
浏览 5
提问于2020-09-23
得票数 0
回答已采纳
1
回答
matplotlib
图形不在
tkinter
窗口
中显示
python-2.7
、
matplotlib
、
tkinter
当我试图在
tkinter
窗口
中用
matplotlib
绘制一些东西时,它根本不会显示出来。如果我去掉
tkinter
的
特定部分,只做一个基本
的
plt.plot(...)而plt.show()则显示在我
的
常规文本输出字段中。但是,在这种情况下,我希望它显示在
tkinter
窗口
中。我相信这是因为我在mac (macOS 10.12.4)
上
运行它,但是我不知道如何让它显示在
tkinter
窗口
浏览 3
提问于2017-05-18
得票数 1
1
回答
matplotlib
在
tkinter
主循环之后调用时冻结
python
、
matplotlib
、
tkinter
、
multiprocessing
我一直面临着一个暗示
Matplotlib
,
Tkinter
和multiprocessing.Process
的
问题: 我写了一个程序,它创建了一个
Tkinter
窗口
来要求用户输入。关闭
tkinter
窗口
后,它会产生几个进程,其中一些进程使用
matplotlib
绘制数据。我在Python 2.7.6和Linux (Ubuntu 14.04)
上
运行该程序。更有趣
的
是,如果省略了
Tkinter
窗口</
浏览 0
提问于2017-09-18
得票数 0
1
回答
Tkinter
中
的
Embedded
Matplotlib
图只在按键事件
上
按下'g‘时用新数据进行更新。为什么?
python
、
numpy
、
user-interface
、
matplotlib
、
tkinter
我试图通过更新数据,找到一种方法来更新嵌入在
tkinter
窗口
类中
的
matplotlib
图像图。通过单击按钮修改数据,并使用numpy数组存储/操作数据。我试过forget_pack(),del,但都没有用from random import randintimportfrom
matplotlib
.figure import Figure root =
tkinte
浏览 0
提问于2019-11-04
得票数 0
回答已采纳
1
回答
在
tkinter
应用程序中调用
Matplotlib
会更改Windows 10
上
的
根
窗口
大小
python
、
matplotlib
、
tkinter
、
windows-10
我已经创建了一个
tkinter
应用程序,它在屏幕
上
绘制pyplot子图(使用
matplotlib
)。在Windows10笔记本电脑上进行测试时,我发现绘图一创建,
tkinter
根
窗口
就会急剧缩小。我已经将这个问题归结为以下代码:import
matplotlib
.pyplot as plt fig, axs = plt.subplots笔记本电脑
上
,只要按下"Plo
浏览 22
提问于2020-05-31
得票数 0
1
回答
我可以在Tcl/Tk应用程序中嵌入
matplotlib
图吗?
python
、
matplotlib
、
tkinter
、
tcl
、
tk-toolkit
我想知道使用Tcl解释器中
的
调用
matplotlib
并将其绘图到在Tcl端创建
的
Tk画布上有多困难。 我想知道做这件事最好
的
方法是什么。还是有一种更优雅
的
方式?
浏览 1
提问于2016-01-17
得票数 2
1
回答
为什么在Windows和Linux中运行相同
的
程序看起来不同?
python
、
linux
、
windows
、
tkinter
我编写了一个简单
的
Python应用程序来度量某个事件
的
时间。一切都很好,但是在两种不同
的
操作系统
上
看起来完全不同,这让我有点头疼。我能做点什么为什么会发生这种事?我是说,最后,密码是一样
的
。# str8.pyfrom datetime import
浏览 3
提问于2017-04-06
得票数 2
回答已采纳
4
回答
OS
上
的
Matplotlib
.pyplot与来自Python.org
的
64位Python
python
、
macos
、
matplotlib
我刚刚在我
的
OSX
10.6.6
上
安装了numpy和
matplotlib
。我有来自Python.org
的
Python2.7。当我执行import
matplotlib
.pyplot时,会得到以下错误: ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/<em
浏览 5
提问于2011-03-24
得票数 9
1
回答
在
OSX
中,我如何确定
窗口
的
位置,以及哪个
窗口
是
活动
的
?
objective-c
、
macos
我正在构思一种用于
OSX
的
窗口
管理器,类似于或。为了做到这一点,我需要能够确定各种
窗口
的
位置,以及哪个
窗口
是
活动
的
。当
活动
窗口
改变时
的
某种回调也是有用
的
,就像如何处理
多个
屏幕和
多个
空格一样。我接受了这样一个事实,即我可能需要学习Objective C,但如果有一种方法可以从Java中完成这类事情,那将是特别棒
的
。 谁能告诉我<e
浏览 0
提问于2010-04-19
得票数 3
回答已采纳
1
回答
我是Tkinterer
的
新手,有人能帮我做一个基于矩阵
的
二维图形吗?
python
、
tkinter
、
spyder
假设我
的
这部分代码是一个矩阵计算器,我现在很难在给出结果后弹出一个显示图形
的
屏幕。顺便说一句,我没有错过任何库。R2.append(b22) A = np.matrix(A)
tkinter
.messagebox.showinfo
浏览 14
提问于2021-05-04
得票数 0
1
回答
关闭
tkinter
窗口
时,python程序不会结束
python
、
matplotlib
、
animation
、
tkinter
、
matplotlib-widget
虽然图形用户界面还没有准备好,但是我有一个问题,当我关闭
TKinter
窗口
时,程序没有被关闭。它仍然在python shell中运行。我想这可能是关闭
tkinter
相关程序
的
方法。但我发现,在某些程序中,只要关闭
tkinter
窗口
,就会杀死程序。在我
的
例子中,即使在关闭
tkinter
窗口
之后,程序仍在python shell中运行。我把我
的
代码放在这里,请看看问题出在哪里?from
tkinter
浏览 221
提问于2019-03-17
得票数 3
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
即时通信 IM
活动推荐
运营活动
广告
关闭
领券