【问题标题】:Display parameter value for 3D data in ImageView在 ImageView 中显示 3D 数据的参数值
【发布时间】:2014-09-10 20:51:17
【问题描述】:

此示例随模块一起提供:

我如何知道底部滑块上参数(标记为红色)的确切值? 到达那里的方式并不重要 - 作为工具提示或作为在屏幕上绘制的值等。

【问题讨论】:

    标签: pyqtgraph


    【解决方案1】:

    有几种方法可以访问此信息:

    imv = pg.ImageView()
    i = imv.currentIndex  # the currently-displayed frame
    z = imv.timeLine.Value()  # gives access to the line position
    

    您还可以连接回调来检测值何时发生变化:

    imv.timeLine.sigPositionChanged.connect(myCallback)
    

    但如何显示值由您决定(工具提示、标签等)

    【讨论】:

      猜你喜欢
      • 2020-10-21
      • 1970-01-01
      • 2018-02-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多