你好!
我目前正在嘗試在 JMP 版本 17 上的圖形生成器中更改軸線顏色。 我本質上想將 Y 軸和 X 軸的線更改為黑色,將 X 組軸線更改為紅色。
我通過將圖錶框架設為黑色,將 Y 軸和 X 軸設為黑色,但我不希望最外面的右線和頂線也變成黑色。 儘管右鍵單擊了 X 組軸設置,但我似乎也找不到它。
我附上了一種我在 powerpoint 上添加的線條模型,其中的箭頭指示了我所指的軸。
任何幫助將非常感激。

先感謝您!
這是一種方法,但可能還有更好的方法。
- 組之間的紅線可以添加為 X 軸設置中的參考線。 我通過一些實驗找到了數字 1.485。 我認為 1.5 應該是自然邊界,但此時這條線沒有顯示出來,所以這只是距離邊界較遠。 您可能需要使用不同數量的類別來調整此設置。
- 我使用線條工具在 Y 軸上繪製黑線,然後通過將圖形發送到腳本窗口並確保 x,y 坐標對齊良好來進行一些作弊。
這是一個重新創建我所做的事情的腳本。
/*JMP STATISTICAL DISCOVERY LLC (“JMP”) PERMITS THE USE OF THIS COMPUTER SOFTWARE CODE (“CODE”) ON AN AS-IS BASIS AND AUTHORIZES YOU TO USE THE CODE SUBJECT TO THE TERMS LISTED HEREIN. BY USING THE CODE, YOU AGREE TO THESE TERMS. YOUR USE OF THE CODE IS AT YOUR OWN RISK. JMP MAKES NO REPRESENTATION OR WARRANTY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRIGEMENT, AND TITLE, WITH RESPECT TO THE CODE.
You may use the Code solely as part of a software product you currently have licensed from JMP, JMP’s parent company SAS Institute Inc. (“SAS”), or one of JMP’s or SAS’s subsidiaries or authorized agents (the “Software”), and not for any other purpose. The Code is designed to add functionality to the Software but has not necessarily been tested. Accordingly, JMP makes no representation or warranty that the Code will operate error-free. JMP is under no obligation to maintain, support, or continue to distribute the Code.
Neither JMP nor its licensors shall be liable to you or any third-party for any general, special, direct, indirect, consequential, incidental, or other damages whatsoever arising out of or related to your use or inability to use the Code, even if JMP has been advised of the possibility of such damages. Except as otherwise provided above, the Code is governed by the same agreement that governs the Software. If you do not have an existing agreement with JMP or SAS governing the Software, you may not use the Code.
JMP and all other JMP Statistical Discovery LLC product or service names are registered trademarks or trademarks of JMP Statistical Discovery LLC in the USA and other countries. ® indicates USA registration. Other brand and product names are registered trademarks or trademarks of their respective companies.
*/
dt = Open( "$SAMPLE_DATA/big class.jmp" );
dt << Graph Builder(
Size( 633, 672 ),
Show Control Panel( 0 ),
Variables( X( :sex ), Group X( :age ) ),
Elements( Bar( X, Legend( 6 ) ) ),
SendToReport(
Dispatch(
{},
"sex",
ScaleBox,
{Add Ref Line( 1.485, "Solid", "Red", "", 1 ),
Label Row( Tick Mark Style( "Automatic" ) )}
),
Dispatch(
{},
"Graph Builder",
FrameBox,
Add Line Annotation( Line( {1, 0}, {1, 565} ), Color( "Black" ) )
)
)
);
嗨傑德,
十分感謝你的幫助。 參考線完美運行! 我還在圖形的“首選項”窗口中發現,如果我將框架顏色設置為黑色,但關閉圖形框架(取消勾選該框),這會使 y 軸和 x 軸僅黑色(不直觀 - 但它有效)。
乾杯!
GroupX 區域顏色的 JSL 選項:網格顏色()。
dt = Open( "$SAMPLE_DATA/big class.jmp" );
dt << Graph Builder(
Show Control Panel( 0 ),
Grid Color( "Red" ),
Graph Spacing( 4 ),
Variables( X( :sex ), Group X( :age ) ),
Elements( Bar( X, Legend( 6 ) ) )
)
