Hola,
Estoy escribiendo un script muy simple para usar el Control Graph Builder.
Al ejecutar el script a continuación, tendré 2 gráficos emergentes en dos ventanas diferentes.
Ejemplo que se muestra a continuación:
Control Chart Builder(
Size( 903, 464 ),
Show Control Panel( 0 ),
Variables(
Subgroup( :Name( "MoveOutTime" ) ),
Y( :Current1 )
),
Chart(
Position( 1 ),
Points( Individual Points( 1 ) ),
Limits( Sigma( "Moving Range" ), Zones( 1 ) ),
Warnings( Test Beyond Limits( 1 ) ),
Add Spec Limits( {LSL( 2.3 )} )
),
Chart(
Position( 2 ),
Points( Statistic( "Moving Range on Means" ), Individual Points( 1 ) ),
Limits( Sigma( "Moving Range" ), Zones( 1 ) ),
Warnings( Test Beyond Limits( 1 ) )
),
SendToReport(
Dispatch(
{},
"MoveOutTime",
ScaleBox,
{Min( -0.5 ), Max( 528.5 ), Interval( "Numeric" ), Inc( 0.5 ),
Minor Ticks( 0 )}
),
Dispatch(
{},
"Current1",
ScaleBox,
{Add Ref Line( 2.3, "Solid", "Blue", "LSL", 1 )}
),
Dispatch(
{},
"Current1 Limit Summaries",
OutlineBox,
{OutlineCloseOrientation( "Vertical" )}
)
)
);
Control Chart Builder(
Size( 903, 464 ),
Show Control Panel( 0 ),
Variables(
Subgroup( :Name( "MoveOutTime" ) ),
Y( :Current2 )
),
Chart(
Position( 1 ),
Points( Individual Points( 1 ) ),
Limits( Sigma( "Moving Range" ), Zones( 1 ) ),
Warnings( Test Beyond Limits( 1 ) ),
Add Spec Limits( {LSL( 3.1 )} )
),
Chart(
Position( 2 ),
Points( Statistic( "Moving Range on Means" ), Individual Points( 1 ) ),
Limits( Sigma( "Moving Range" ), Zones( 1 ) ),
Warnings( Test Beyond Limits( 1 ) )
),
SendToReport(
Dispatch(
{},
"MoveOutTime",
ScaleBox,
{Min( -0.5 ), Max( 528.5 ), Interval( "Numeric" ), Inc( 0.5 ),
Minor Ticks( 0 )}
),
Dispatch(
{},
"Current2",
ScaleBox,
{Add Ref Line( 3.1, "Solid", "Blue", "LSL", 1 )}
),
Dispatch(
{},
"Current2 Limit Summaries",
OutlineBox,
{OutlineCloseOrientation( "Vertical" )}
)
)
);
(1) ¿Cómo puedo juntar estos dos gráficos para que ambos puedan aparecer juntos en un JMP Journal?
(2) ¿Qué debo hacer si tengo múltiples parámetros actuales? ¿Cómo debo recorrer todos estos parámetros para que finalmente aparezcan en la misma ventana de un JMP Journal?
Gracias de antemano por el consejo.
1) Puedo pensar en varios enfoques.
- Envía el << Diario mensaje a cada plataforma separada.
- Pon ambas respuestas en el Y papel del código de lanzamiento.
- Coloque el código de inicio separado arriba dentro del Nueva ventana ("Gráficos", ccb1, ccb2) funcionan como argumentos.
2) No he probado este código, pero la idea general es dividir la parte fija (por ejemplo, ccb expr en este caso) y la parte variable (por ejemplo, y arg en este caso). Use expresiones para hacer el código final y luego evaluarlo.
Names Default to Here( 1 );
column = List( /* a list of columns to chart */ );
ccb expr = Expr( Control Chart Builder( /* all arguments except for Y() */ ) );
y arg = Expr( Y() );
For( col = 1, col <= N Items( columns ), col++,
Insert Into( y arg, Column( column[col] ) );
);
Eval(
Insert( ccb expr, Name Expr)( y arg )
);
@markbailey El enfoque es sólido.
Acabo de publicar un Blog que usa esa idea y tiene algunos ejemplos más grandes de gráficos ensamblados en un "tablero"