Come inserire i contorni specifici?Ciao a tutti.
Ho una domanda sulla creazione del contour plot.
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 )} )
)
);Voglio inserire le specifiche usando il valore nella tabella corrente.
ex) Colonna (dt, age) [4]
Potresti darmi qualche consiglio?
Tabella datiGraficaScriptingRi: Come inserire i contorni specificati usando JSL?Sembra che la tua sintassi sia leggermente fuori posto. Prova qualcosa come:
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 ) )
);
Ri: Come inserire i contorni specificati usando JSL?Grazie al tuo assegno, posso risolvere questo problema!
Grazie.Ri: Come inserire i contorni specificati usando JSL?Caro Ian.
Ho una domanda in più.
Potresti controllare il mio codice?
Non so perché la specifica sia stata corretta quale primo elemento selezionato.
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 )} )
)
);Mi aiuti per favore.
@ian_jmp