你好!
我目前正在尝试在 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 ) ) )
)
