【问题标题】:How can I change the row height of cross table in Spotfire如何在 Spotfire 中更改交叉表的行高
【发布时间】:2019-06-19 04:13:32
【问题描述】:

我尝试在 Spotfire 中更改交叉表的行高(不是标题)。 这个↓是我的 Iron Python 脚本代码。(这里我尝试将第一行的高度更改为 50)。但它给了我一个错误。

从 Spotfire.Dxp.Application.Visuals 导入 CrossTablePlot

vis.AsCrossTablePlot.CellHeight[0]=50

有什么想法吗?

【问题讨论】:

  • 什么错误?

标签: ironpython spotfire


【解决方案1】:

交叉表的 CellHeight 属性是一个整数,而不是数组或列表。这意味着您实际上无法通过索引(或任何其他方式)访问特定行。设置此属性时,api 也不区分标题行和数据行。这将设置行高,但会包含标题。

如果手动更改行高,则行标题不再包含在通过 ironpython 调整大小的过程中。我想,这一定是个谜。

from Spotfire.Dxp.Application.Visuals import CrossTablePlot

vis.As[CrossTablePlot]().CellHeight=50

【讨论】:

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