大家好,
我是JSL的新手,需要你的幫助。
我創建了一個代碼,可以輕鬆創建控製圖並以正確的方式對其進行格式化。但是,通過樣本標籤使用多個過程,格式將僅在第一個圖表上更改。我需要一個格式化所有圖表的代碼。我想使用eval / parse可能有所幫助,但我不熟悉這種語法。任何人都可以解釋如何在我的代碼中使用它嗎?
這裡的代碼:
dt = Current Data Table()<<
Control Chart(NP,
show control limits(0),
Dispatch(,
"2",
ScaleBox,
{Min( 0 ), Max( 5.5 ), Inc( 1 ), Minor Ticks( 0 ),
Rotated Labels( "Horizontal" )}
),
Dispatch(,
"1",
ScaleBox,
{Rotated Labels( "Angled" )}
),
dispatch(,
Attributes Chart,
FrameBox,
{DispatchSeg( CustomStreamSeg( 2 ), {Line Color( {0, 175, 208} )} )}
)
);
謝謝
米爾科
我包含的代碼是否適用於您的系統?
如果是這樣,您是否可以提供數據樣本,以及您收到錯誤的實際代碼?
這是一個腳本,我相信如果您將其中的值更改為您的規範,它將為您提供您可以針對多列運行的腳本所需的內容。
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\Big Class.jmp" );
col = "height";
theMin = 45;
theMax = 90;
theInc = 5;
cc = dt << Control Chart(
Sample Size( 100 ),
KSigma( 3 ),
Chart Col( Column( dt, col ), NP( Show Control Limits( 0 ) ) )
);
Report( cc )[AxisBox( 1 )] << Min( theMin ) << Max( theMax ) << inc( theInc ) << Minor Ticks( 0 ) <<
Rotated Labels( "Horizontal" );
Report( cc )[AxisBox( 2 )] << Rotated Labels( "Angled" );
Report( cc )[framebox( 1 )] << DispatchSeg( CustomStreamSeg( 2 ), {Line Color( {0, 175, 208} )} );