<?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: Change the default color of box plot lines in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/231131#M45838</link>
    <description>&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From all the searching I did on the JMP forums, it seems there does not exist an easy way to do this. The only practical solution I found was from&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt;, in the form of an add-in to change the colors to black after creating a plot:&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/Customize-box-plot-color-in-JMP-preferences/td-p/63157" target="_blank"&gt;https://community.jmp.com/t5/Discussions/Customize-box-plot-color-in-JMP-preferences/td-p/63157.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While this is incredibly useful, it still requires a key-click (even with a hotkey) after every plot.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wondering if JMP admins/engineers would know of a workaround...&lt;/P&gt;</description>
    <pubDate>Mon, 28 Oct 2019 18:56:09 GMT</pubDate>
    <dc:creator>PCameh</dc:creator>
    <dc:date>2019-10-28T18:56:09Z</dc:date>
    <item>
      <title>Change the default color of box plot lines</title>
      <link>https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/231001#M45815</link>
      <description>&lt;P&gt;I've seen multiple posts related to this topic, but most solutions either direct to use Graph Builder or to temporarily script as a workaround. What I want to know is - if there is a way to set the default color of the box plots in the Variability Chart to black (from the current default red)? I'm using JMP 14.3. Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change the color of red in the following to black is what I want to accomplish by default:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ba_oneway_anova-2.png" style="width: 562px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/19919i53E3083C5FCF2DF5/image-size/large?v=v2&amp;amp;px=999" role="button" title="ba_oneway_anova-2.png" alt="ba_oneway_anova-2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Oct 2019 23:32:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/231001#M45815</guid>
      <dc:creator>PCameh</dc:creator>
      <dc:date>2019-10-27T23:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Change the default color of box plot lines</title>
      <link>https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/231016#M45818</link>
      <description>I do not know of any preference that will change the default boxplot color for the boxplot.  Other than interactively going into the custom menu and changing the color, the only other way that I know is using JSL to change the Box Plot Segment line color</description>
      <pubDate>Mon, 28 Oct 2019 01:56:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/231016#M45818</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-10-28T01:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Change the default color of box plot lines</title>
      <link>https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/231131#M45838</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From all the searching I did on the JMP forums, it seems there does not exist an easy way to do this. The only practical solution I found was from&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt;, in the form of an add-in to change the colors to black after creating a plot:&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/Customize-box-plot-color-in-JMP-preferences/td-p/63157" target="_blank"&gt;https://community.jmp.com/t5/Discussions/Customize-box-plot-color-in-JMP-preferences/td-p/63157.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While this is incredibly useful, it still requires a key-click (even with a hotkey) after every plot.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wondering if JMP admins/engineers would know of a workaround...&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 18:56:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/231131#M45838</guid>
      <dc:creator>PCameh</dc:creator>
      <dc:date>2019-10-28T18:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Change the default color of box plot lines</title>
      <link>https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/231162#M45845</link>
      <description>Add this to the JMP Wish List to make sure it gets directly to the JMP developers</description>
      <pubDate>Mon, 28 Oct 2019 20:26:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/231162#M45845</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-10-28T20:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Change the default color of box plot lines</title>
      <link>https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/231200#M45852</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/16563"&gt;@PCameh&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create a custom Oneway UI.&amp;nbsp; Try the script below, it calls up the built-in Oneway dialog.&amp;nbsp; For this script, as long as there are 10 or less category groups all the boxplots will be black. If &lt;STRONG&gt;Big Class.jmp&lt;/STRONG&gt; is the current data table and you run this script, use Height and Weight for Y, age for X and sex by BY all your boxplots will be black.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the JMP table Semiconductor Capability.jmp is the current table and you run this script, use numerous process variables as Y and lot_id as X,&lt;/P&gt;
&lt;P&gt;the first 10 boxplots&amp;nbsp; are black, however, there are 13 lot_id's.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Off the top of my head, I do not have alternate syntax to make this truly flexible. So, one option is to modify this script to accommodate a large number of category values, maybe 100. Then save this script to your main menu, maybe call it my Oneway. Note you can also customize the line width, etc with a few edits to the script.&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;Oneway(
	Box Plots( 1 ),
	X Axis Proportional( 0 ),
	Points Jittered( 1 ),
	
	SendToReport(

		Dispatch(
			{},
			"Oneway Plot",
			FrameBox,
			{DispatchSeg( Box Plot Seg( 1 ), Confidence Diamond( 0 ), Set Line Color("Black") ),
			DispatchSeg( Box Plot Seg( 2 ), Confidence Diamond( 0 ), Set Line Color("Black") ),
			DispatchSeg( Box Plot Seg( 3 ), Confidence Diamond( 0 ), Set Line Color("Black") ),
			DispatchSeg( Box Plot Seg( 4 ), Confidence Diamond( 0 ), Set Line Color("Black") ),
			DispatchSeg( Box Plot Seg( 5 ), Confidence Diamond( 0 ), Set Line Color("Black") ),
			DispatchSeg( Box Plot Seg( 6 ), Confidence Diamond( 0 ), Set Line Color("Black") ),
			DispatchSeg( Box Plot Seg( 7 ), Confidence Diamond( 0 ), Set Line Color("Black") ),
			DispatchSeg( Box Plot Seg( 8 ), Confidence Diamond( 0 ), Set Line Color("Black") ),
			DispatchSeg( Box Plot Seg( 9 ), Confidence Diamond( 0 ), Set Line Color("Black") ),
			DispatchSeg( Box Plot Seg( 10 ), Confidence Diamond( 0 ), Set Line Color("Black") )
			}		
	)
  )
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Oct 2019 01:17:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/231200#M45852</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2019-10-29T01:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Change the default color of box plot lines</title>
      <link>https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/231201#M45853</link>
      <description>&lt;P&gt;ps. I agree with&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;, being able to set a preferences for a platform BoxPlotSeg would be very nice.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, a JSL Dispatch that would allow&amp;nbsp; a single DispatchSeg(&lt;FONT color="#0000FF"&gt; BoxPlotSeg(*)&lt;/FONT&gt;, etc.)&amp;nbsp; &amp;nbsp;or DispatchAllSeg( &lt;FONT color="#0000FF"&gt;BoxPlotSeg&lt;/FONT&gt;, etc.) would be a nice solution as well.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 01:24:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/231201#M45853</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2019-10-29T01:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Change the default color of box plot lines</title>
      <link>https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/231378#M45884</link>
      <description>&lt;P&gt;A million thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt;!! This is a life-saver hack! I copied your script and replicated the DispatchSeg another 90 times, for a total 100 like you suggested and it works like a charm now! I changed the hotkey to this addin instead of the default JMP Oneway function, and I can't even tell the difference now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You're the MVP!! Thanks a lot again!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 01:38:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/231378#M45884</guid>
      <dc:creator>PCameh</dc:creator>
      <dc:date>2019-10-30T01:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Change the default color of box plot lines</title>
      <link>https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/389717#M63990</link>
      <description>Just implemented the same solution for boxplots in variability charts. I find it makes a big impact, improves legibility, and really helps to highlight differences between groups</description>
      <pubDate>Tue, 01 Jun 2021 21:06:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/389717#M63990</guid>
      <dc:creator>rbfinner</dc:creator>
      <dc:date>2021-06-01T21:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Change the default color of box plot lines</title>
      <link>https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/762412#M94162</link>
      <description>&lt;P&gt;Can you share the script for boxplots in variability chart? I am unable to make it happen. Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 19:39:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/762412#M94162</guid>
      <dc:creator>PriorPuppy76970</dc:creator>
      <dc:date>2024-06-03T19:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Change the default color of box plot lines</title>
      <link>https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/762414#M94163</link>
      <description>&lt;P&gt;Following the idea of&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&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" );
	
myPlot = Variability Chart(
	Y( :height ),
	X( :age ),
	Variability Analysis( :height, Show Box Plots( 1 ) )
);

mySegs=report(myPlot)[FrameBox(1)]&amp;lt;&amp;lt; find segs; // get all display elements
Filter Each({seg},(mySegs), (seg&amp;lt;&amp;lt; class name)=="BoxPlotSeg") //just keep the Box Plots
 &amp;lt;&amp;lt; Set Line Color("Black")&amp;nbsp;&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1717446275882.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64832i68C99199334DFA90/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1717446275882.png" alt="hogi_0-1717446275882.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 20:24:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/762414#M94163</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-06-03T20:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Change the default color of box plot lines</title>
      <link>https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/762528#M94204</link>
      <description>&lt;P&gt;Thank you so much! How do I set this up if I am taking the X and Y variables from the user and not already defined in the script?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 01:27:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/762528#M94204</guid>
      <dc:creator>PriorPuppy76970</dc:creator>
      <dc:date>2024-06-05T01:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Change the default color of box plot lines</title>
      <link>https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/762536#M94207</link>
      <description>&lt;P&gt;Then you have to send the corresponding commands &lt;STRONG&gt;after&lt;/STRONG&gt; the user filled the GUI and clicked on OK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Either: build a mini-GUI where the user can pick the columns and use the response to trigger the Variability Chart analysis:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

colDialog = Column Dialog(
			YCols = ColList( "Y", Min Col( 1 ), Max Col( 1 ), Data Type( "Numeric" ) ),
			grouping = ColList( "Grouping", Min Col( 1 ), Max Col( 1 ), Data Type( "Nominal" ) ));
	
 myPlot = Eval (Eval Expr(Variability Chart(
	Y( colDialog["Ycols"][1] ),
	X( colDialog["grouping"] ),
	Variability Analysis( Expr(colDialog["Ycols"][1]), Show Box Plots( 1 ) ))));


mySegs=report(myPlot)[FrameBox(1)]&amp;lt;&amp;lt; find segs; // get all display elements
Filter Each({seg},(mySegs), (seg&amp;lt;&amp;lt; class name)=="BoxPlotSeg") //just keep the Box Plots
 &amp;lt;&amp;lt; Set Line Color("Black") &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;... or use the GUI of the Variability Chart Analysis itself - and &lt;STRONG&gt;after&lt;/STRONG&gt; the Report is generated, send the code to generate the box plot and change the color.&lt;BR /&gt;&lt;STRONG&gt;after&lt;/STRONG&gt; -&amp;gt;&amp;nbsp;&lt;CODE class=" language-jsl"&gt;&amp;lt;&amp;lt;Type( "Modal Dialog" )&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;new window("GUI", 	
	&amp;lt;&amp;lt;Type( "Modal Dialog" ),
Variability Chart());

// code to generate the Box Plots and change the color &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;... but the &lt;FONT face="courier new,courier"&gt;&amp;lt;&amp;lt;Type( "Modal Dialog" )&lt;/FONT&gt;&amp;nbsp;prevents the GUI to generate the Report.&lt;BR /&gt;the result is just&amp;nbsp;&lt;FONT face="courier new,courier"&gt;{Button( 1 )}&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;so, I am stuck at this point.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 05:31:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/762536#M94207</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-06-05T05:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Change the default color of box plot lines</title>
      <link>https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/762549#M94211</link>
      <description>&lt;P&gt;By the way, you could also use GraphBuilder to generate the graph:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1717570173832.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64885i77964D368EAB0375/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1717570173832.png" alt="hogi_0-1717570173832.png" /&gt;&lt;/span&gt;&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" );
Graph Builder(
	Variables( X( :age ), Y( :height ), Y( :height ) ),
	Elements(
		Position( 1, 1 ),
		Points( X, Y ),
		Box Plot( X, Y )
	),
	Elements(
		Position( 1, 2 ),
		Points( X, Y,  Summary Statistic( "Std Dev" ) )
	),
	SendToReport(
		Dispatch( {}, "age", ScaleBox,
			{Label Row(
				{Lower Frame( 1 ), Row Title Side( "End" ),
				Tick Mark Style( "Long Divider" )}
			)}
		),
		Dispatch( {}, "height", ScaleBox,
			
			 Label Row( Row Title Side( "Start" ) )}
		),
		Dispatch( {}, "Y 1 title", TextEditBox, {Set Text( "std dev" )} )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Jun 2024 06:49:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/762549#M94211</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-06-05T06:49:42Z</dc:date>
    </item>
  </channel>
</rss>

