プロット内でカスタム XY グリッド間隔を設定するにはどうすればよいでしょうか?以下のサンプル スクリプトによって生成されたプロットで、X 軸と Y 軸の両方に 25 間隔で配置されたカスタム グリッドを作成するには (また、グリッド ラインを選択した色で着色し、グリッド ラインの線幅を広げるには) どうすればよいでしょうか。
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Little Pond.jmp" );
dt << Contour Plot(
X( :X, :Y ),
Y( :Z ),
Show Data Points( 0 ),
Fill Areas( 0 ),
Label Contours( 0 ),
Transform( "Range Normalized" ),
Specify Contours( Min( -4 ), Max( 8 ), N( 7 ) ),
SendToReport(
Dispatch(
{},
"1",
ScaleBox,
{Label Row( {Show Major Grid( 1 ), Show Minor Grid( 1 )} )}
),
Dispatch(
{},
"2",
ScaleBox,
{Label Row( {Show Major Grid( 1 ), Show Minor Grid( 1 )} )}
)
)
);生成されたチャートを右クリックしてカスタマイズ オプションを確認しても、必要なオプションが表示されません。
ありがとう。
自動化とスクリプト基本的なデータ分析とモデリングRe: プロットでカスタム XY グリッド間隔を設定するにはどうすればよいでしょうか?グリッド線の幅を調整することを除いて、必要なことすべてを実行する修正されたスクリプトを以下に示します。
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Little Pond.jmp" );
cont_plot = dt << Contour Plot(
X( :X, :Y ),
Y( :Z ),
Show Data Points( 0 ),
Fill Areas( 0 ),
Label Contours( 0 ),
Transform( "Range Normalized" ),
Specify Contours( Min( -4 ), Max( 8 ), N( 7 ) ),
);
report(cont_plot)[axis box(1)]<< show major grid(1);
report(cont_plot)[axis box(2)]<< show major grid(1);
report(cont_plot)[axis box(1)]<< inc(25);
report(cont_plot)[axis box(2)]<< inc(25);
report(cont_plot)[axis box(1)]<< Major Grid Line Color("red");
report(cont_plot)[axis box(2)]<< Major Grid Line Color("red");軸のグリッド線の太さを調整する方法がわかりません。これを行う 1 つの方法は、グリッド線レベルに参照線を追加することです。
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Little Pond.jmp" );
cont_plot = dt << Contour Plot(
X( :X, :Y ),
Y( :Z ),
Show Data Points( 0 ),
Fill Areas( 0 ),
Label Contours( 0 ),
Transform( "Range Normalized" ),
Specify Contours( Min( -4 ), Max( 8 ), N( 7 ) ),
);
for each({val}, 0::400::25,
report(cont_plot)[axis box(2)]<<ADD ref="" line=""></ADD>