本文介绍了如何启用嵌入在PyQt4的部件在Axes3D(matplotlib)旋转?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我用下面的问题在一个PyQt4的小部件嵌入的Axes3D所示的方法:
I'm using the approach shown in the following questions for embedding an Axes3D in a PyQt4 widget:
在启动应用程序时,我不能旋转,通过鼠标的移动轴了。什么我需要做的,再次启用轮换?
When starting the application, I can not rotate the axes via mouse movement anymore. What do I need to do to enable the rotation again?
推荐答案
您拨打像任何时候Axes3D.clear()
,然后再次启用鼠标旋转你有叫 Axes3D.mouse_init()
。
Any time you call something like Axes3D.clear()
, then to enable mouse rotation again you have to call Axes3D.mouse_init()
.
好像是无证,但它为我的作品! 来源
Seems to be undocumented, but it works for me! Source
这篇关于如何启用嵌入在PyQt4的部件在Axes3D(matplotlib)旋转?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!