無論用戶偏好如何,都能找到正確的軸箱所以我遇到了一個問題,其中不同的用戶偏好導致不同的軸盒。 我嘗試使用xpath,但即使是因為xpath的值也在變化。
Names default to here(1);
dt = open("$SAMPLE_DATA\Big Class.jmp");
dist = platform(dt, Distribution(
Stack( 1 ),
Continuous Distribution(
Column( :height ),
Horizontal Layout( 1 ),
Vertical( 0 ),
Count Axis( 1 ),
normal quantile plot(1)
)
));
dist1 = platform(dt,
Distribution(
Stack( 1 ),
Continuous Distribution(
Column( :height ),
Horizontal Layout( 1 ),
Vertical( 0 ),
normal quantile plot(1)
)
);
);
new window("Test",
dist,
dist1
);
axis = dist[axisbox(2)]; // this is right
axis << Add Ref Line(55);
axis = dist1[axisbox(2)]; // this adds it to the y axis, I need 4
axis << Add Ref Line(55);Re:無論用戶偏好如何,找到正確的軸箱這不是你的問題的答案,但對於參考線,你可以使用列屬性?
Names default to here(1);
dt = open("$SAMPLE_DATA\Big Class.jmp");
:height << Set Property( "Axis", {Add Ref Line( 55, "Solid", "Black", "", 1 )} );
dist = platform(dt, Distribution(
Stack( 1 ),
Continuous Distribution(
Column( :height ),
Horizontal Layout( 1 ),
Vertical( 0 ),
Count Axis( 1 ),
normal quantile plot(1)
)
));
dist1 = platform(dt,
Distribution(
Stack( 1 ),
Continuous Distribution(
Column( :height ),
Horizontal Layout( 1 ),
Vertical( 0 ),
normal quantile plot(1)
)
);
);
new window("Test", dist, dist1);
:height << deleteProperty("Axis");Re:無論用戶偏好如何,找到正確的軸箱我認為這是特定於這個特定的軸箱,因為它沒有圍繞它的列錶框?這就是它至少看起來的樣子。
Re:無論用戶偏好如何,找到正確的軸箱嘿,文斯。
您是否嘗試過將Axath與AxisBox及其上方的DisplayBox一起使用?例如,如果我使用dist或dist1,則以下在X軸上的55處添加參考線:
axis = dist1 << XPath( "//BorderBox/AxisBox" );
axis << Add Ref Line( 55 );
Re:無論用戶偏好如何,找到正確的軸箱不是一個選擇。 如果我改變他們看到的東西,客戶將不會喜歡它。
Re:無論用戶偏好如何,找到正確的軸箱忽略平台首選項(1)將使用默認輸出運行平台。您可以使用它來確保您獲得您期望的報告結構。
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Distribution(
Ignore Platform Preferences( 1 ),
Y( :height, :weight ),
Histograms Only
);