cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

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