JSL : Comment ajouter un graphique à une fenêtre existanteSalut, j'utilise JSL pour tracer avec le constructeur de graphes.
Chaque graphique est généralement créé dans une fenêtre séparée qui ouvre trop de fenêtres.
Je veux mettre chaque graphique dans la même fenêtre puis fermer la nouvelle fenêtre créée.
Voici mon brouillon jsl, quelqu'un peut-il m'aider à le faire fonctionner?
Merci.
WW1 = New Window( "graph1", Graph Builder() );
Window( "graph1" ) << Close Window();
WW2 = New Window( "graph2", Graph Builder() );
Window( "graph2" ) << Close Window();
WW3 = New Window( "graph3", Graph Builder() );
Window( "graph3" ) << Close Window();
Re : JSL : comment ajouter un graphique à une fenêtre existanteSalut @Stokes ,
@txnelson et @Craige_Hales donné de bons exemples. une autre façon de le faire est de commencer avec une seule fenêtre. si vous avez une table de données ouverte, essayez d'utiliser ce script. une fois que vous avez créé les graphiques souhaités dans cette fenêtre, vous pouvez enregistrer le script à partir du tracé.
New window ("lots of graphs",
v list box (
Graph Builder(),
Graph Builder(),
Graph Builder(),
Graph Builder(),
Graph Builder(),
Graph Builder(),
)
);
Re : JSL : comment ajouter un graphique à une fenêtre existanteMerci pour l'aide.
Je vais essayer de mettre cela avec mes scripts.
@txnelson a écrit:
Jetez un oeil à cet exemple.Il crée une fenêtre avec 20 graphiques définis pour elle, sans création de graphiques supplémentaires
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );
nw = New Window( "graphs", myvlb = V List Box() );
colNamesList = dt << get column names( continuous, string );
For( i = 1, i <= 20, i++,
myvlb << append( oneway( x( :site ), y( Column( colNamesList[i] ) ) ) )
);
Re : JSL : comment ajouter un graphique à une fenêtre existanteJetez un oeil à cet exemple.Il crée une fenêtre avec 20 graphiques définis pour elle, sans création de graphiques supplémentaires
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );
nw = New Window( "graphs", myvlb = V List Box() );
colNamesList = dt << get column names( continuous, string );
For( i = 1, i <= 20, i++,
myvlb << append( oneway( x( :site ), y( Column( colNamesList[i] ) ) ) )
);
Re : JSL : comment ajouter un graphique à une fenêtre existanteMerci pour la solution, pour une raison quelconque, cela ne fonctionne pas dans mon script.
Pouvez-vous aider à modifier en fonction de mon script ci-dessous ?
Je trace plus de 200 graphiques qui ne peuvent être réalisés qu'avec le constructeur de graphiques.
J'espère donc ajouter le graphique à un même graphique de fenêtre, puis fermer la fenêtre du générateur de graphique après le traçage.
Sinon, je finis par ouvrir 200 fenêtres.
WW1 <SPAN class="token operator">=</SPAN> <SPAN class="token function">New Window</SPAN><SPAN class="token punctuation">(</SPAN> <SPAN class="token string">"graph1"</SPAN><SPAN class="token punctuation">,</SPAN> Graph Builder<SPAN class="token punctuation">(</SPAN><SPAN class="token punctuation">)</SPAN> <SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">;</SPAN>
Window<SPAN class="token punctuation">(</SPAN> <SPAN class="token string">"graph1"</SPAN> <SPAN class="token punctuation">)</SPAN> <SPAN class="token operator"><</SPAN><SPAN class="token operator"><</SPAN><SPAN class="token messages"> Close Window</SPAN><SPAN class="token punctuation">(</SPAN><SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">;</SPAN>
WW2 <SPAN class="token operator">=</SPAN> <SPAN class="token function">New Window</SPAN><SPAN class="token punctuation">(</SPAN> <SPAN class="token string">"graph2"</SPAN><SPAN class="token punctuation">,</SPAN> Graph Builder<SPAN class="token punctuation">(</SPAN><SPAN class="token punctuation">)</SPAN> <SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">;</SPAN>
Window<SPAN class="token punctuation">(</SPAN> <SPAN class="token string">"graph2"</SPAN> <SPAN class="token punctuation">)</SPAN> <SPAN class="token operator"><</SPAN><SPAN class="token operator"><</SPAN><SPAN class="token messages"> Close Window</SPAN><SPAN class="token punctuation">(</SPAN><SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">;</SPAN>
WW3 <SPAN class="token operator">=</SPAN> <SPAN class="token function">New Window</SPAN><SPAN class="token punctuation">(</SPAN> <SPAN class="token string">"graph3"</SPAN><SPAN class="token punctuation">,</SPAN> Graph Builder<SPAN class="token punctuation">(</SPAN><SPAN class="token punctuation">)</SPAN> <SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">;</SPAN>
Window<SPAN class="token punctuation">(</SPAN> <SPAN class="token string">"graph3"</SPAN> <SPAN class="token punctuation">)</SPAN> <SPAN class="token operator"><</SPAN><SPAN class="token operator"><</SPAN><SPAN class="token messages"> Close Window</SPAN><SPAN class="token punctuation">(</SPAN><SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">;</SPAN>
@txnelson a écrit:
Voici deux façons d'avoir plusieurs sorties dans une seule fenêtre.Il y a aussi d'autres moyens
names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");
nw=new window("Example 1",
bivariate(x(:height), y(:weight)),
oneway(x(:sex),y(:weight))
);
nw2=new window("Example 2");
nw2<<APPEND></APPEND>
Re : JSL : comment ajouter un graphique à une fenêtre existanteJ'ai utilisé le journal auparavant, mais le journal gèlera le graphique, ce qui signifie que je ne peux plus sélectionner les données dans le graphique, cela ressemble plus à une image.
Merci.
@Craige_Hales a écrit:
La fenêtre du journal pourrait également être une solution. Envoyez la commande <
Re : JSL : comment ajouter un graphique à une fenêtre existanteLa fenêtre du journal pourrait également être une solution. Envoyez la commande <
Re : JSL : comment ajouter un graphique à une fenêtre existanteVoici deux façons d'avoir plusieurs sorties dans une seule fenêtre.Il y a aussi d'autres moyens
names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");
nw=new window("Example 1",
bivariate(x(:height), y(:weight)),
oneway(x(:sex),y(:weight))
);
nw2=new window("Example 2");
nw2<<APPEND></APPEND>