cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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
1 ACCEPTED SOLUTION

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

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