0

我正在尝试使用 Pyvista 绘制 3D 和 2D 绘图,我已经能够使 3D 绘图工作没有问题。添加二维图后,出现以下错误:

  • 当我更改原始大小并且小部件使其大小增加时,我必须向 gridLayout_8 添加一个交互器小部件。我不确定如何避免这种情况。
  • 当我关闭应用程序时,也会出现以下错误:
2022-02-05 15:13:00.876 (  45.002s) [                ]vtkWin32OpenGLRenderWin:758    ERR| vtkWin32OpenGLRenderWindow (0000011AA6CC1B50): failed to get vali
d pixel format.
ERROR:root:failed to get valid pixel format.
2022-02-05 15:13:00.876 (  45.003s) [                ]vtkOpenGLRenderWindow.c:493    ERR| vtkWin32OpenGLRenderWindow (0000011AA6CC1B50): GLEW could not be
initialized: Missing GL version
ERROR:root:GLEW could not be initialized: Missing GL version
2022-02-05 15:13:00.876 (  45.003s) [                ]     vtkOpenGLState.cxx:1795  WARN| Hardware does not support the number of textures defined.
2022-02-05 15:13:00.876 (  45.003s) [                ]     vtkOpenGLState.cxx:1795  WARN| Hardware does not support the number of textures defined.
2022-02-05 15:13:00.876 (  45.003s) [                ]     vtkOpenGLState.cxx:1795  WARN| Hardware does not support the number of textures defined.
2022-02-05 15:13:00.876 (  45.003s) [                ]     vtkOpenGLState.cxx:1795  WARN| Hardware does not support the number of textures defined.
2022-02-05 15:13:00.876 (  45.003s) [                ]     vtkOpenGLState.cxx:1795  WARN| Hardware does not support the number of textures defined.
2022-02-05 15:13:00.877 (  45.003s) [                ]     vtkOpenGLState.cxx:1795  WARN| Hardware does not support the number of textures defined.
2022-02-05 15:13:00.877 (  45.003s) [                ]     vtkOpenGLState.cxx:1795  WARN| Hardware does not support the number of textures defined.

抱歉,这些脚本的行数太多,不适合放在此处。

主代码 https://pastebin.com/nMPWWeU5

pyvistaGUI https://pastebin.com/h5wiLYCY

它应该是什么样子 它应该是什么样子

现在的样子 现在的样子

我将非常感谢任何人对此的帮助!

4

0 回答 0