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.

Discussions

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

Create horizontal border to separate y-grouped plots

Hi,

 

I want to create a horizontal border to seperate my y-grouped plots. I have attached a screen shot show with black crosses where I want to create the border.

 

Untitled.png

2 REPLIES 2
txnelson
Super User

Re: Create horizontal border to seperate y-grouped plots

Here is an example script that adds an annotation line to the graph.  I simply used the annotation tools to draw the line, and then captured the script.

Names default to here(1);

dt=open("$SAMPLE_DATA\big class.jmp");

Graph Builder(
	Size( 587, 495 ),
	Variables( X( :weight ), Y( :height ), Group Y( :sex ) ),
	Elements( Points( X, Y, Legend( 7 ) ) ),
	SendToReport(
		Dispatch( {}, "height", ScaleBox, {Min( 56.9527534300518 )} ),
		Dispatch(
			{},
			"",
			GraphBuilderContainerBox,
			Add Line Annotation(
				Line( {52, 251}, {550, 249} ),
				Color( "Black" ),
				Thick( 1 )
			)
		)
	)
);
Jim

Re: Create horizontal border to seperate y-grouped plots

Reference line also will work.

Names default to here(1);

 

dt=open("$SAMPLE_DATA\big class.jmp");

 

nMin = col min(dt:height)-col min(dt:height)*0.1;

 

Graph Builder(

       Size( 787, 633 ),

       Variables( X( :weight ), Y( :height ), Group Y( :sex ) ),

       Elements( Points( X, Y, Legend( 7 ) ) ),

       SendToReport(

              Dispatch(

                     {},

                     "height",

                     ScaleBox,

                     {Min( nMin ), Add Ref Line( nMin, "Solid", "Black", "", 2 )}

              )

       )

);

Recommended Articles