如何在 Spotfire 中更改交叉 table 的行高

How can I change the row height of cross table in Spotfire

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

来自 Spotfire.Dxp.Application.Visuals 导入 CrossTablePlot

vis.AsCrossTablePlot.CellHeight[0]=50

有什么想法吗?

十字table的CellHeight属性是一个整数,不是数组或列表。这意味着您实际上无法通过索引(或任何其他方式)访问特定行。 api 设置此 属性 时也不区分 header 行和数据行。这将设置行高,但 header 将被包括在内。

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

from Spotfire.Dxp.Application.Visuals import CrossTablePlot

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