やあ!
現在、JMP バージョン 17 のグラフ ビルダーで軸線の色を変更しようとしています。 基本的に、Y 軸と X 軸の線を黒に、グループ X 軸の線を赤に変更したいと考えています。
グラフの枠を黒にして Y 軸と X 軸を黒にしましたが、一番外側の右と上の線も黒にしたくありません。 また、グループ X 軸の設定を右クリックしても見つからないようです。
パワーポイント上で事後的に追加した線のモックアップのようなものを、私が意味する軸を示す矢印とともに添付しました。
助けていただければ幸いです。

前もって感謝します!
ここでは 1 つの方法を紹介しますが、もっと良い方法があるかもしれません。
- グループ間の赤い線は、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 ) ) )
)
