cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
Choose Language Hide Translation Bar
View Original Published Thread

script with graphs and splitter box

Françoise
Level V

hello,

I would like to redo this script (source= index of JMP scripts) but with graphics in each box. I tried but the graphs do not appear. does anyone have an example?

Names Default To Here( 1 );
New Window( "Splitter Example",
 box =
 V Splitter Box(
  Size( 640, 480 ),
  H Splitter Box(
   Spacer Box(
    <

cordially

This post originally written in French and has been translated for your convenience. When you reply, it will also be translated back to French .

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 with graphs and splitter box

hello,

 

Thanks for your solution which I used in a Tab page Box.

but I can't get all 4 graphs in my screen. How to get the correct dimensions automatically?

 

undefined

This post originally written in French and has been translated for your convenience. When you reply, it will also be translated back to French .

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