cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

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