cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • 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!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

JMP Scripters Club Discussions

Choose Language Hide Translation Bar

Scripters Club Recordings: Drawing Graphical Elements

Topic: Drawing Graphical Elements

Presenters: @thickey1  and @jthi 

 

Video 1: 

(view in My Videos)

 

Most of these different graphical objects/functions can be found in the scripting index under category Graphics:

maria_astals_0-1729154774021.png

Graphics Functions (jmp.com)

And scripting guide Scripting Graphs (jmp.com) 

 

GraphBox will return a reference to DisplayBox[OwnerBox] and FrameBox is somewhere under that

Names Default To Here(1);

New Window("Box Plot Seg Example",   
	g = Graph Box(    
		Frame Size(40, 180),     
		Y Scale(0, 5),     
		Box Plot Seg([1, 2, 3, 4]) 
	)
);

 

maria_astals_1-1729154851182.png

 

You can also use Custom Maps to display the real coordinates. All the different methods do have their pros and cons.

Video 2: 

(view in My Videos)

 

5 REPLIES 5
jthi
Super User

Re: Scripters Club Recordings: Drawing Graphical Elements

My material attached

-Jarmo
AlanBell
Level II

Re: Scripters Club Recordings: Drawing Graphical Elements

Are the scripts and tables working? I can't download. Thanks

jthi
Super User

Re: Scripters Club Recordings: Drawing Graphical Elements

I managed to download them fine 

jthi_0-1729245668233.png

Did you press  jthi_1-1729245698933.png  to download them?

-Jarmo
hogi
Level XIII

Re: Scripters Club Recordings: Drawing Graphical Elements

To automate the Seg creation for complicated graphs with multiple frameboxes, is there something like this Frame Box () which will simplify 

Eval(
	Eval Expr(
		Report( obj )[FrameBox( 1 )] <<
		Add Graphics Script(
			p = Expr(Report( obj )[FrameBox( 1 )]);
			mysegs = p << Find Segs( );
)))

to 

Report( obj )[FrameBox( 1 )] <<
Add Graphics Script( mysegs = this frame box() << Find Segs() )

 

hogi
Level XIII

Re: Scripters Club Recordings: Drawing Graphical Elements