大家好,
我有兩個問題:
1)當我用列切換器切換列時,我不能再添加參考行了。例如
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
obj = dt << Bivariate( Y( :height ), X( :weight ) );
ColumnSwitcherObject = obj << Column Switcher( :height, {:name, :age, :sex, :height} );
gbReport = obj << report;<BR /><BR />axisbox = gbReport[axis box( 1)];現在當我運行下一行
axisbox << Add Ref Line(60, "Dotted", yellow, "TR", 2 );
它的工作。
但是如果運行這兩行
ColumnSwitcherObject << set current("age"); axisbox << Add Ref Line(14, "Dotted", yellow, "TR", 2 );
</CODE></P><P>它給了我這個錯誤</P><P> </P><PRE><CODE class="language-jsl">deleted object reference: axisbox << Add Ref Line(14, "Dotted", yellow, "TR", 2) in access or evaluation of 'Send' , axisbox << /*###*/Add Ref Line( 14, "Dotted", yellow, "TR", 2 ) /*###*/
In the following script, error marked by /*###*/
axisbox << /*###*/Add Ref Line( 14, "Dotted", yellow, "TR", 2 ) /*###*/
2)在列切換器中切換列時,有沒有辦法執行腳本? 當我們使用本地數據過濾器時,像“makerowstatehandler”之類的東西?
謝謝。
列切換器習慣於在列被換出時刪除其引用。通過將參考線嵌入到代碼中
Bivariate(
Y( :height ),
X( :weight ),
SendToReport(
Dispatch(
{},
"2",
ScaleBox,
{Add Ref Line( 62.9375, "Dashed", "Yellow", "TR", 1 )}
)
)
);
或使用添加代碼
<<添加圖形腳本
我相信你可以解決這個問題
或者
謝謝,
但它告訴我這個錯誤
axisbox << Add Ref Line( 14, "Dotted", yellow, "TR", 2 );
並且不顯示該行
對於 #1,您需要重新運行首先設置 AxisBox 變量的行。 這是因為 JMP 中的列切換器會在列更改時重新生成報表,因此對報表和軸框的舊引用不再有效。
// Always needs to happen in this order
gbReport = obj << report;
axisbox = gbReport[axis box( 1 )];
axisbox << Add Ref Line(14, "Dotted", yellow, "TR", 2 );
對於#2,我不認為有像數據過濾器那樣的列切換器的等效處理程序。 這可能是一個好主意JMP 願望清單.