ループスクリプトから生成されたすべてのグラフの軸スケール(log)を標準化する方法列をループし、プロット内のY値として各列を繰り返し使用する簡単なスクリプトを作成しようとしています。forループは停止したと思いますが、Y軸を対数スケールに設定することはできません。コードは実行されますが、生成される各グラフは、各列に固有の範囲の線形スケールです。 各グラフを対数目盛りで表示したい(具体的に設定された最小値/最大値、またはデータに基づいて自動的に生成された範囲)。
cd = Current Data Table();
column_names = cd << Get Column Names;
For ( i = 256, i <= 258, i++,
Graph Builder(
Size( 625, 660 ),
Variables(
X( :Day ),
Y( Column( cd, column_names[i] ) ),
Overlay( :Dose ),
),
Elements( Line( X, Y, Legend( 6 ) , Error Bars ("Standard Deviation") ) ),
SendToReport(
Dispatch(
{},
"Data Abs. Counts T CD56br" ,
ScaleBox,
{Scale( "Log" ), Format( "Best", 12), Min( 0.002 ), Max( 16000 ),
Inc( 1 ), Minor Ticks( 1 ), Label Row( Show Minor Labels( 0 ) )}
),
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
6,
Properties( 0, {Line Width( 2 )} ),
Properties( 1, {Line Width( 2 )} ),
Properties( 2, {Line Width( 2 )} ),
Properties( 3, {Line Width( 2 )} ),
Properties( 4, {Line Width( 2 )} )
)}
),
Dispatch(
{},
"Y title",
TextEditBox,
{Set Text( Column(cd, column_names[i]))}
)
)
))
読みました https://community.jmp.com/t5/Discussions/Scripting-Y-Axis-to-be-Log-scale/mp/54573#M30852 そして、まだ立ち往生しています。ScaleBox(1)またはScaleBox(2)を含めてみましたが、1番目または2番目のグラフを対数スケールにすることすらできませんでした。私もxPathソリューションを試していますが、追加の助けがあれば素晴らしいでしょう。
本当にありがとう!!
ボーナス質問:
SendToReport(
Dispatch(
{},
"Data Abs. Counts T CD56br" ,「データAbsとは何ですか。カウントT CD56br "ここを参照してください。それは私の列名の1つです(しかしすべての列名ではありません!)。 それは(スケールの問題は別として)それがあるべき方法を実行していて、他の値(すなわち「データ」)にそれを変更しても何も壊れていないようです。これは何ですか?
再:ループスクリプトから生成されたすべてのグラフの軸スケール(log)を標準化するにはどうすればよいですか。実際、私の問題は本当にBONUSの質問でした。その名前をchar(column_names [i])に変更して、次の仕様が* that *グラフに適用されるようにする必要がありました。
だからうまくいくコードは:
cd = Current Data Table();
column_names = cd << Get Column Names;
For ( i = 255, i <= 256, i++,
gb = Graph Builder(
Size( 625, 660 ),
Variables(
X( :Day ),
Y( Column( cd, column_names[i] ) ),
Overlay( :Patient ),
Color( :Dose )
),
Elements( Line( X, Y, Legend( 6 ) ) ),
SendToReport(
Dispatch(
{},
Char(column_names[i]),
ScaleBox,
{Scale( "Log" ), Format( "Best", 12 ), Min( 0.002 ), Max( 16000 ),
Inc( 1 ), Minor Ticks( 1 ), Label Row( Show Minor Labels( 0 ) )}
),
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
6,
Properties( 0, {Line Width( 2 )} ),
Properties( 1, {Line Width( 2 )} ),
Properties( 2, {Line Width( 2 )} ),
Properties( 3, {Line Width( 2 )} ),
Properties( 4, {Line Width( 2 )} )
)}
),
Dispatch(
{},
"Y title",
TextEditBox,
{Set Text( Column(cd, column_names[i]) )}
)
)
);
rgb = gb << report;
rgb << journal;
);