"crea tabelle di grafici come questo"Buongiorno
Mi piacerebbe scrivere questa funzione JMP "crea tabelle di grafici come questa", per salvare la mia immagine direttamente nella tabella JMP associata.
Qualcuno può aiutarmi
Ri: "crea una tabella di grafici come questa"Questo esempio fa il lavoro uno alla volta perché sembra che potresti avere dei requisiti specifici su quali dati vuoi conservare.
dt = Open( "$sample_data/big class.jmp" );
picDt = New Table( "dist pics", New Column( "pics", Expression, "None", Set Values( {} ),Set Display Width( 250 ) ) );
ages = {14, 16, 17};
For( j = 1, j <= N Items( ages ), j++,
dt << Select Where( dt:age == ages[j] );
subsetDt = dt << subset( output table name( Char( ages[j] ) ) );
dist = subsetDt << Distribution(
Continuous Distribution( Column( subsetDt:weight ), Quantiles( 0 ), Summary Statistics( 0 ), Outlier Box Plot( 0 ) )
);
pic = (Report( dist )[Outline Box( "weight" )]) << getpicture;
dist << closewindow();
Close( subsetDt, "nosave" );
picDt << addrows( 1 );
picDt:pics[j] = pic;
);
picDt<<SET cell="" height=""></SET>
Three distribution pictures in a tableTre immagini di distribuzione in una tabella
Usa le variabili JSL per tenere traccia delle tabelle: dt, subsetDt, picDt. Spesso JSL ha bisogno di essere specifico riguardo al tavolo quando ne viene usato più di uno.
Ri: "crea una tabella di grafici come questa"in oder per meglio soppesare il problema. riporto parte del mio script:
// the entire loop scan a table and for each subchart create graph//
For( j = 1, j <= N Items( chart_title ), j++,
selectDT[1] << Select Where( :SPC_Chart == chart_title[j] );
display = selectDT[1] << subset( output table name( chart_title[j] ) );
display( j ) << Get name;
test_CTRL; // this is an expression that make some graphs
);
quindi, vorrei caputurare il grafico creato da test_CTRL e salvarlo in una tabella dati usando crea tabelle di grafici come questo
/*New Table( "Chart",
Add Rows( 1 ),
New Column( "P", Expression, "None", Set Values( {New Image( Char To Blob( a ), "png" )} ) ),
New Column( "Y", Character, "Nominal", Set Values( chart_title[j] ) )
)*/
);