<?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 Need help with a script for broadcasting the Y axis lines on Graph Builder when using the &amp;quot;Page&amp;quot; layout function and keeping the Y axis Independant in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Need-help-with-a-script-for-broadcasting-the-Y-axis-lines-on/m-p/843482#M101730</link>
    <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;While the new ability to stack the panels in Graph Builder is amazing a key to this amazingness is keeping the Y axis Independent of each other.&amp;nbsp; However, when you have a lot of panels(levels) and want to add in Y axis grid lines you have to do them one by one, which is horrible.&amp;nbsp; Any ideas on a&amp;nbsp; script that would allow you to index through each panel and add grid lines independently?&lt;/P&gt;&lt;P&gt;Here you can see I used the old school way of (in the big class dataset) copying the axis settings and broadcasting a paste of them and while it does add in the gridlines it sets all the Y axis ranges to the same as the copied panel settings.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shampton82_0-1740161785394.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/73245i9C563A356C520B75/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shampton82_0-1740161785394.png" alt="shampton82_0-1740161785394.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any ideas!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Feb 2025 18:18:27 GMT</pubDate>
    <dc:creator>shampton82</dc:creator>
    <dc:date>2025-02-21T18:18:27Z</dc:date>
    <item>
      <title>Need help with a script for broadcasting the Y axis lines on Graph Builder when using the "Page" layout function and keeping the Y axis Independant</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-with-a-script-for-broadcasting-the-Y-axis-lines-on/m-p/843482#M101730</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;While the new ability to stack the panels in Graph Builder is amazing a key to this amazingness is keeping the Y axis Independent of each other.&amp;nbsp; However, when you have a lot of panels(levels) and want to add in Y axis grid lines you have to do them one by one, which is horrible.&amp;nbsp; Any ideas on a&amp;nbsp; script that would allow you to index through each panel and add grid lines independently?&lt;/P&gt;&lt;P&gt;Here you can see I used the old school way of (in the big class dataset) copying the axis settings and broadcasting a paste of them and while it does add in the gridlines it sets all the Y axis ranges to the same as the copied panel settings.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shampton82_0-1740161785394.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/73245i9C563A356C520B75/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shampton82_0-1740161785394.png" alt="shampton82_0-1740161785394.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any ideas!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 18:18:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-with-a-script-for-broadcasting-the-Y-axis-lines-on/m-p/843482#M101730</guid>
      <dc:creator>shampton82</dc:creator>
      <dc:date>2025-02-21T18:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a script for broadcasting the Y axis lines on Graph Builder when using the "Page" layout function and keeping the Y axis Independant</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-with-a-script-for-broadcasting-the-Y-axis-lines-on/m-p/843503#M101731</link>
      <description>&lt;P&gt;Use XPath to get reference to the Axisboxes you are interested in (X, Y axis or both) and then do whatever you want with that list of axisboxes. This example enables Major Grid for Y-axis on all the frameboxes&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(893, 542),
	Show Control Panel(0),
	Variables(X(:weight), Y(:height), Page(:age, Levels per Row(3)), Overlay(:sex)),
	Elements(Points(X, Y, Legend(9)))
);

abs = Report(gb) &amp;lt;&amp;lt; XPath("//AxisBox");

yaxis = abs[2::NItems(abs)::2];

yaxis &amp;lt;&amp;lt; Show Major Grid(1);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1740162499528.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/73247i04F6485B2D6EECA8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1740162499528.png" alt="jthi_0-1740162499528.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 18:28:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-with-a-script-for-broadcasting-the-Y-axis-lines-on/m-p/843503#M101731</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-02-21T18:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a script for broadcasting the Y axis lines on Graph Builder when using the "Page" layout function and keeping the Y axis Independant</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-with-a-script-for-broadcasting-the-Y-axis-lines-on/m-p/843504#M101732</link>
      <description>&lt;P&gt;That was fast, Jarmo! I like your solution better, but here's another way using Eval(Parse()).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

//Manually add your reference line to the top left panel of the graph builder.
//Then run this script with the graph builder report in focus.

axisList = Current Report() &amp;lt;&amp;lt; XPath( "//AxisBox" );

//Grab axis specifications from vertical axis of first panel
//(vertical axes are even-numbered items; horizontal axes are odd)
axspecList = axisList[2] &amp;lt;&amp;lt; Get Script();
//find the Reference Line among the other specifications
For( i = 1, i &amp;lt;= N Items( axspecList ), i++,
	If( Left( Char( axspecList[i] ), 12 ) == "Add Ref Line",
		rlindex = i;
		Break();
	)
);

//Reference Line specification as string
rlstr = Char( axspecList[rlindex] );

//Apply Reference Line specification to the remaining panels
For( j = 4, j &amp;lt;= N Items( axisList ), j = j + 2,
	estr = "axisList[" || Char( j ) || "] &amp;lt;&amp;lt;" || rlstr;
	Eval( Parse( estr ) );
);

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Feb 2025 18:35:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-with-a-script-for-broadcasting-the-Y-axis-lines-on/m-p/843504#M101732</guid>
      <dc:creator>Jordan_Hiller</dc:creator>
      <dc:date>2025-02-21T18:35:41Z</dc:date>
    </item>
  </channel>
</rss>

