Question posée à la communauté JMP : Le générateur de graphiques avec filtre de données local produit un résultat incorrect dans JMP 16 ; il fonctionne dans JMP 14.Salut,
I have the following JSL code that creates a Graph Builder plot inside a For loop. It works correctly in JMP 14 but produces wrong output in JMP 16.
Code JMP 14 (fonctionne correctement) :
</CODE></PRE>
<PRE>gb = Expr(
dt << Graph Builder(
Size( 635, 338 ),
Show Control Panel( 0 ),
Variables( X( :Time Point Months ), Y( :Result ), Overlay( :Batch ) ),
Elements(
Points( X, Y, Legend( 1 ) ),
Line Of Fit( X, Y, Legend( 2 ), Confidence of Fit( 0 ) )
),
Local Data Filter(
invisible,
Add Filter(
columns( :Component, :Batch, :Source Table ),
Where( :Component == numPar[i] ),
Where( :Batch == {cyc, bat}),
Where( :Source Table == dt_name )
)
),
SendToReport(
Dispatch(
{},
"Time Point Months",
ScaleBox,
{Min( -0.1 ), Max( maxvalts ), Inc( 2 ), Minor Ticks( 1 )}
),
Dispatch(
{},
"graph title",
TextEditBox,
{Set Text( numPar[i] || " vs. Time Point" )}
),
Dispatch( {},
"Y title",
TextEditBox,
{Set Text( yTitleText)}
),
Dispatch(
{},
"Result",
ScaleBox,
{Format( "Fixed Dec", 10, 3 ),
Min( Eval( minval )),
Max( Eval( maxval )),
Inc( Eval( (maxval - minval) / 10 ))}
)
)
)
);
col1 << Append(gb);<BR /><BR /><BR /><STRONG>Did the Graph Builder syntax or Local Data Filter behavior change between JMP 14 and JMP 16? How should I rewrite this to work correctly in JMP 16?</STRONG></PRE>
<PRE data-v-136e9b6a=""><CODE class="language-javascript hljs" data-v-136e9b6a="">
Modélisation statistique avancéeAutomatisation et scriptageÉtudes de marché et de consommationOrganisation du contenuExploration et visualisation des donnéesConception des expériencesIngénierie de la qualité et des procédésAnalyse de fiabilitéRe: Question de la communauté JMP : Le générateur de graphiques avec filtre de données local produit un résultat incorrect dans JMP 16 - fonctionne dans JMP 14Créez le graphique manuellement dans JMP16 et copiez le script depuis le générateur de graphiques.
Re: Question de la communauté JMP : Le générateur de graphiques avec filtre de données local produit un résultat incorrect dans JMP 16 - fonctionne dans JMP 14Je trace le graphique manuellement et voici le script : (le résultat du graphique est joint sous le nom « 1 »).
Graph Builder(
Size( 635, 580 ),
Show Control Panel( 0 ),
Variables( X( :Time Point Months ), Y( :Result ), Overlay( :Batch ) ),
Elements(
Points( X, Y, Legend( 1 ) ),
Line Of Fit( X, Y, Legend( 2 ), Confidence of Fit( 0 ) )
),
Local Data Filter(
Close Outline( 1 ),
Add Filter(
columns( :Component, :Batch, :Source Table ),
Where( :Component == "Bacterial Endotoxin" ),
Where( :Source Table == "Subset of Stab_IcoSema_test1_test2_test4" ),
Display( :Component, N Items( 15 ), Find( Set Text( "" ) ) ),
Display( :Batch, N Items( 6 ) ),
Display( :Source Table, N Items( 2 ), "List Display" )
)
),
SendToReport(
Dispatch(
{},
"Time Point Months",
ScaleBox,
{Min( -0.1 ), Max( 19.395 ), Inc( 2 ), Minor Ticks( 1 )}
),
Dispatch( {}, "Result", ScaleBox, {Format( "Fixed Dec", 10, 3 )} ),
Dispatch(
{},
"graph title",
TextEditBox,
{Set Text( "Bacterial Endotoxin vs. Time Point" )}
),
Dispatch(
{},
"Y title",
TextEditBox,
{Set Text( "Content of semaglutide" )}
)
)
);
Le problème est que je souhaite supprimer complètement le filtre de données local, mais lorsque je le supprime, j'obtiens le résultat suivant : capture d'écran 2
Re: Question de la communauté JMP : Le générateur de graphiques avec filtre de données local produit un résultat incorrect dans JMP 16 - fonctionne dans JMP 14Comment puis-je le rendre invisible ?
Re: Question de la communauté JMP : Le générateur de graphiques avec filtre de données local produit un résultat incorrect dans JMP 16 - fonctionne dans JMP 14Vous souhaitez le masquer complètement ? Vous pouvez réduire le cadre de contour, puis définir son titre sur « » par exemple. Cela devrait vous donner un résultat très satisfaisant.
Re: Question de la communauté JMP : Le générateur de graphiques avec filtre de données local produit un résultat incorrect dans JMP 16 - fonctionne dans JMP 14Comment puis-je le réduire ? Que voulez-vous dire ?
dt << Graph Builder(
Size( 635, 338 ),
Show Control Panel( 0 ),
Variables( X( :Time Point Months ), Y( :Result ), Overlay( :Batch ) ),
Elements(
Points( X, Y, Legend( 1 ) ),
Line Of Fit( X, Y, Legend( 2 ), Confidence of Fit( 0 ) )
),
Local Data Filter(
Close Outline( 1 ),
Add Filter(
columns( :Component, :Batch, :Source Table ),
Where( :Component == numPar[i] ),
Where( :Batch == {cyc, bat}),
Where( :Source Table == dt_name )
)
),
SendToReport(
Dispatch(
{},
"Time Point Months",
ScaleBox,
{Min( -0.1 ), Max( maxvalts ), Inc( 2 ), Minor Ticks( 1 )}
),
Dispatch(
{},
"graph title",
TextEditBox,
{Set Text( numPar[i] || " vs. Time Point" )}
),
Dispatch( {},
"Y title",
TextEditBox,
{Set Text( yTitleText)}
),
Dispatch(
{},
"Result",
ScaleBox,
{Format( "Fixed Dec", 10, 3 ), Min( Eval( minval )), Max( Eval( maxval )), Inc( Eval( (maxval - minval) / 10 ))},
)
)
)
Re: Question de la communauté JMP : Le générateur de graphiques avec filtre de données local produit un résultat incorrect dans JMP 16 - fonctionne dans JMP 14Vous cliquez sur le triangle gris pour réduire le cadre de sélection (et masquer les filtres), puis vous laissez le titre vide.
De ceci

à cela

Je ne possède pas JMP16, mais le script est très probablement très proche de ceci.
Graph Builder(
Size(658, 555),
Show Control Panel(0),
Variables(X(:height), Y(:weight)),
Elements(Points(X, Y, Legend(7)), Smoother(X, Y, Legend(8))),
Local Data Filter(
Close Outline(1),
Title(""),
Add Filter(
columns(:name),
Where(
:name == {"ALFRED", "ALICE", "AMY", "BARBARA", "CAROL", "CHRIS",
"CLAY", "DANNY", "DAVID", "EDWARD", "ELIZABETH"}
),
Display(
:name,
N Items(15),
Find(Set Text(""), Contains Terms(1), Contains Phrase(0))
)
)
)
);