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
Jackie_
Level VI

Graph Builder Caption box not showing up Axis Table mode

Hello,

On JMP 19, trying to add a caption box for mean/std dev on Axis Table, but it's not showing up.

Caption box issue from the previous thread

Jackie__0-1762441388629.png

Thanks,

Jackie

5 REPLIES 5

Re: Graph Builder Caption box not showing up Axis Table mode

Hi @Jackie_, It's not entirely clear what the X axis looks like from the image. Can you confirm that you're graph is something like this?

screencap.gif

Jackie_
Level VI

Re: Graph Builder Caption box not showing up Axis Table mode

@Jed_Campbell 

I tried on this dataset, using parallel merged config, it doesn't show the Stats text..

Here is the code:

dt = Open( "$SAMPLE_DATA/Semiconductor Capability.jmp" );


dt << Graph Builder(
	Size( 834, 588 ),
	Show Control Panel( 0 ),
	Variables(
		X( :PNP2, Combine( "Parallel Merged" ) ),
		X( :NPN1, Position( 1 ), Combine( "Parallel Merged" ) ),
		X( :PNP1, Position( 1 ), Combine( "Parallel Merged" ) ),
		X( :PNP2, Position( 1 ), Combine( "Parallel Merged" ) ),
		X( :NPN2, Position( 1 ), Combine( "Parallel Merged" ) ),
		X( :PNP3, Position( 1 ), Combine( "Parallel Merged" ) )
	),
	Elements(
		Histogram( X( 1 ), X( 5 ), X( 2 ), X( 3 ), X( 6 ), Legend( 6 ) ),
		Caption Box(
			X( 1 ),
			X( 2 ),
			X( 3 ),
			X( 4 ),
			X( 5 ),
			X( 6 ),
			Legend( 7 ),
			Summary Statistic( "Mean" ),
			Location( "Axis Table" )
		)
	),
	SendToReport(
		Dispatch( {}, "", ScaleBox,
			{Min( -262.805650205971 ), Max( 1221.55660377358 ), Inc( 200 ),
			Minor Ticks( 3 )}
		)
	)
);

Jackie__0-1762876942015.png

 

Re: Graph Builder Caption box not showing up Axis Table mode

I'm seeing the same behavior as you. It looks like axis tables don't like multiple variables on the X axis. As a workaround, you can stack the variables you want axis tables for, then it will work as you're intending. Script to do this is below.

Jed_Campbell_0-1762878689610.png

dt = Open( "$SAMPLE_DATA/Semiconductor Capability.jmp" );


/*dt << Graph Builder(
	Size( 834, 588 ),
	Show Control Panel( 0 ),
	Variables(
		X( :PNP2, Combine( "Parallel Merged" ) ),
		X( :NPN1, Position( 1 ), Combine( "Parallel Merged" ) ),
		X( :PNP1, Position( 1 ), Combine( "Parallel Merged" ) ),
		X( :PNP2, Position( 1 ), Combine( "Parallel Merged" ) ),
		X( :NPN2, Position( 1 ), Combine( "Parallel Merged" ) ),
		X( :PNP3, Position( 1 ), Combine( "Parallel Merged" ) )
	),
	Elements(
		Histogram( X( 1 ), X( 5 ), X( 2 ), X( 3 ), X( 6 ), Legend( 6 ) ),
		Caption Box(
			X( 1 ),
			X( 2 ),
			X( 3 ),
			X( 4 ),
			X( 5 ),
			X( 6 ),
			Legend( 7 ),
			Summary Statistic( "Mean" ),
			Location( "Axis Table" )
		)
	),
	SendToReport(
		Dispatch( {}, "", ScaleBox,
			{Min( -262.805650205971 ), Max( 1221.55660377358 ), Inc( 200 ),
			Minor Ticks( 3 )}
		)
	)
);*/

dt2 = dt << Stack(
	columns( :PNP2, :NPN2, :NPN1, :PNP1, :PNP3 ),
	Drop All Other Columns( 1 ),
	Output Table( "Stack of Semiconductor Capability (PNP2 etc.)" )
);

dt2 << Graph Builder(
	Size( 658, 558 ),
	Show Control Panel( 0 ),
	Variables( X( :Label ), Y( :Data ) ),
	Elements(
		Histogram( X, Y, Legend( 4 ) ),
		Caption Box(
			X,
			Y,
			Legend( 5 ),
			Summary Statistic( "Mean" ),
			Summary Statistic 2( "Std Dev" ),
			Location( "Axis Table" )
		)
	),
	SendToReport(
		Dispatch( {}, "Data", ScaleBox,
			{Min( 76.197 ), Max( 758.697 ), Inc( 200 ), Minor Ticks( 3 )}
		),
		Dispatch( {}, "Graph Builder", FrameBox,
			{DispatchSeg(
				Hist Seg( "Histogram (NPN1)" ),
				Bin Span( 3, 0, 4.16666666666667 )
			), DispatchSeg(
				Hist Seg( "Histogram (NPN2)" ),
				Bin Span( 3, 0, 4.16666666666667 )
			), DispatchSeg(
				Hist Seg( "Histogram (PNP1)" ),
				Bin Span( 3, 0, 4.16666666666667 )
			), DispatchSeg(
				Hist Seg( "Histogram (PNP2)" ),
				Bin Span( 3, 0, 4.16666666666667 )
			), DispatchSeg(
				Hist Seg( "Histogram (PNP3)" ),
				Bin Span( 3, 0, 4.16666666666667 )
			)}
		)
	)
);
Jackie_
Level VI

Re: Graph Builder Caption box not showing up Axis Table mode

I am aware of stack, but that's not something I am interested in. I would still prefer a wide table considering the massive dataset we have; stacking will increase the row count by 10x.

Re: Graph Builder Caption box not showing up Axis Table mode

That's understandable. Perhaps this is a Wish List item?

Recommended Articles