cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

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