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.

Discussions

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

How to Add reference lines on Graph Builder script loop

I'm trying to automate graph generation which looks good but when adding the reference lines they're not plotted. How this can be accomplished through the loop?

As test I've also tried to give a number or the index to the Scalebox but nothing appear.

Data Table( "NC119_1" ) << Graph Builder( 
	Page Gap Size( 1 ),
	
	Variables(
		X( :timeTrace ),
		Y( :VI2, Side( "Right" ) ),
		Y( :VI1, Position( 1 ) ),
		Page( :tracenum )
		
	),
	Elements(
		Points( X, Y( 2 ), Legend( 1 ) ),
		Points( X, Y( 2 ), Legend( 2 ) ),
		Points( X, Y( 1 ), Legend( 3 ) ),
		Points( X, Y( 1 ), Legend( 4 ) ),
		by ( :tracenum )
		
	),

For( i = 1, i <= 1, i++,
	Where( :tracenum == i ),
	SendToReport(
		Dispatch(
			{},
			"timeTrace",
			ScaleBox,
			{Format( "Fixed Dec", 12, 0 ), Min( -38.696 ), Max( 3200.00 ),
			Inc( 500 ), Minor Ticks( 1 )}
		),
		
		Dispatch(
			{},
			"VI1",
			ScaleBox,
			{Format( "Fixed Dec", 12, 1 ), Min( -0.1367445006 ), Max( 2.5845443676 ),
			Inc( 0.5 ), Minor Ticks( 1 )}
		),
		
		Dispatch(
			{},
			"VI2",
			ScaleBox,
			{Format( "Fixed Dec", 12, 3 ), Min( -1 ),
			Max( 0.01 ), Inc( 0.01 ), Minor Ticks( 0.1 )}
		),
		Dispatch(
			{},
			"timeTrace",
			ScaleBox( 1 ),
			{Add Ref Line( 1200, "Solid", "Black", "", 1 )}
		),
		Dispatch(
			{},
			"VI1",
			ScaleBox( 1 ),
			{Add Ref Line( 0.3, "Solid", "Black", "", 1 )}
		)
	
	)
)



		

 );
1 REPLY 1
jthi
Super User

Re: How to Add reference lines on Graph Builder script loop

This might give you a good idea how to move forward with this Re: Using JSL to add reference lines to Page By graphs  or at least how to get started.

-Jarmo

Recommended Articles