cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMPĀ® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
FranƧoise
Level V

script avec graphs et splitter box

bonjour,

j'aimerais refaire ce script (source= index des scripts JMP) mais avec des graphiques dans chaque case. j'ai essayƩ mais les graphiques ne s'affichent pas. est-ce quelqu'un a un exemple?

Names Default To Here( 1 );
New Window( "Splitter Example",
	box =
	V Splitter Box(
		Size( 640, 480 ),
		H Splitter Box(
			Spacer Box(
				<<Set Fill( 1 );
				<<Color( RGB Color( 9, 112, 84 ) );
			),
			Spacer Box(
				<<Set Fill( 1 );
				<<Color( RGB Color( 255, 222, 0 ) );
			)
		),
		H Splitter Box(
			Spacer Box(
				<<Set Fill( 1 );
				<<
				Color( RGB Color( 101, 153, 255 ) );
			),
			Spacer Box(
				<<Set Fill( 1 );
				<<Color( RGB Color( 255, 153, 0 ) );
			)
		)
	)
);

cordialement

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: script avec graphs et splitter box

Without seeing any examples what you have tried it is difficult to give advice. Below is example with Graph Builder and splitter boxes

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

New Window("Splitter Example",
	box = V Splitter Box(
		Size(640, 480),
		H Splitter Box(
			dt << Graph Builder(
				Show Control Panel(0),
				Variables(X(:weight), Y(:height)),
				Elements(Points(X, Y), Smoother(X, Y))
			),
			dt << Graph Builder(
				Show Control Panel(0),
				Variables(X(:height), Y(:weight)),
				Elements(Points(X, Y), Smoother(X, Y))
			)
		),
		H Splitter Box(
			dt << Graph Builder(
				Show Control Panel(0),
				Variables(X(:sex), Y(:weight)),
				Elements(Points(X, Y), Smoother(X, Y))
			),
			dt << Graph Builder(
				Show Control Panel(0),
				Variables(X(:age), Y(:weight)),
				Elements(Points(X, Y), Smoother(X, Y))
			)
		)
	)
);

jthi_0-1673982004599.png

 

-Jarmo

View solution in original post

3 REPLIES 3
jthi
Super User

Re: script avec graphs et splitter box

Without seeing any examples what you have tried it is difficult to give advice. Below is example with Graph Builder and splitter boxes

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

New Window("Splitter Example",
	box = V Splitter Box(
		Size(640, 480),
		H Splitter Box(
			dt << Graph Builder(
				Show Control Panel(0),
				Variables(X(:weight), Y(:height)),
				Elements(Points(X, Y), Smoother(X, Y))
			),
			dt << Graph Builder(
				Show Control Panel(0),
				Variables(X(:height), Y(:weight)),
				Elements(Points(X, Y), Smoother(X, Y))
			)
		),
		H Splitter Box(
			dt << Graph Builder(
				Show Control Panel(0),
				Variables(X(:sex), Y(:weight)),
				Elements(Points(X, Y), Smoother(X, Y))
			),
			dt << Graph Builder(
				Show Control Panel(0),
				Variables(X(:age), Y(:weight)),
				Elements(Points(X, Y), Smoother(X, Y))
			)
		)
	)
);

jthi_0-1673982004599.png

 

-Jarmo
FranƧoise
Level V

Re: script avec graphs et splitter box

bonjour,

 

merci pour votre solution que j'ai utilisƩ dans un Tab page Box.

mais je n'arrive pas Ć  avoir les 4 graphiques dans mon Ć©cran. Comment faire pour avoir les bonnes dimensions automatiquement?

 

Capture splitter box.JPG

txnelson
Super User

Re: script avec graphs et splitter box

The 

Size(640, 480),

is what is changing the overall size of the outside V Splitter Box.  Are you specifying a size for the overall or for the individual graphs.  That should allow you to adjust what is displayed on the screen.

Jim