cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
hogi
Level XI

Talking to Display boxes

The auto-generated script to generate this plot 

hogi_0-1691164695780.png

is

 

Graph Builder(
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) ),
	SendToReport( Dispatch( {}, "X title", TextEditBox, {Set Text( "xxx" )} ) )
)

 

- Why "X title"?

 

- What is a robust way to talk later with the X axis title.

 

current Report()[TextEditBox(3)]

seems to work - but is there something with "X axis" included in the command?

2 REPLIES 2
jthi
Super User

Re: Talking to Display boxes

Not sure if there are any "direct" ways of accessing that axis title, but you can use Dispatch (which to my knowledge should be avoided...)

Names Default To Here(1); 

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

gb = dt << Graph Builder(
	Size(520, 176),
	Show Control Panel(0),
	Variables(X(:height), Y(:weight), Overlay(:sex)),
	Elements(Points(X, Y, Legend(13)), Smoother(X, Y, Legend(14)))
);

Report(gb) << Dispatch(
	{},
	"X title",
	TextEditBox,
	{Text Color("Red"), Set Base Font("Heading"), Font Color(3)}
);
-Jarmo
hogi
Level XI

Re: Talking to Display boxes

yes, right, these 2 considerations have led me to write the question.