Quando eseguo lo script seguente, i grafici vengono prodotti per ogni campione, tuttavia la casella di testo stampa sampleName invece di stampare effettivamente il valore del nome del campione. Come posso aggirare questo problema?
Grazie!
// Create a new window with variability charts for each sample name
New Window("whiteshirts - Variability Chart",
V List Box(
Current Data Table(summaryTable);
For Each Row(
summaryTable,
sampleName = Column(summaryTable, "SAMPLE_NAME")[Row()];
grandMin = Column(summaryTable, "Min(LAB_L)")[Row()];
grandMax = Column(summaryTable, "Max(LAB_L)")[Row()];
Print(sampleName, grandMin, grandMax);
/*Text Box( "Where(:SAMPLE_NAME == " || char(sampleName) || ")", <<SET wrap=""></SET>
Edit 2024-09-05 jthi: added jsl formatting Il testo utilizzato nel filtro non è in fase di valutazione, quindi verrà lasciato come sampleName. Ecco un modo in cui potresti valutarlo
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
Column(dt, 2) << Set Name("shirt");
Column(dt, 3) << Set Name("SAMPLE_NAME");
Column(dt, 4) << Set Name("LAB_L");
dt_summary = dt << Summary(
Group(:SAMPLE_NAME),
Min(:LAB_L),
Max(:LAB_L),
Freq("None"),
Weight("None"),
Link to original data table(0),
output table name("Summary of Big Class grouped by SAMPLE_NAME")
);
nw = New Window("whiteshirts - Variability Chart",
V List Box(
For Each Row(
dt_summary,
sampleName = Column(dt_summary, "SAMPLE_NAME")[Row()];
grandMin = Column(dt_summary, "Min(LAB_L)")[Row()];
grandMax = Column(dt_summary, "Max(LAB_L)")[Row()];
Print(sampleName, grandMin, grandMax);
/*Text Box( "Where(:SAMPLE_NAME == " || char(sampleName) || ")", <<SET wrap=""></SET>
<P><SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1725536855554.png" style="width: 400px;"><span class="lia-inline-image-display-wrapper" image-alt="jthi_0-1725536855554.png" style="width: 190px;"><img src="https://us.v-cdn.net/6038925/uploads/images/67975i8C914B0F4F8B2309/jthi_0-1725536855554.png" role="button" title="jthi_0-1725536855554.png" alt="jthi_0-1725536855554.png" /></span></SPAN></P>
<P> </P>