cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
Choose Language Hide Translation Bar
hogi
Level XII

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 XII

Re: JSL: change drawing order

Thanks @jthi  : )