<?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 Re: graph with color in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/graph-with-color/m-p/60891#M33109</link>
    <description>&lt;P&gt;Manual worked for me, just a number of Dispatch statements one for each frame box, and they were all even numbered.&lt;/P&gt;&lt;P&gt;It is worth understanding the structure of GraphBuilder as a matrix of output, they are sequentially ordered as 1, top left and ordered by column:&amp;nbsp; left most column , 1 top, 2 bottom., next column top 3, bottom 4, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example script to do this via jsl.&amp;nbsp; Since elements have a position, there should be a method to reference the frameboxes by position.&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( 570, 490 ),
	Show Control Panel( 0 ),
	Variables(
		X( :height ),
		Y( :weight ),
		Group X( :age ),
		Group Y( :sex ),
		Color( :sex )
	),
	Elements( Points( X, Y, Legend( 5 ) ) ),
);

summarize(lgen=By(:sex));
summarize(lage=By(:age));


fbs = gb &amp;lt;&amp;lt; Xpath("//FrameBox");
show(nitems(fbs), nitems(fbs)==nitems(lage)*nitems(lgen) ); // should be 12 = 2 (sex) * 6(age);

for(i=1, i &amp;lt;= nitems(lage), i++,
	fbs[2*i] &amp;lt;&amp;lt; Background Color(44);
);&lt;BR /&gt;wait(3);&lt;BR /&gt;fbs[2*(1::nitems(lage))] &amp;lt;&amp;lt; Background Color(77); &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/11217iC7E05ABBE4A7C5F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jun 2018 05:16:06 GMT</pubDate>
    <dc:creator>gzmorgan0</dc:creator>
    <dc:date>2018-06-22T05:16:06Z</dc:date>
    <item>
      <title>graph with color</title>
      <link>https://community.jmp.com/t5/Discussions/graph-with-color/m-p/60725#M33063</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to have a different color for the low part of the graph like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fond de carte 1.jpg" style="width: 543px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/11172i5EB18030A27A7BAD/image-size/large?v=v2&amp;amp;px=999" role="button" title="fond de carte 1.jpg" alt="fond de carte 1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I add a variable at the top of the graph, the low part(party) is not quite colored:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fond de carte 2.jpg" style="width: 517px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/11173i2F8B8FAF2603D5A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="fond de carte 2.jpg" alt="fond de carte 2.jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to modify the script: unsuccessfully.&lt;FONT&gt;How to write the script to have all the low part of the graph with the yellow color?&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT&gt;thanks for your help&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 12:42:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/graph-with-color/m-p/60725#M33063</guid>
      <dc:creator>Françoise</dc:creator>
      <dc:date>2018-06-21T12:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: graph with color</title>
      <link>https://community.jmp.com/t5/Discussions/graph-with-color/m-p/60784#M33074</link>
      <description>&lt;P&gt;All you have to do is right-click in those other graph partitions in the bottom and color the background the same color.&amp;nbsp; Then save and check the script if want to know how that is scripted.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 14:57:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/graph-with-color/m-p/60784#M33074</guid>
      <dc:creator>cwillden</dc:creator>
      <dc:date>2018-06-21T14:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: graph with color</title>
      <link>https://community.jmp.com/t5/Discussions/graph-with-color/m-p/60785#M33075</link>
      <description>&lt;P&gt;I've already done it;&lt;/P&gt;&lt;P&gt;same pb&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 15:19:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/graph-with-color/m-p/60785#M33075</guid>
      <dc:creator>Françoise</dc:creator>
      <dc:date>2018-06-21T15:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: graph with color</title>
      <link>https://community.jmp.com/t5/Discussions/graph-with-color/m-p/60792#M33078</link>
      <description>Just to be clear, you manually color the bottom partitions, save the script, and then when you run the script it only colors the first bottom partition?&lt;BR /&gt;&lt;BR /&gt;If that’s the case, you’ve discovered a bug. I would suggest calling tech support and they may be able to help you with a workaround as well.</description>
      <pubDate>Thu, 21 Jun 2018 15:45:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/graph-with-color/m-p/60792#M33078</guid>
      <dc:creator>cwillden</dc:creator>
      <dc:date>2018-06-21T15:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: graph with color</title>
      <link>https://community.jmp.com/t5/Discussions/graph-with-color/m-p/60891#M33109</link>
      <description>&lt;P&gt;Manual worked for me, just a number of Dispatch statements one for each frame box, and they were all even numbered.&lt;/P&gt;&lt;P&gt;It is worth understanding the structure of GraphBuilder as a matrix of output, they are sequentially ordered as 1, top left and ordered by column:&amp;nbsp; left most column , 1 top, 2 bottom., next column top 3, bottom 4, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example script to do this via jsl.&amp;nbsp; Since elements have a position, there should be a method to reference the frameboxes by position.&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( 570, 490 ),
	Show Control Panel( 0 ),
	Variables(
		X( :height ),
		Y( :weight ),
		Group X( :age ),
		Group Y( :sex ),
		Color( :sex )
	),
	Elements( Points( X, Y, Legend( 5 ) ) ),
);

summarize(lgen=By(:sex));
summarize(lage=By(:age));


fbs = gb &amp;lt;&amp;lt; Xpath("//FrameBox");
show(nitems(fbs), nitems(fbs)==nitems(lage)*nitems(lgen) ); // should be 12 = 2 (sex) * 6(age);

for(i=1, i &amp;lt;= nitems(lage), i++,
	fbs[2*i] &amp;lt;&amp;lt; Background Color(44);
);&lt;BR /&gt;wait(3);&lt;BR /&gt;fbs[2*(1::nitems(lage))] &amp;lt;&amp;lt; Background Color(77); &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/11217iC7E05ABBE4A7C5F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 05:16:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/graph-with-color/m-p/60891#M33109</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-06-22T05:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: graph with color</title>
      <link>https://community.jmp.com/t5/Discussions/graph-with-color/m-p/60893#M33110</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Remove&amp;nbsp; age and put back&amp;nbsp; age, it does not work any more.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fond de carte 3.jpg" style="width: 642px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/11218iF83E1585FF7A2BCA/image-size/large?v=v2&amp;amp;px=999" role="button" title="fond de carte 3.jpg" alt="fond de carte 3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a new bug from SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 06:37:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/graph-with-color/m-p/60893#M33110</guid>
      <dc:creator>Françoise</dc:creator>
      <dc:date>2018-06-22T06:37:03Z</dc:date>
    </item>
  </channel>
</rss>

