cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • DownloadSemiconductor Toolkit: Tools to create wafer maps, add wafer geometry to graphics, explore die defects & compare wafers.
  • Discovery Summit 2026: Early User Edition - September 23-24.Register. It's free.
  • See how to design an experiment, explore factor-response relationships, assess tradeoffs, and ID best settings. Register for Sep. 11 Mastering JMP.

Discussions

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

Running another JSL over Hover Labels on a graph failed

Runs another JSL(test.jsl) on the graph by Hover Labels,

frame = (p1 << report)[FrameBox( 1 )];
frame << Set Graphlet( Picture( loader = Include( "D:\0\test.jsl" ) ), Title( "Pie Preset" ), Reapply( 1 ) );

but does not finish.The record in the log is

Object 'LegendBox' does not recognize the message 'Position'; perhaps you mean one of these:  <<Legend Position <<Orientation <<Paste <<Get Annotation <<Add Polygon Annotation <<Add Pin Annotation <<Save Presentation <<Set Window ID <<Size Window <<Get Window Position <<Print Window <<Close Window <<Set Window Icon <<Set Min Size <<UI Only.

However, if run test.jsl directly, it will get the correct result.
Do not know the specific reason?

Thanks!

2 REPLIES 2
lala
Level IX

回复: Running another JSL over Hover Labels on a graph failed

2024-02-28_21-24-42.png2024-02-28_21-24-42.png

jthi
Super User

Re: Running another JSL over Hover Labels on a graph failed

Very difficult to say without knowing what test.jsl has or how rest of your script is written. This does for example open the caption correctly (and does show how aggressive hover label is to trigger)

Names Default To Here(1);
::myglobal = 1;

dt = Open("$SAMPLE_DATA/Big Class Families.jmp");

gb = dt << Graph Builder(
	Show Control Panel(0),
	Variables(X(:age), Y(:weight)),
	Elements(Bar(X, Y, Legend(7)))
);

myscript = JSL Quote(
Names Default To Here(1);
Caption(Char(::myglobal++));
);

Save Text File("$TEMP/testscript.jsl", myscript);

frame = (gb << report)[FrameBox(1)];
frame << Set Graphlet(
	Picture(
		Include("$TEMP/testscript.jsl");
	),
	Reapply(1)
);
-Jarmo

Recommended Articles