cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-35242%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EFrameBox%20%EB%82%B4%EC%97%90%EC%84%9C%20TextSeg%EC%9D%98%20x%2Fy%20%EC%9C%84%EC%B9%98%EB%A5%BC%20%EC%A7%80%EC%A0%95%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%B4%20%EC%9E%88%EC%8A%B5%EB%8B%88%EA%B9%8C%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-35242%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%2FBig%20Class.jmp%22%20)%3B%0A%0AGraph%20Builder(%0A%20Show%20Control%20Panel(%200%20)%2C%0A%20Variables(%20X(%20%3Aheight%20)%2C%20Y(%20%3Aweight%20)%20)%2C%0A%20Elements(%0A%20%20Points(%20X%2C%20Y%2C%20Legend(%201%20)%20)%2C%0A%20%20Line%20Of%20Fit(%0A%20%20%20X%2C%0A%20%20%20Y%2C%0A%20%20%20Legend(%204%20)%2C%0A%20%20%20Degree(%20%22Cubic%22%20)%2C%0A%20%20%20Confidence%20of%20Prediction(%201%20)%2C%0A%20%20%20Root%20Mean%20Square%20Error(%201%20)%2C%0A%20%20%20Equation(%201%20)%0A%20%20)%0A%20)%2C%0A%20SendToReport(%0A%20%20Dispatch(%0A%20%20%20%7B%7D%2C%0A%20%20%20%22Graph%20Builder%22%2C%0A%20%20%20FrameBox%2C%0A%20%20%20%7BDispatchSeg(%0A%20%20%20%20TextSeg(%201%20)%2C%0A%20%20%20%20Set%20Text(%0A%20%20%20%20%20%22weight%20%3D%20-3850%20%2B%20197.7*height%20-%203.343*height%C2%B2%20%2B%200.01906*height%C2%B3%0ARMSE%3A%2015.77%20%20Tallest%3A%20Lawrence%22%0A%20%20%20%20)%0A%20%20%20)%7D%0A%20%20)%0A%20)%0A)%3B%0A%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-35242%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3E%EC%9E%90%EB%8F%99%ED%99%94%20%EB%B0%8F%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8C%85%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-35255%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20FrameBox%20%EB%82%B4%EC%97%90%EC%84%9C%20TextSeg%EC%9D%98%20x%2Fy%20%EC%9C%84%EC%B9%98%EB%A5%BC%20%EC%A7%80%EC%A0%95%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%B4%20%EC%9E%88%EC%8A%B5%EB%8B%88%EA%B9%8C%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-35255%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%EC%A2%8B%EC%95%84%2C%20%EC%8B%A4%EC%A0%9C%EB%A1%9C%20Text()%EB%A5%BC%20%EC%95%8C%EA%B3%A0%20%EC%9E%88%EC%97%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%20TextSeg%EB%8A%94%20%EB%82%98%EC%97%90%EA%B2%8C%20%EB%B9%84%EA%B5%90%EC%A0%81%20%EC%83%88%EB%A1%9C%EC%9A%B4%20%EA%B2%83%EC%9D%B4%EA%B8%B0%20%EB%95%8C%EB%AC%B8%EC%97%90%20%EA%B7%B8%20%ED%95%9C%EA%B3%84%EA%B0%80%20%EA%B6%81%EA%B8%88%ED%96%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%20%EA%B3%A0%EB%A7%88%EC%9B%8C%EC%9A%94%20%EC%A0%80%EC%8A%A4%ED%8B%B4!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-35250%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20FrameBox%20%EB%82%B4%EC%97%90%EC%84%9C%20TextSeg%EC%9D%98%20x%2Fy%20%EC%9C%84%EC%B9%98%EB%A5%BC%20%EC%A7%80%EC%A0%95%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%B4%20%EC%9E%88%EC%8A%B5%EB%8B%88%EA%B9%8C%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-35250%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%ED%85%8D%EC%8A%A4%ED%8A%B8%EC%9D%98%20X%20%EB%B0%8F%20Y%20%EC%9C%84%EC%B9%98%EB%A5%BC%20%EC%A0%9C%EC%96%B4%ED%95%98%EB%A0%A4%EB%A9%B4%20TextSeg%EA%B0%80%20%ED%95%AD%EC%83%81%20%EC%99%BC%EC%AA%BD%20%EC%83%81%EB%8B%A8%EC%97%90%20%EB%82%98%ED%83%80%EB%82%98%EA%B8%B0%20%EB%95%8C%EB%AC%B8%EC%97%90%20TextSeg%20%EB%8C%80%EC%8B%A0%20FrameBox%EC%97%90%20%EA%B7%B8%EB%9E%98%ED%94%BD%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8%EB%A5%BC%20%EC%B6%94%EA%B0%80%ED%95%B4%EC%95%BC%20%ED%95%A9%EB%8B%88%EB%8B%A4.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%EC%98%88%EB%8A%94%20%EB%8B%A4%EC%9D%8C%EA%B3%BC%20%EA%B0%99%EC%8A%B5%EB%8B%88%EB%8B%A4.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%5CBig%20Class.jmp%22%20)%3B%0A%0Agb%20%3D%20dt%20%26lt%3B%26lt%3B%20Graph%20Builder(%0A%20Show%20Control%20Panel(%200%20)%2C%0A%20Variables(%20X(%20%3Aheight%20)%2C%20Y(%20%3Aweight%20)%20)%2C%0A%20Elements(%0A%20%20Points(%20X%2C%20Y%2C%20Legend(%201%20)%20)%2C%0A%20%20Line%20Of%20Fit(%0A%20%20%20X%2C%0A%20%20%20Y%2C%0A%20%20%20Legend(%204%20)%2C%0A%20%20%20Degree(%20%22Cubic%22%20)%2C%0A%20%20%20Confidence%20of%20Prediction(%201%20)%2C%0A%20%20%20Root%20Mean%20Square%20Error(%201%20)%2C%0A%20%20%20Equation(%201%20)%0A%20%20)%0A%20)%0A)%3B%0A%0AReport(%20gb%20)%5BFrameBox(%201%20)%5D%20%26lt%3B%26lt%3B%20Add%20Graphics%20Script(%0A%20Text(%20Center%20Justified%2C%20%7B60%2C%2040%7D%2C%20%22Tallest%3A%20Lawrence%22%20)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
Phil_Brown
Super User (Alumni)

Is there a way to specify the x/y position of a TextSeg within a FrameBox?

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

Graph Builder(
	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :weight ) ),
	Elements(
		Points( X, Y, Legend( 1 ) ),
		Line Of Fit(
			X,
			Y,
			Legend( 4 ),
			Degree( "Cubic" ),
			Confidence of Prediction( 1 ),
			Root Mean Square Error( 1 ),
			Equation( 1 )
		)
	),
	SendToReport(
		Dispatch(
			{},
			"Graph Builder",
			FrameBox,
			{DispatchSeg(
				TextSeg( 1 ),
				Set Text(
					"weight = -3850 + 197.7*height - 3.343*height² + 0.01906*height³
RMSE: 15.77  Tallest: Lawrence"
				)
			)}
		)
	)
);
PDB
1 ACCEPTED SOLUTION

Accepted Solutions

Re: Is there a way to specify the x/y position of a TextSeg within a FrameBox?

If you want to control the X and Y positions of text, you will need to add a Graphics Script to the FrameBox instead of to the TextSeg as the TextSeg is always going to appear in the top left corner.

 

Here is an example:

 

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\Big Class.jmp" );

gb = dt << Graph Builder(
	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :weight ) ),
	Elements(
		Points( X, Y, Legend( 1 ) ),
		Line Of Fit(
			X,
			Y,
			Legend( 4 ),
			Degree( "Cubic" ),
			Confidence of Prediction( 1 ),
			Root Mean Square Error( 1 ),
			Equation( 1 )
		)
	)
);

Report( gb )[FrameBox( 1 )] << Add Graphics Script(
	Text( Center Justified, {60, 40}, "Tallest: Lawrence" )
);
Justin

View solution in original post

2 REPLIES 2

Re: Is there a way to specify the x/y position of a TextSeg within a FrameBox?

If you want to control the X and Y positions of text, you will need to add a Graphics Script to the FrameBox instead of to the TextSeg as the TextSeg is always going to appear in the top left corner.

 

Here is an example:

 

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\Big Class.jmp" );

gb = dt << Graph Builder(
	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :weight ) ),
	Elements(
		Points( X, Y, Legend( 1 ) ),
		Line Of Fit(
			X,
			Y,
			Legend( 4 ),
			Degree( "Cubic" ),
			Confidence of Prediction( 1 ),
			Root Mean Square Error( 1 ),
			Equation( 1 )
		)
	)
);

Report( gb )[FrameBox( 1 )] << Add Graphics Script(
	Text( Center Justified, {60, 40}, "Tallest: Lawrence" )
);
Justin
Phil_Brown
Super User (Alumni)

Re: Is there a way to specify the x/y position of a TextSeg within a FrameBox?

Ok, indeed was aware of Text(). TextSeg being relatively new to me, I wondered about its limitations. Thanks Justin!

PDB

Recommended Articles