Salut,
J'ai une question sur plusieurs graphiques dans une seule fenêtre (pas dans le générateur de graphiques).
J'aimerais avoir plusieurs graphiques linéaires ayant chacun des axes x et y (comme la figure ci-dessous - en fait 3 colonnes et 4 lignes) - En fait, ce type de graphiques peut être généré en utilisant le mode « Ajuster Y par X ». Cependant, il ne peut pas tracer de telles lignes.

Je me souviens que l'option "V List Box" ou "H List Box" dans les scripts pouvait faire cela. Cependant, je ne m'en souviens pas complètement et même je n'ai trouvé aucune information à ce sujet en recherchant sur Google.
Puis-je le faire en mode « Graph Builder » ?
En utilisant Boîte de programmation avec N Col(2) est probablement plus facile pour quelque chose comme ça
Names Default To Here(1);
dt = open("$SAMPLE_DATA/Big Class.jmp");
new window("",
Lineup Box(N Col(2),
dt << Graph Builder(
Variables(X(:weight), Y(:height), Overlay(:sex)),
Elements(Points(X, Y, Legend(9)), Line Of Fit(X, Y, Legend(11)))
),
dt << Graph Builder(
Variables(X(:weight), Y(:height), Overlay(:sex)),
Elements(Points(X, Y, Legend(9)), Line Of Fit(X, Y, Legend(11)))
),
dt << Graph Builder(
Variables(X(:weight), Y(:height), Overlay(:sex)),
Elements(Points(X, Y, Legend(9)), Line Of Fit(X, Y, Legend(11)))
),
dt << Graph Builder(
Variables(X(:weight), Y(:height), Overlay(:sex)),
Elements(Points(X, Y, Legend(9)), Line Of Fit(X, Y, Legend(11)))
)
);
);
Vous pouvez également consulter Combiner Windows à partir du menu Fenêtre.
J'ai créé mon propre script (à titre d'exemple) basé exactement sur ce que je voulais en utilisant « V List Box » et « H List Box ».
Le script ci-dessous peut être exécuté lorsque vous ouvrez "$SAMPLE_DATA/Big Class.jmp".
New Window( "Run Data",
H List Box(
V List Box(
Graph Builder(
Size( 400, 350 ),
Show Control Panel( 0 ),
Variables( X( :weight ), Y( :height ), Overlay( :sex ), Color( :name ) ),
Elements( Line( X, Y, Legend( 5 ) ), Points( X, Y, Legend( 6 ) ) ),
SendToReport(
Dispatch(
{},
"Graph Builder",
OutlineBox,
{Set Title( "weight" ), Image Export Display( Normal )}
),
Dispatch( {}, "height", ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),
Dispatch( {}, "weight", ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),
Dispatch( {}, "graph title", TextEditBox, {Set Text( "" )} )
)
)
),
V List Box(
Graph Builder(
Size( 400, 350 ),
Show Control Panel( 0 ),
Variables( X( :height ), Y( :weight ), Overlay( :sex ), Color( :name ) ),
Elements( Line( X, Y, Legend( 5 ) ), Points( X, Y, Legend( 6 ) ) ),
SendToReport(
Dispatch(
{},
"Graph Builder",
OutlineBox,
{Set Title( "height" ), Image Export Display( Normal )}
),
Dispatch( {}, "weight", ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),
Dispatch( {}, "height", ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),
Dispatch( {}, "graph title", TextEditBox, {Set Text( "" )} )
)
)
),
),
H List Box(
V List Box(
Graph Builder(
Size( 400, 350 ),
Show Control Panel( 0 ),
Variables( X( :age ), Y( :height ), Overlay( :sex ), Color( :name ) ),
Elements( Line( X, Y, Legend( 5 ) ), Points( X, Y, Legend( 6 ) ) ),
SendToReport(
Dispatch(
{},
"Graph Builder",
OutlineBox,
{Set Title( "age" ), Image Export Display( Normal )}
),
Dispatch( {}, "height", ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),
Dispatch( {}, "age", ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),
Dispatch( {}, "graph title", TextEditBox, {Set Text( "" )} )
)
)
),
V List Box(
Graph Builder(
Size( 400, 350 ),
Show Control Panel( 0 ),
Variables( X( :height ), Y( :age ), Overlay( :sex ), Color( :name ) ),
Elements( Line( X, Y, Legend( 5 ) ), Points( X, Y, Legend( 6 ) ) ),
SendToReport(
Dispatch(
{},
"Graph Builder",
OutlineBox,
{Set Title( "height" ), Image Export Display( Normal )}
),
Dispatch( {}, "age", ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),
Dispatch( {}, "height", ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),
Dispatch( {}, "graph title", TextEditBox, {Set Text( "" )} )
)
)
),
)
);