cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • See how to use the JMP Marketplace – Free tools to expand JMP capabilities. Register. July 10, 2 pm US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
hogi
Level XIII

JSL: change drawing order

Is there a JSL command to change the order of segs?

 

hogi_0-1730116079348.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: JSL: change drawing order

There is Reorder Segs which might work

Names Default To Here(1);
dt = Open("$SAMPLE_DATA\Big Class.jmp");
gb = Graph Builder(
	Size(534, 456),
	Show Control Panel(0),
	Variables(X(:height), Y(:weight)),
	Elements(Points(X, Y, Legend(6)), Bar(X, Y, Legend(7))),
	SendToReport(
		Dispatch({}, "weight", ScaleBox,
			{Label Row({Show Major Grid(1), Show Minor Grid(1)})}
		)
	)
);
For(blink = 1, blink < 4, blink++,
	Wait(.5);
	(gb << report)[FrameBox(1)] << reorder segs({4, 3, 2, 1});
);

Depending on elements you wish to move there might also be other options

-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: JSL: change drawing order

There is Reorder Segs which might work

Names Default To Here(1);
dt = Open("$SAMPLE_DATA\Big Class.jmp");
gb = Graph Builder(
	Size(534, 456),
	Show Control Panel(0),
	Variables(X(:height), Y(:weight)),
	Elements(Points(X, Y, Legend(6)), Bar(X, Y, Legend(7))),
	SendToReport(
		Dispatch({}, "weight", ScaleBox,
			{Label Row({Show Major Grid(1), Show Minor Grid(1)})}
		)
	)
);
For(blink = 1, blink < 4, blink++,
	Wait(.5);
	(gb << report)[FrameBox(1)] << reorder segs({4, 3, 2, 1});
);

Depending on elements you wish to move there might also be other options

-Jarmo
hogi
Level XIII

Re: JSL: change drawing order

Thanks @jthi  : )

Recommended Articles