cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm 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