그래프 빌더 상자의 JSL 스크립트는 웨이퍼 번호에 대해 모든 열을 플롯합니다.안녕하세요. 웨이퍼 번호에 대한 데이터(여러 매개변수)를 플롯하려고 합니다. 분포 그래프에 대한 커뮤니티의 스크립트를 찾았습니다. 그래서 Distribution 함수를 Graph Builder 함수로 대체하여 수정했습니다. 그러나 보고서에는 모든 그래프 대신 하나의 그래프만 표시되었습니다. 이 스크립트에 대해 조언을 드릴 수 있나요? 감사합니다.
dt = Current Data Table ();
// Get all of the continuous data columns
colNames = dt << get column names( string, continuous );
// Create the JSL to create the script
theExpr = "Graph Builder(
Size( 1414, 795 ),
Show Control Panel( 0 ),
Variables( X( :WF_NUM ), Y( colNames[1] ), Color( :WF_NUM ) ),
Elements( Box Plot( X, Y, Legend( 7 ) ) )
);
)";
For( i = 1, i <= N Items( colNames ), i++,
theExpr = theExpr || ", Graph Builder(
Size( 1414, 795 ),
Show Control Panel( 0 ),
Variables( X( :WF_NUM ), Y(colNames[" || Char( i ) || "] ), Color( :WF_NUM ) ),
Elements( Box Plot( X, Y, Legend( 7 ) ) )
)");
// place the closing ")" to complete the command string
theExpr = theExpr || ");";
// Run the created JSL
Eval(Parse(theExpr));
도움을 주셔서 감사합니다.
도미니코
대량 맞춤화Re: 그래프 빌더 상자의 JSL 스크립트는 웨이퍼 번호에 대해 모든 열을 플롯합니다.도움을 주셔서 감사합니다 @txnelson
세부 사항과 코드로 답변을 부탁드립니다.
Re: 그래프 빌더 상자의 JSL 스크립트는 웨이퍼 번호에 대해 모든 열을 플롯합니다.수행해야 할 작업은 그래프 생성을 New Window() 함수 내에 배치하는 것입니다.
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );
// Change the name of the Wafer column to match the name used
// in the Graph Builder code
dt:wafer << set name( "WF_NUM" );
colNames = dt << get column names( string, continuous );
nw = New Window( "Graphs",
// Since there are 128 columns that could be plotted, the code has been
// modified to just produce 3 of the plots. The commented out code
// should replace the "i <= 3, i++," to plot all graphs
For( i = 1, i <= 3, i++, // N Items( colNames ), i++,
dt << Graph Builder(
Size( 1414, 795 ),
Show Control Panel( 0 ),
Variables(
X( :WF_NUM ),
Y( As Column( dt, colNames[i] ) ),
Color( :WF_NUM )
),
Elements( Box Plot( X, Y, Legend( 7 ) ) )
),
);
);Re: 그래프 빌더 상자의 JSL 스크립트는 웨이퍼 번호에 대해 모든 열을 플롯합니다.안녕하세요 @txnelson ,
당신의 답변에 감사드립니다.
그래프는 수정된 코드로 그려졌습니다. 수정된 코드에 관한 추가 질문입니다. 분포 그래프에 대한 커뮤니티의 참조 코드를 사용했을 때 모든 그래프가 하나의 보고서로 요약되어 파워포인트로 쉽게 내보낼 수 있었습니다. 요약된 그래프를 단일 보고서로 단순화한 코드에 어떤 추가 줄이 필요한지 물어봐도 될까요?
도움을 주셔서 감사합니다.
도미니코
Re: 그래프 빌더 상자의 JSL 스크립트는 웨이퍼 번호에 대해 모든 열을 플롯합니다.제공한 JSL을 단순화하여 원하는 차트를 생성할 수 있습니다.다음은 코드 수정입니다.
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );
// Change the name of the Wafer column to match the name used
// in the Graph Builder code
dt:wafer << set name( "WF_NUM" );<BR />colNames = dt << get column names( string, continuous );
// Since there are 128 columns that could be plotted, the code has been
// modified to just produce 3 of the plots. The commented out code
// should replace the "i <= 3, i++," to plot all graphs
For( i = 1, i <= 3, i++, // N Items( colNames ), i++,
dt << Graph Builder(
Size( 1414, 795 ),
Show Control Panel( 0 ),
Variables(
X( :WF_NUM ),
Y( As Column( dt, colNames[i] ) ),
Color( :WF_NUM )
),
Elements( Box Plot( X, Y, Legend( 7 ) ) )
)
);
