<?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: Customize box plot color in JMP preferences in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Customize-box-plot-color-in-JMP-preferences/m-p/494158#M73376</link>
    <description>&lt;P&gt;Most likely it is finding some other window it isn't supposed to (these might have changed in newer version of JMP). For me it did find "Log" window (enchanced log?) which caused the issue so I added check for "Log" window name:&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");
fit = dt &amp;lt;&amp;lt; Oneway(Y(:height), X(:sex), Box Plots(1));

winlst = Get Window List();
For(i = 1, i &amp;lt;= N Items(winlst), i++,
	_nme = winlst[i] &amp;lt;&amp;lt; Get Window Title;
	_child = winlst[i] &amp;lt;&amp;lt; Child;
	If((_child &amp;lt;&amp;lt; class name) == "ListBox" &amp;amp; _nme != "Log",
		_clnme = _child[Outline Box(1)] &amp;lt;&amp;lt; get title;
		If(Contains(_nme, "Oneway") | Contains(_clnme, "Oneway") | Contains(_clnme, "Fit Group"),
			bseg = _child &amp;lt;&amp;lt; Xpath("//BoxPlotSeg");
			If(N Items(bseg) &amp;gt; 0,
				bseg &amp;lt;&amp;lt; Set Line Color("Black")
			)//Set Box Type("Outlier"))
			;
		);
	);
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You could edit the addin's addin.jmpcust file (found from %appdata%\SAS\JMP\Addins\com.blackboxplot.addin) and add the same check I did or rebuild the addin from the installer and modify code there&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1653639818202.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42759i6FB32602C2A0F6F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1653639818202.png" alt="jthi_0-1653639818202.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 May 2022 08:24:19 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2022-05-27T08:24:19Z</dc:date>
    <item>
      <title>Customize box plot color in JMP preferences</title>
      <link>https://community.jmp.com/t5/Discussions/Customize-box-plot-color-in-JMP-preferences/m-p/63157#M33926</link>
      <description>&lt;P&gt;Okay - this has been asked before but based on my screening of several discussions, never thoroughly answered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our company has recently upgraded to JMP 13. I was upgraded from JMP 10. On my computer, boxplots added to a "fit y by x" oneway graph show up red. On a coworker's computer with a fresh install of JMP 13, boxplots added to a "fit y by x" oneway graph show up black.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For me to get black boxplots I have to go into "Customize" by right clicking on white space in the graph and then individually change every single box plot outline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As my coworker's boxplots do not show up red, this MUST be a setting SOMEWHERE.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There has to be a way to do this without scripting it each time.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know???????&lt;/P&gt;&lt;P&gt;Please help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 00:23:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Customize-box-plot-color-in-JMP-preferences/m-p/63157#M33926</guid>
      <dc:creator>lchamber78</dc:creator>
      <dc:date>2018-07-18T00:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Customize box plot color in JMP preferences</title>
      <link>https://community.jmp.com/t5/Discussions/Customize-box-plot-color-in-JMP-preferences/m-p/63165#M33930</link>
      <description>&lt;P&gt;I do not know of a preference to set the default BoxPlotSeq to have Box Type("Outlier") which sets the color to Black, or how to change the default BoxPlotSeg line color.&amp;nbsp; Maybe a JMP developer has a JSL-Only preference that can do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that GraphBuilder boxplots by default are black.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The attached file is an add-in created from the script below. If you install the add-in, then once you create your boxplots, run it from Main Menu &amp;gt; Add-Ins &amp;gt; BlackBoxPlot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You might want to postpone installing the add-in, in case there are other solutions that can set the default; then this add-in is unnecessary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JSL scripters, with a little additional scripting, using Pick Color(), or a menu to prompt for color, line width, fill and transparency, would allow be a nice app to customize all boxplots. Note this script was written to run on JMP 13 and 14.&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);
winlst = Window();
For(i=1, i&amp;lt;=nitems(winlst), i++,
   _nme = winlst[i] &amp;lt;&amp;lt; Get Window Title;
   _child = winlst[i] &amp;lt;&amp;lt; Child;
   If( (_child &amp;lt;&amp;lt; class name) == "ListBox", 
      _clnme = _child[OutlineBox(1)] &amp;lt;&amp;lt;get title; 
      If( contains(_nme, "Oneway") | 
       contains( _clnme, "Oneway") |
       contains( _clnme, "Fit Group")
      ,
      bseg = _child  &amp;lt;&amp;lt; Xpath("//BoxPlotSeg");
      if(nitems(bseg)&amp;gt;0, bseg &amp;lt;&amp;lt; Set Line Color("Black") )//Set Box Type("Outlier"))
      );
    );
 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Jul 2018 09:32:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Customize-box-plot-color-in-JMP-preferences/m-p/63165#M33930</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-07-18T09:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Customize box plot color in JMP preferences</title>
      <link>https://community.jmp.com/t5/Discussions/Customize-box-plot-color-in-JMP-preferences/m-p/63306#M33972</link>
      <description>&lt;P&gt;wow that add-in is MUCH better than manually fixing these. Thank you so much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do wish we could figure out why they are automatically black on my co-worker's machine though. It's very strange!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 21:29:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Customize-box-plot-color-in-JMP-preferences/m-p/63306#M33972</guid>
      <dc:creator>lchamber78</dc:creator>
      <dc:date>2018-07-18T21:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Customize box plot color in JMP preferences</title>
      <link>https://community.jmp.com/t5/Discussions/Customize-box-plot-color-in-JMP-preferences/m-p/63365#M33989</link>
      <description>&lt;P&gt;Maybe they ran out of red ink...&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 13:52:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Customize-box-plot-color-in-JMP-preferences/m-p/63365#M33989</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2018-07-19T13:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Customize box plot color in JMP preferences</title>
      <link>https://community.jmp.com/t5/Discussions/Customize-box-plot-color-in-JMP-preferences/m-p/63434#M33998</link>
      <description>&lt;P&gt;lol - on a monitor?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 15:28:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Customize-box-plot-color-in-JMP-preferences/m-p/63434#M33998</guid>
      <dc:creator>lchamber78</dc:creator>
      <dc:date>2018-07-19T15:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Customize box plot color in JMP preferences</title>
      <link>https://community.jmp.com/t5/Discussions/Customize-box-plot-color-in-JMP-preferences/m-p/63444#M34000</link>
      <description>&lt;P&gt;LOL was the response I was looking for.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 16:46:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Customize-box-plot-color-in-JMP-preferences/m-p/63444#M34000</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2018-07-19T16:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Customize box plot color in JMP preferences</title>
      <link>https://community.jmp.com/t5/Discussions/Customize-box-plot-color-in-JMP-preferences/m-p/494149#M73374</link>
      <description>&lt;P&gt;Thank you for providing such solution but for me after adding the Add-in when I try using this in my variability plot it throws alert "Cannot subscript Display box in access or evaluation of '_child [OutlineBox(1)]' ". Any solution do you have?&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 08:05:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Customize-box-plot-color-in-JMP-preferences/m-p/494149#M73374</guid>
      <dc:creator>Sachin_Dash</dc:creator>
      <dc:date>2022-05-27T08:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Customize box plot color in JMP preferences</title>
      <link>https://community.jmp.com/t5/Discussions/Customize-box-plot-color-in-JMP-preferences/m-p/494158#M73376</link>
      <description>&lt;P&gt;Most likely it is finding some other window it isn't supposed to (these might have changed in newer version of JMP). For me it did find "Log" window (enchanced log?) which caused the issue so I added check for "Log" window name:&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");
fit = dt &amp;lt;&amp;lt; Oneway(Y(:height), X(:sex), Box Plots(1));

winlst = Get Window List();
For(i = 1, i &amp;lt;= N Items(winlst), i++,
	_nme = winlst[i] &amp;lt;&amp;lt; Get Window Title;
	_child = winlst[i] &amp;lt;&amp;lt; Child;
	If((_child &amp;lt;&amp;lt; class name) == "ListBox" &amp;amp; _nme != "Log",
		_clnme = _child[Outline Box(1)] &amp;lt;&amp;lt; get title;
		If(Contains(_nme, "Oneway") | Contains(_clnme, "Oneway") | Contains(_clnme, "Fit Group"),
			bseg = _child &amp;lt;&amp;lt; Xpath("//BoxPlotSeg");
			If(N Items(bseg) &amp;gt; 0,
				bseg &amp;lt;&amp;lt; Set Line Color("Black")
			)//Set Box Type("Outlier"))
			;
		);
	);
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You could edit the addin's addin.jmpcust file (found from %appdata%\SAS\JMP\Addins\com.blackboxplot.addin) and add the same check I did or rebuild the addin from the installer and modify code there&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1653639818202.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42759i6FB32602C2A0F6F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1653639818202.png" alt="jthi_0-1653639818202.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 08:24:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Customize-box-plot-color-in-JMP-preferences/m-p/494158#M73376</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-05-27T08:24:19Z</dc:date>
    </item>
  </channel>
</rss>

