【问题标题】:Is it possible to prohibit axes rotation with the mouse in Mayavi?是否可以在 Mayavi 中使用鼠标禁止轴旋转?
【发布时间】:2013-02-27 15:56:07
【问题描述】:

我正在使用 Mayavi 创建一个 2-D 绘图,以便利用一些渲染功能。由于它是一个 2-D (x,y) 图,放置在 3-D 空间中,我想限制鼠标与图的交互,这样图就不能用鼠标旋转,只能缩放或平移。这可能吗?

有一个类似的问题here,但还没有回答。那里的代码也适用于我的案例,即使它是 3-D。

问候,

-马克

【问题讨论】:

    标签: python mayavi


    【解决方案1】:

    通过 Gael Varoquaux: http://docs.enthought.com/mayavi/mayavi/tips.html#changing-the-interaction-with-a-scene

    figure.scene.interactor.interactor_style =  tvtk.InteractorStyleImage()
    

    【讨论】:

      猜你喜欢
      • 2016-12-11
      • 2021-12-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多