cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMP is taking Discovery online, April 16 and 18. Register today and join us for interactive sessions featuring popular presentation topics, networking, and discussions with the experts.
Choose Language Hide Translation Bar
vince_faller
Super User (Alumni)

changing format of caption box in graph builder

I'm trying to make the caption box in graph builder change to a different decimal format without changing the column properties.  

 

 

Names Default to Here(1);
dt = Open("$SAMPLE_DATA\Big Class.jmp");
dt << Graph Builder(
	Size( 570, 496 ),
	Variables( Group X( :sex ), Group Y( :age ), Color( :height ) ),
	Elements(
		Heatmap( Legend( 12 ) ),
		Caption Box( Legend( 4 ), Summary Statistic( "Mean" ), Format("Fixed Dec", 12, 2) )
	),
	SendToReport( Dispatch( {}, "400", LegendBox, {Set Title( "" )} ) )
);

 

Can't seem to get it. Anyone had luck with this?

Vince Faller - Predictum
1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: changing format of caption box in graph builder

The labels are part of the frame boxes within the Mosaic plot, and they can be retrieved (Get), changed and replaced(Set);  Look in the Scripting Index under TextSeg for examples of Get and Set.

Jim

View solution in original post

5 REPLIES 5
jb
jb
Level IV

Re: changing format of caption box in graph builder

Can you please notate which caption box?

 

image.png

vince_faller
Super User (Alumni)

Re: changing format of caption box in graph builder

All of them.  

 

10-3-2017 12-58-24 PM.png

 

Vince Faller - Predictum
txnelson
Super User

Re: changing format of caption box in graph builder

The labels are part of the frame boxes within the Mosaic plot, and they can be retrieved (Get), changed and replaced(Set);  Look in the Scripting Index under TextSeg for examples of Get and Set.

Jim
vince_faller
Super User (Alumni)

Re: changing format of caption box in graph builder

Good to know.  Never used TextSeg.

That seems like more hastle (to find the actual means then appending them, making sure you get the right mean on the right framebox() than I think I'm willing to do vs the problem of changing the column properties.  

Still, would definitely work.  

Vince Faller - Predictum
jb
jb
Level IV

Re: changing format of caption box in graph builder

Ok, I understand the question now