<?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 Builder Box Plot Color in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Box-Plot-Color/m-p/287032#M55393</link>
    <description>&lt;P&gt;Sorry&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6002"&gt;@robot&lt;/a&gt;&amp;nbsp;, I didn't read your post carefully, and did not test on 14.3.&amp;nbsp; I am using JMP15.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Aug 2020 20:23:17 GMT</pubDate>
    <dc:creator>gzmorgan0</dc:creator>
    <dc:date>2020-08-20T20:23:17Z</dc:date>
    <item>
      <title>Graph Builder Box Plot Color</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Box-Plot-Color/m-p/286863#M55367</link>
      <description>&lt;P&gt;On the Graph Builder Box Plot, it is possible to color each box using the "Overlay" feature, but this makes the graph slightly less readable by reducing the box width, which is unnecessary in some contexts.&amp;nbsp; Can JMP add a "Color" feature to the Graph Builder Box Plot?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using JMP 14.3.0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Related:&amp;nbsp;&lt;LI-MESSAGE title="Fit Y by X, is it possible to color the boxes in a Box Plot by a column? What about Graph Builder?" uid="12572" url="https://community.jmp.com/t5/Discussions/Fit-Y-by-X-is-it-possible-to-color-the-boxes-in-a-Box-Plot-by-a/m-p/12572#U12572" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; New Column( "age 2", Numeric, "Ordinal", Format( "Best", 12 ), Formula( :age ) );
dt &amp;lt;&amp;lt; New Column( "null", Numeric, "Ordinal", Format( "Best", 12 ), Formula( 0 ) );

dt &amp;lt;&amp;lt; Graph Builder(
	Show Control Panel( 0 ),
	Variables( X( :age ), Y( :height ), Overlay( :null ) ),
	Elements( Box Plot( X, Y, Legend( 6 ), Box Style( "Solid" ) ) ),
	Column Switcher( :null, {:age 2, :null} )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:05:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Box-Plot-Color/m-p/286863#M55367</guid>
      <dc:creator>robot</dc:creator>
      <dc:date>2023-06-11T11:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder Box Plot Color</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Box-Plot-Color/m-p/286874#M55368</link>
      <description>&lt;P&gt;You can interactively change the color of the box plots, by right clicking on the chart and selecting "Customize"&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="boxplot.PNG" style="width: 812px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/26302iFC06DCDC18C1E30B/image-size/large?v=v2&amp;amp;px=999" role="button" title="boxplot.PNG" alt="boxplot.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Programmatically the script below was what the graph builder generated after I changed the color of the boxes&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Show Control Panel( 0 ),
	Variables( X( :age ), Y( :height ), Overlay( :null ) ),
	Elements( Box Plot( X, Y, Legend( 6 ), Box Style( "Solid" ) ) ),
	Column Switcher( :null, {:age 2, :null} ),
	SendToReport(
		Dispatch(
			{},
			"Graph Builder",
			FrameBox,
			{DispatchSeg(
				Box Plot Seg( "Box Plot (12)" ),
				{Line Color( "Medium Dark Red" ), Fill Color( "Medium Dark Red" ),
				Fill( 0 )}
			), DispatchSeg(
				Box Plot Seg( "Box Plot (13)" ),
				{Line Color( "Medium Dark Green" ),
				Fill Color( "Medium Dark Green" ), Fill( 0 )}
			), DispatchSeg(
				Box Plot Seg( "Box Plot (14)" ),
				{Line Color( "Medium Dark Blue" ), Fill Color( "Medium Dark Blue" ),
				Fill( 0 )}
			), DispatchSeg(
				Box Plot Seg( "Box Plot (15)" ),
				{Line Color( "Magenta" ), Fill Color( "Magenta" ), Fill( 0 )}
			), DispatchSeg(
				Box Plot Seg( "Box Plot (16)" ),
				{Line Color( "Gray" ), Fill Color( "Gray" ), Fill( 0 )}
			), DispatchSeg(
				Box Plot Seg( "Box Plot (17)" ),
				{Line Color( "Medium Light Orange" ),
				Fill Color( "Medium Light Orange" ), Fill( 0 )}
			)}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Aug 2020 22:31:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Box-Plot-Color/m-p/286874#M55368</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-08-19T22:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder Box Plot Color</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Box-Plot-Color/m-p/286893#M55372</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6002"&gt;@robot&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of giving :null the Overlay role, make it the Color role&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; New Column( "age 2", Numeric, "Ordinal", Format( "Best", 12 ), Formula( :age ) );
dt &amp;lt;&amp;lt; New Column( "null", Numeric, "Ordinal", Format( "Best", 12 ), Formula( 0 ) );

dt &amp;lt;&amp;lt; Graph Builder(
	Show Control Panel( 0 ),
	Variables( X( :age ), Y( :height ), Color( :null ) ),
	Elements( Box Plot( X, Y, Legend( 6 ), Box Style( "Solid" ) ) ),
	Column Switcher( :null, {:age 2, :null} )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/26303i19743A36C88FB817/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 06:45:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Box-Plot-Color/m-p/286893#M55372</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2020-08-20T06:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder Box Plot Color</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Box-Plot-Color/m-p/286998#M55387</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt;.&amp;nbsp; What version of JMP are you using?&amp;nbsp; In JMP 14.3.0, the "Color" role has no effect.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 16:55:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Box-Plot-Color/m-p/286998#M55387</guid>
      <dc:creator>robot</dc:creator>
      <dc:date>2020-08-20T16:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder Box Plot Color</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Box-Plot-Color/m-p/287032#M55393</link>
      <description>&lt;P&gt;Sorry&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6002"&gt;@robot&lt;/a&gt;&amp;nbsp;, I didn't read your post carefully, and did not test on 14.3.&amp;nbsp; I am using JMP15.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 20:23:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Box-Plot-Color/m-p/287032#M55393</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2020-08-20T20:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder Box Plot Color</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Box-Plot-Color/m-p/287038#M55395</link>
      <description>&lt;P&gt;It is not working in v13.2 either.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 21:15:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Box-Plot-Color/m-p/287038#M55395</guid>
      <dc:creator>jimloughlin</dc:creator>
      <dc:date>2020-08-20T21:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder Box Plot Color</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Box-Plot-Color/m-p/287042#M55396</link>
      <description>Thanks. This is good enough. I look forward to this feature when I upgrade to JMP 15.</description>
      <pubDate>Thu, 20 Aug 2020 21:30:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Box-Plot-Color/m-p/287042#M55396</guid>
      <dc:creator>robot</dc:creator>
      <dc:date>2020-08-20T21:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder Box Plot Color</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Box-Plot-Color/m-p/287046#M55397</link>
      <description>&lt;P&gt;That works on v13.2.&amp;nbsp; Thanx.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 21:47:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Box-Plot-Color/m-p/287046#M55397</guid>
      <dc:creator>jimloughlin</dc:creator>
      <dc:date>2020-08-20T21:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder Box Plot Color</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Box-Plot-Color/m-p/287068#M55405</link>
      <description>&lt;P&gt;Just in case you wanted something like column switcher, here is a script that works in JMP 14.3 and 13.2&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 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; New Column( "age 2", Numeric, "Ordinal", Format( "Best", 12 ), Formula( :age ) );
dt &amp;lt;&amp;lt; New Column( "null", Numeric, "Ordinal", Format( "Best", 12 ), Formula( 0 ) );

dt &amp;lt;&amp;lt; Color by Column( :age2 );

dtsum = dt &amp;lt;&amp;lt; Summary( Group( :age2) );
dtsum &amp;lt;&amp;lt; New Column( "Color", Numeric, &amp;lt;&amp;lt; set each value (Color Of() ) );

a_color = dtsum:Color &amp;lt;&amp;lt; get values;
a_age   = dtsum:age2 &amp;lt;&amp;lt; get values;
naa = nitems(a_age);

Close( dtsum, NoSave);

New Window("Custom",
HListBox(
    ob1 = OutlineBox( "Color By Column",
        lb = ListBox({"age 2", "null"}, maxselected(1), nlines(2), &amp;lt;&amp;lt;Script(colorby_xp) )
    ),
	g = dt &amp;lt;&amp;lt; Graph Builder(
		Show Control Panel( 0 ),
		Variables( X( :age ), Y( :height ) ),
		Elements( Box Plot( X, Y, Legend( 6 ), Box Style( "Solid" ) ) )
	)
)
);

//selcol = ob1[ListBoxBox(1)];
wait(0);

bpseg = g &amp;lt;&amp;lt; Xpath("//BoxPlotSeg");
//check
if(nitems(bpseg) != naa, Throw("Item mismatch loock for all missing category") );

colorby_xp = Expr(
   cc = (lb &amp;lt;&amp;lt; get selected)[1];
   Print(cc);
   If( cc =="age 2", 
        for(i=1, i&amp;lt;=naa, i++, bpseg[i] &amp;lt;&amp;lt; Fill Color( a_color[i] ) ),
       cc == "null",
        bpseg &amp;lt;&amp;lt; Fill Color(" Medium Dark Gray") 
   )
 );

&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: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/26325i01DF2E6F7E17EBD0/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 06:41:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Box-Plot-Color/m-p/287068#M55405</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2020-08-21T06:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder Box Plot Color</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Box-Plot-Color/m-p/287166#M55421</link>
      <description>Very slick. Thanks!</description>
      <pubDate>Fri, 21 Aug 2020 16:56:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Box-Plot-Color/m-p/287166#M55421</guid>
      <dc:creator>robot</dc:creator>
      <dc:date>2020-08-21T16:56:40Z</dc:date>
    </item>
  </channel>
</rss>

