cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • See how to use the JMP Marketplace – Free tools to expand JMP capabilities. Register. July 10, 2 pm US Eastern Time.

Discussions

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

Rect() Function

Can the Rect() function be a text box?  Alternatively, is there another function that can be used in a graph builder script to create a shape with text?

 

Slán

 

SpannerHead


Slán



SpannerHead
2 ACCEPTED SOLUTIONS

Accepted Solutions
MathStatChem
Level VII

Re: Rect() Function

Names Default To Here( 1 );
New Window( "Example",
	Graph Box(
		Text Color( "red" );
		Text( Boxed, {50, 20}, "Boxed Text" );
	)
);

MathStatChem_0-1770410075348.png

 

View solution in original post

jthi
Super User

Re: Rect() Function

Text() with boxed argument is the correct answer for this, but you can draw multiple elements on top of each other. Order does matter with this and you might have to do some adjustments to coordinates especially if you are using Text()

Names Default To Here(1);

nw = New Window("Example",
	Graph Box(
		Pen Color("Black");
		Fill Color("LightGreen");
		Circle({20, 20}, 20, "FILL");
		Text Color("Black");
		Text(Center Justified, {20, 17}, "centered");
	)
);

jthi_0-1770447052360.png

 

-Jarmo

View solution in original post

2 REPLIES 2
MathStatChem
Level VII

Re: Rect() Function

Names Default To Here( 1 );
New Window( "Example",
	Graph Box(
		Text Color( "red" );
		Text( Boxed, {50, 20}, "Boxed Text" );
	)
);

MathStatChem_0-1770410075348.png

 

jthi
Super User

Re: Rect() Function

Text() with boxed argument is the correct answer for this, but you can draw multiple elements on top of each other. Order does matter with this and you might have to do some adjustments to coordinates especially if you are using Text()

Names Default To Here(1);

nw = New Window("Example",
	Graph Box(
		Pen Color("Black");
		Fill Color("LightGreen");
		Circle({20, 20}, 20, "FILL");
		Text Color("Black");
		Text(Center Justified, {20, 17}, "centered");
	)
);

jthi_0-1770447052360.png

 

-Jarmo

Recommended Articles