<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to Add reference lines on Graph Builder script loop in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-Add-reference-lines-on-Graph-Builder-script-loop/m-p/420211#M66902</link>
    <description>&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;As test I've also tried to give a number or the index to the Scalebox but nothing appear.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Data Table( "NC119_1" ) &amp;lt;&amp;lt; 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 &amp;lt;= 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 )}
		)
	
	)
)



		

 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 11 Jun 2023 11:17:38 GMT</pubDate>
    <dc:creator>Buttinoni7</dc:creator>
    <dc:date>2023-06-11T11:17:38Z</dc:date>
    <item>
      <title>How to Add reference lines on Graph Builder script loop</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Add-reference-lines-on-Graph-Builder-script-loop/m-p/420211#M66902</link>
      <description>&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;As test I've also tried to give a number or the index to the Scalebox but nothing appear.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Data Table( "NC119_1" ) &amp;lt;&amp;lt; 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 &amp;lt;= 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 )}
		)
	
	)
)



		

 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:17:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Add-reference-lines-on-Graph-Builder-script-loop/m-p/420211#M66902</guid>
      <dc:creator>Buttinoni7</dc:creator>
      <dc:date>2023-06-11T11:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to Add reference lines on Graph Builder script loop</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Add-reference-lines-on-Graph-Builder-script-loop/m-p/420220#M66904</link>
      <description>&lt;P&gt;This might give you a good idea how to move forward with this &lt;A href="https://community.jmp.com/t5/Discussions/Using-JSL-to-add-reference-lines-to-Page-By-graphs/m-p/321427/highlight/true#M57147" target="_blank" rel="noopener"&gt;Re: Using JSL to add reference lines to Page By graphs&lt;/A&gt;&amp;nbsp; or at least how to get started.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 15:44:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Add-reference-lines-on-Graph-Builder-script-loop/m-p/420220#M66904</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-09-22T15:44:38Z</dc:date>
    </item>
  </channel>
</rss>

