¿Cómo ingresar especificar contornos?Hola a todos.
Tengo una pregunta sobre cómo hacer un diagrama de contorno.
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Contour Plot(
X( :height, :weight ),
Y( :age ),
Legend( 2 ),
Show Contours( 1 ),
Show Data Points( 0 ),
Fill Areas( 1 ),
Label Contours( 0 ),
Color Theme( "Blue White Red" ),
Specify Contours( Min( Column( dt, age )[3] ), Max( Column( dt, age )[4] ), N( 10 ) ),
//Specify Contours( Min(0 ), Max(100 ), N( 10 ) ),
SendToReport(
Dispatch(
{},
"1",
),
Dispatch(
{},
"2",
),
Dispatch( {}, "meow", TextEditBox, {Rotate Text( "Horizontal" )} ),
Dispatch(
{},
"Contour Plot Graph",
FrameBox,
{Frame Size( 700, 700 ), Marker Size( 2 ), Marker Drawing Mode( "Normal" ),
Marker Selection Mode( "Unselected Faded" )
}
),
Dispatch( {}, "", AxisBox( 2 ), {Add Axis Label( "-First-" )} ),
Dispatch( {}, "Contour Legend", FrameBox, {Frame Size( 101, 87 )} )
)
);Quiero ingresar especificaciones usando el valor en la tabla actual.
p. ej., columna (dt, edad) [4]
¿Podrías darme algún consejo?
Tabla de datosGráficosScriptingRe: ¿Cómo ingresar especificar contornos usando JSL?Parece que tu sintaxis está ligeramente desviada. Prueba algo como:
dt << Contour Plot(
X( :height, :weight ),
Y( :age ),
Legend( 2 ),
Show Contours( 1 ),
Show Data Points( 0 ),
Fill Areas( 1 ),
Label Contours( 0 ),
Color Theme( "Blue White Red" ),
Specify Contours( Min( Column( dt, "age" )[13] ), Max( Column( dt, "age" )[29] ), N( 10 ) )
);
Re: ¿Cómo ingresar especificar contornos usando JSL?¡Gracias a su cheque, puedo resolver este problema!
Gracias.Re: ¿Cómo ingresar especificar contornos usando JSL?Querido Ian.
Tengo una pregunta más.
¿Podrías comprobar mi código?
No sé por qué se fija la especificación de qué primer elemento seleccionado.
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
win = New Window( "Select Item(s)",
<<MODAL></MODAL> Specify Contours( Min(Column( dt,Eval(xvar))[3]), Max( Column( dt, Eval( xvar))[4]), N( 10 ) ),
SendToReport(
Dispatch(
{},
"1",
),
Dispatch(
{},
"2",
),
Dispatch( {}, "meow", TextEditBox, {Rotate Text( "Horizontal" )} ),
Dispatch(
{},
"Contour Plot Graph",
FrameBox,
{Frame Size( 700, 700 ), Marker Size( 2 ), Marker Drawing Mode( "Normal" ),
Marker Selection Mode( "Unselected Faded" )
}
),
Dispatch( {}, "", AxisBox( 2 ), {Add Axis Label( "-meow-" )} ),
Dispatch( {}, "Contour Legend", FrameBox, {Frame Size( 101, 87 )} )
)
);Por favor, ayúdame.
@ian_jmp