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
shaira
Level IV

How change the line width in Graph Builder?

Hi,

I'm making a graph builder script by manually plotting and saving the script in the data table. So far here is what I've got:

 

//User declares Bottom_Var, Left_Var, Top_Var, Right_Var, and Legend_Var
//Legend_Var is the cell grouping whose number may vary

Graph Builder(
	Size( 1173, 638 ),
	Show Control Panel( 0 ),
	Variables(
		X( Bottom_Var ),
		Y( Left_Var ),
		Group X( Top_Var ),
		Group Y( Right_Var),
		Overlay( Legend_Var )
	),
	Elements( Points( X, Y, Legend( 20 ) ), Smoother( X, Y, Legend( 21 ) ) ),
	SendToReport(
		Dispatch( {}, "Graph Builder", FrameBox, {Line Width Scale( 3 )} ),
		Dispatch( {}, "Graph Builder", FrameBox( 2 ), {Line Width Scale( 3 )} ),
		Dispatch( {}, "Graph Builder", FrameBox( 3 ), {Line Width Scale( 3 )} ),
		Dispatch( {}, "Graph Builder", FrameBox( 4 ), {Line Width Scale( 3 )} ),
		Dispatch( {}, "Graph Builder", FrameBox( 5 ), {Line Width Scale( 3 )} ),
		Dispatch( {}, "Graph Builder", FrameBox( 6 ), {Line Width Scale( 3 )} ),
		Dispatch( {}, "Graph Builder", FrameBox( 7 ), {Line Width Scale( 3 )} ),
		Dispatch( {}, "Graph Builder", FrameBox( 8 ), {Line Width Scale( 3 )} ),
		Dispatch( {}, "Graph Builder", FrameBox( 9 ), {Line Width Scale( 3 )} ),
		Dispatch( {}, "Graph Builder", FrameBox( 10 ), {Line Width Scale( 3 )} )
	)
)

Now the problem with this script is that setting the line width is dependent on the number of cell groups. Is there a way to set the line width setting in more elegant way (like the Fit Y by X function)?

 

Thanks,

Shaira

1 REPLY 1
cwillden
Super User (Alumni)

Re: How change the line width in Graph Builder?

Can you elaborate on what the problem is?  Are the smoother lines getting too narrow as the number of levels in the Overlay variable increases?

-- Cameron Willden