cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

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

Graph Builder: change width line

Hello everyone,
I’d be happy to know how can I change in the script the line width the graph builder which contains more than one axis.

GALIT_0-1639490005478.png

 

gb = Graph Builder(
	Size( 568, 438 ),
	Show Control Panel( 0 ),
	Variables( X( :age ), Y( :height ), Y( :weight ) ));
	
gbR = Report( gb )[Graph Builder Box( 1 )];
gbR << Add Element( 1,1, {Type( "Smoother" ), X, Y, Legend( 3 ),Confidence of Fit( 0 )} );
gbR << Add Element( 1,2, {Type( "smoother" ), X, Y, Legend( 2 ),Confidence of Fit( 0 )} );

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Graph Builder: change width line

I'm not sure if this will work in all cases. But you can modify widthj of the line in FrameBoxes, to get all frameboxes you can use XPath.

Names Default To Here(1);
Open("$SAMPLE_DATA/Big Class.jmp");
gb = Graph Builder(Size(568, 438), Show Control Panel(0), Variables(X(:age), Y(:height), Y(:weight)));
	
gbR = Report(gb)[Graph Builder Box(1)];
gbR << Add Element(1, 1, {Type("Smoother"), X, Y, Legend(3), Confidence of Fit(0)});
gbR << Add Element(1, 2, {Type("smoother"), X, Y, Legend(2), Confidence of Fit(0)});

fbs = gb << XPath("//FrameBox");

For(i = 1, i <= N Items(fbs), i++,
	frame = fbs[i];
	seg = (frame << Find Seg("Line Seg"));
	seg << Set Line Width(6);	
);

-Jarmo

View solution in original post

1 REPLY 1
jthi
Super User

Re: Graph Builder: change width line

I'm not sure if this will work in all cases. But you can modify widthj of the line in FrameBoxes, to get all frameboxes you can use XPath.

Names Default To Here(1);
Open("$SAMPLE_DATA/Big Class.jmp");
gb = Graph Builder(Size(568, 438), Show Control Panel(0), Variables(X(:age), Y(:height), Y(:weight)));
	
gbR = Report(gb)[Graph Builder Box(1)];
gbR << Add Element(1, 1, {Type("Smoother"), X, Y, Legend(3), Confidence of Fit(0)});
gbR << Add Element(1, 2, {Type("smoother"), X, Y, Legend(2), Confidence of Fit(0)});

fbs = gb << XPath("//FrameBox");

For(i = 1, i <= N Items(fbs), i++,
	frame = fbs[i];
	seg = (frame << Find Seg("Line Seg"));
	seg << Set Line Width(6);	
);

-Jarmo

Recommended Articles