For 루프 변수 그래프 참조선for 루프를 사용하여 일련의 그래프(총 10개 이상의 그래프)를 생성하고 있습니다. 그러나 여섯 번째 그래프 이후에는 참조선이 그래프에 나타나지 않습니다. 대략 10~11번째 그래프 이후에는 그래프에 다시 기준선이 나타납니다. wait(0)을 추가해 보았습니다. 여러 위치에 있지만 도움이 되지 않았습니다. 저는 다양한 유형의 그래프, 표준 이변량 대 그래프 빌더를 사용해 보았고, 메모리 문제인지 확인하기 위해 원래 데이터 세트의 크기를 줄여 보았습니다. 이러한 시도 중 어느 것도 효과가 없었으며 제안 사항을 찾고 있습니다. 첫 번째 문제보다 문제가 적은 두 번째 문제는 내가 생성하고 출력 창에 저장한 그래프를 닫지 않고 생성된 임시 테이블을 닫는 방법입니다. 테이블 (0)에 대한 링크를 사용해 보았고, 출력 창을 생성한 후 테이블을 닫으려고 했지만 여전히 작동하지 않습니다. 어떤 제안이라도 대단히 감사하겠습니다.
For( w = 1, w <= row_count, w++,
Stmt = CofA_dt10:Parameter[w];
CofA_dt9 << clear column selection;
CofA_dt9 << select where( :Parameter == Eval( Parse( Eval Insert( "Stmt" ) ) ) );
CofA_dt9a = CofA_dt9 << Subset( Output Table( "TempTable" || Char( w ) ), );
Mean_4sigmaUCL = CofA_dt9a:UCL_Line[w];
Mean_4sigmaLCL = CofA_dt9a:LCL_Line[w];
output2 << append(
V List Box(
CofA_dt9a <<
Bivariate(
Y( :test_value ),
X( :shelf_life_start_date ),
SendToReport(
Dispatch(
{},
"Bivariate Fit of test_value By shelf_life_start_date",
OutlineBox,
{Set Title(
"Parameter Value by shelf_life_start_date -" || Eval(
Parse( Eval Insert( "Stmt" ) )
)
)}
),
Dispatch(
{},
"2",
ScaleBox,
{Add Ref Line( Mean_4sigmaUCL, "Solid", "Red", "Mean_4s_UCL", 1 ),
Add Ref Line( Mean_4sigmaLCL, "Solid", "Red", "Mean_4s_LCL" )}
),
Dispatch( {}, "1", ScaleBox, {Label Row( Label Orientation( "Angled" ) )} ),
Dispatch( {}, "test_value", TextEditBox, {Set Text( "Parameter Value" )} ),
Dispatch(
{},
"Bivar Plot",
FrameBox,
{Frame Size( 1018, 423 ), Row Legend(
Flagging,
Color( 1 ),
Color Theme( "JMP Default" ),
Marker( 1 ),
Marker Theme( "Standard" ),
Continuous Scale( 0 ),
Reverse Scale( 1 ),
Excluded Rows( 0 )
)}
)
)
)
)
)
;
); //end row loop
Re: For 루프 변수 그래프 참조선대화형 HTML은 복제 상자에 래핑될 때 일부 상호 작용을 유지하려고 시도하지만 Craige가 지적했듯이 ...
<SPAN class="token comment">"disconnects the clone from the data table"</SPAN>
행 범례를 사용하면 색상과 마커 모양이 테이블에 저장됩니다. clonebox를 사용하여 테이블에 대한 연결이 끊어지면 데스크탑 창이 마커 속성을 유지할 수 있도록 새로운 마커 속성 데이터 구조가 생성되지만 이러한 데이터 구조는 대화형 HTML로 내보내지지 않습니다.
나는 그래프 이미지(데스크톱에서 보이는 대로)가 HTML에 나타나기 때문에 SaveHTML이 HTML에서 올바른 표시를 제공해야 한다는 데 동의합니다.
Graph Builder를 사용하면 마커 색상과 모양이 테이블에 저장되지 않으므로 Graph Builder를 사용하여 동일한 이변량 도표를 작성할 수 있었다면 그래프를 복제 상자에 래핑하는지 여부에 관계없이 마커 색상과 모양을 유지할 수 있어야 합니다. Graph Builder를 사용하면 복제 상자를 전혀 사용할 필요가 없을 수도 있습니다.
~ 존
Re: For 루프 변수 그래프 참조선@John_Powell_JMP HTML 질문에 대한 것입니다.
복제 상자 작업은 실시간 보고서를 정적 표시 상자 세트로 변환합니다. 얼마나 많은 상호 작용을 기대할 수 있는지 잘 모르겠습니다. (아무것도 없다고 생각합니다.) <<Re: For 루프 변수 그래프 참조선
안녕하세요 Craig, << clonebox를 사용하여 의도하지 않은 결과를 하나 발견했습니다. ~에
내 스크립트. 출력을 대화형 HTML로 저장하고 있으며 일부는
HTML을 저장할 때 마커가 검은색 점으로 표시되는 이유
범례에서 사용하는 표준 형식과 비교됩니다. 어찌됐든,
레전드가 비활성화되고 있습니다. 흥미로운 점은 열린 창문에 있는데,
그래프가 올바르게 표시됩니다. html 파일을 열었을 때입니다.
나는 마커가 범례와 일치하지 않는 것을 관찰했습니다. 출력을 다음과 같이 저장하면
일지, 전설도 작동합니다. 사용 범위를 좁혔습니다.
clonebox(주석 처리하면 html이 올바르게 저장됨)
복제 상자를 포맷하는 방법에 대한 많은 문서를 찾을 수 있었습니다.
귀하의 제안이 포함된 스크립트는 아래에 통합되어 있습니다.
For( w = 1, w <= row_count, w++,
Stmt = CofA_dt10:Parameter[w];
Stmt2 = CofA_dt10:Material Parameter[w];
CofA_dt9 << Clear Row States;
CofA_dt9 << select where( :Parameter == Eval( Parse( Eval Insert( "Stmt" ) ) ) );
CofA_dt9a = CofA_dt9 << Subset( Output Table( "TempTable" || Char( w ) ), );
Mean_4sigmaUCL = CofA_dt9a:UCL_Line[1];
Mean_4sigmaLCL = CofA_dt9a:LCL_Line[1];
Mean_data = CofA_dt9a:Name( "Mean(real_value)" )[1];
output2 << append(
V List Box(
(CofA_dt9a << Bivariate(
Y( :test_value ),
X( :received_date ),
SendToReport(
Dispatch(
{},
"Bivariate Fit of test_value By received_date",
OutlineBox,
{Set Title( Eval( Parse( Eval Insert( "Stmt" ) ) ) )}
),
Dispatch(
{},
"2",
ScaleBox,
{Add Ref Line( Mean_4sigmaUCL, "Solid", "Red", "Mean_4s_UCL", 1 ),
Add Ref Line( Mean_4sigmaLCL, "Solid", "Red", "Mean_4s_LCL" ),
Add Ref Line( Mean_data, "Solid", "Green", "Mean" )}
),
Dispatch( {}, "1", ScaleBox, {Label Row( Label Orientation( "Angled" ) )} ),
Dispatch(
{},
"test_value",
TextEditBox,
{Set Text( Eval( Parse( Eval Insert( "Stmt2" ) ) ) )}
),
Dispatch(
{},
"Bivar Plot",
FrameBox,
{Frame Size( 1018, 423 ), Row Legend(
Flagging,
Color( 1 ),
Color Theme( "JMP Default" ),
Marker( 1 ),
Marker Theme( "Standard" ),
Continuous Scale( 0 ),
Reverse Scale( 1 ),
Excluded Rows( 0 )
)}
)
)
))
) << cloneBox
);
Close( CofA_dt9a, nosave );
); //end row loop
이것은 html 파일을 저장하는 스크립트이며, 생성 직후에 제공됩니다.
그래서 클론박스가 왜 출력 창에 영향을 미치는지 알 수 없습니다.
포맷?
output = Tab Box( "EASY Summary", output1, "Trend Graphs", output2 );
output_window = New Window( "F68 CofA Flagging Summary", output );
output_window << Save Interactive html(
path || "FlagSummaryAll" || "
Sigma=" || Char( sigma ) || " Days=" || Char( Days ) || ".html"
);
Re: For 루프 변수 그래프 참조선감사합니다! 이는 두 가지 문제를 모두 해결하는 데 도움이 되었습니다.Re: For 루프 변수 그래프 참조선이런 것을 시도해 보세요
dt = Open( "$sample_data/big class.jmp" );
output2 = V List Box(); // vlist box of all the results
For( w = 1, w <= N Rows( dt ), w++, // for every row in *some* table (the original question uses a different table for this)
Stmt = dt:height[w]; // get some interesting value to subset with and make a subset...
// (This simplied answer is a little bit non-sensical without another table involved--it will make duplicate graphs)
dt << Clear Row States; // I think this is what you wanted, rather than clearing the column selection
dt << select where( dt:height == Stmt );
CofA_dt9a = dt << Subset( Output Table( "TempTable" || Char( w ) ) ); // make a subset
row1weight = CofA_dt9a:weight[1]; // use row 1 of the subset to get values that will
row1age = CofA_dt9a:age[1]; // be visible on the X and Y axes
output2 << append( // collect all the results here
V List Box( // a list of 1 box; bivariate attaches to this vlist rather than making a window
(CofA_dt9a << Bivariate( Y( :weight ), X( :age ),
SendToReport( // the next line has a hyphen that appears to make stmt negative...
Dispatch({},"Bivariate Fit of weight By age",OutlineBox,{Set Title( "Parameter Value by shelf_life_start_date -" || Char( stmt ) )}),
Dispatch( {}, "2", ScaleBox, {Add Ref Line( row1weight, "Solid", "Red", "row 1 weight", 1 )} ),
Dispatch( {}, "1", ScaleBox, {Label Row( Label Orientation( "Angled" ) ), Add Ref Line( row1age, "Solid", "Red", "row 1 age" )} ),
Dispatch({},"Bivar Plot",FrameBox,{Frame Size( 200, 100 )}
)
)
))
) << cloneBox // cloning the V List Box and the bivariate platform disconnects the clone from the data table
);
Close( CofA_dt9a, nosave ); // the subset is not needed after the clone
); //end row loop
Close( dt, nosave );
New Window( "output2", output2 );