<?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: How to access/change box plot colors in script in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-access-change-box-plot-colors-in-script/m-p/33532#M19905</link>
    <description>&lt;P&gt;Thanks ian,&lt;/P&gt;&lt;P&gt;I think with your explanation I can find my way in simple graphs.&lt;/P&gt;&lt;P&gt;I went through the documentation and I must say it is a lot of info and not alwats easy to find my way...but I keep practicing.&lt;/P&gt;&lt;P&gt;For example, in the example I attached, suppose I want to change something, let's say the title of the graph and&amp;nbsp;the title of&amp;nbsp;the X and Y axes. I know you will say: change that via the regular way...but suppose I want to access them via the tree structure (look at the picture attached).&lt;/P&gt;&lt;P&gt;I see :&lt;/P&gt;&lt;P&gt;"Change title" under TextEditBox(1)&lt;/P&gt;&lt;P&gt;"Change X title" under TextEditBox(2)&lt;/P&gt;&lt;P&gt;"Value" under TextEditBox(3)&lt;/P&gt;&lt;P&gt;How can I get those strings and modify them via the tree ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Dec 2016 15:24:40 GMT</pubDate>
    <dc:creator>samir</dc:creator>
    <dc:date>2016-12-12T15:24:40Z</dc:date>
    <item>
      <title>How to access/change box plot colors in script</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-access-change-box-plot-colors-in-script/m-p/33506#M19891</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am wrinting scripts to automatically collect data and make graphs...&lt;/P&gt;
&lt;P&gt;My issue is that I get a graph with varying number of box plots (26 boxes in the example attached), I would like to change the box plot properties (Fillcolor, line color, transparency,...) but I do not know how to access the 26 box plots at a time or seperatly (but via a script)...&lt;/P&gt;
&lt;P&gt;I checked manually and I see that there are several boxplot objects: I even modified manually the color of Box Plot (50), but when I look at the script and try to modifyu it, it does not work...&lt;/P&gt;
&lt;P&gt;So my question: How to ask and get the references to all the boxplots ?&lt;/P&gt;
&lt;P&gt;And how to change their properties (all of them) ?&lt;/P&gt;
&lt;P&gt;Many thanks.&lt;/P&gt;
&lt;P&gt;PS: for ease, I included a graph and the original table I used (the script is embedded in the data table). The script I get is also added.&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-center" image-alt="ExampleBoxPlots.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/4517i80434949438036DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="ExampleBoxPlots.PNG" alt="ExampleBoxPlots.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Show Legend( 0 ),
	Y Group Title Orientation( "Horizontal" ),
	Y Group Level Orientation( "Horizontal" ),
	Variables( X( :QVoltages ), Y( :Value ) ),
	Elements(
		Points( X, Y, Legend( 1 ), Jitter( 1 ) ),
		Box Plot(
			X,
			Y,
			Legend( 3 ),
			Jitter( 1 ),
			Outliers( 1 ),
			Box Style( "Outlier" )
		)
	),
	SendToReport(
		Dispatch(
			{},
			"QVoltages",
			ScaleBox,
			{Show Major Grid( 1 ), Show Minor Grid( 1 ), Inside Ticks( 1 ),
			Rotated Labels( "Vertical" )}
		),
		Dispatch(
			{},
			"Ron_1p5V [Ohm]",
			ScaleBox,
			{Min( 40 ), Max( 100 ), Inc( 10 ), Minor Ticks( 1 ),
			Show Major Grid( 1 ), Show Minor Grid( 1 ), Inside Ticks( 1 )}
		),
		Dispatch( {}, "graph title", TextEditBox, {Set Text( "" )} ),
		Dispatch( {}, "Y title", TextEditBox, {Set Text( "Value" )} ),
		Dispatch(
			{},
			"Graph Builder",
			FrameBox,
			{DispatchSeg(
				Box Plot Seg( "Box Plot (50)" ),
				{Box Style( "Outlier" ), Line Color( "Dark Red" ), Line Width( 2 ),
				Fill Color( "Red" ), Transparency( 0.5 )}
			)}
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Dec 2016 14:25:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-access-change-box-plot-colors-in-script/m-p/33506#M19891</guid>
      <dc:creator>samir</dc:creator>
      <dc:date>2016-12-12T14:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to access/change box plot colors in script</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-access-change-box-plot-colors-in-script/m-p/33508#M19892</link>
      <description>&lt;P&gt;Using your table, you can do this kind of thing:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;gb = Graph Builder(
	Show Legend( 0 ),
	Y Group Title Orientation( "Horizontal" ),
	Y Group Level Orientation( "Horizontal" ),
	Variables( X( :QVoltages ), Y( :Value ) ),
	Elements(
		Points( X, Y, Legend( 1 ), Jitter( 1 ) ),
		Box Plot( X, Y, Legend( 3 ), Jitter( 1 ), Outliers( 1 ), Box Style( "Outlier" ) )
	),
	SendToReport(
		Dispatch(
			{},
			"QVoltages",
			ScaleBox,
			{Show Major Grid( 1 ), Show Minor Grid( 1 ), Inside Ticks( 1 ), Rotated Labels( "Vertical" )}
		),
		Dispatch(
			{},
			"Value",
			ScaleBox,
			{Min( 40 ), Max( 100 ), Inc( 10 ), Minor Ticks( 1 ), Show Major Grid( 1 ), Show Minor Grid( 1 ),
			Inside Ticks( 1 )}
		),
		Dispatch( {}, "graph title", TextEditBox, {Set Text( "" )} ),
		Dispatch( {}, "Y title", TextEditBox, {Set Text( "Value" )} )
	)
);
gbRep = Report( gb );
nbp = gbRep[FrameBox( 1 )] &amp;lt;&amp;lt; segCount("Box Plot Seg");
for(n=1, n&amp;lt;=nbp, n++,
	s = gbRep[FrameBox( 1 )] &amp;lt;&amp;lt; FindSeg( Box Plot Seg(n) );
	s &amp;lt;&amp;lt; Fill Color( "Green" );
);
// Uncomment the line beloe to see what other messages a 'BoxPlotSeg()' understands
// Show Properties( s );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Dec 2016 11:03:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-access-change-box-plot-colors-in-script/m-p/33508#M19892</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2016-12-12T11:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to access/change box plot colors in script</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-access-change-box-plot-colors-in-script/m-p/33515#M19899</link>
      <description>&lt;P&gt;Thanks a lot Ian.&lt;/P&gt;&lt;P&gt;Your script does exactly what I wanted !!!!!&lt;/P&gt;&lt;P&gt;May I ask a further explanation ? I see that you introduced: 1/ Report. 2/ FrameBox(1). 3/ SegCount. 4/ FindSeg...&lt;/P&gt;&lt;P&gt;That means you know about those objects or properties...&lt;/P&gt;&lt;P&gt;The question is: in my case, if I have to figure out how a graph is organized, where should I look ? is there a documentation that explicitely explains it ? (in matlab for example, they use for each object handlers, references and parents/childs oblects...so it is easy to scroll through the tree and find you way...).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, Many thanks !!!!!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 13:45:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-access-change-box-plot-colors-in-script/m-p/33515#M19899</guid>
      <dc:creator>samir</dc:creator>
      <dc:date>2016-12-12T13:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to access/change box plot colors in script</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-access-change-box-plot-colors-in-script/m-p/33517#M19901</link>
      <description>The main pieces of documentation on all of this is found at:&lt;BR /&gt;Help==&amp;gt;Books==&amp;gt;Scripting Guide&lt;BR /&gt;and&lt;BR /&gt;Help==&amp;gt;Scripting Index</description>
      <pubDate>Mon, 12 Dec 2016 13:53:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-access-change-box-plot-colors-in-script/m-p/33517#M19901</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2016-12-12T13:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to access/change box plot colors in script</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-access-change-box-plot-colors-in-script/m-p/33519#M19902</link>
      <description>&lt;P&gt;Yes, it's al in the doc Jim references.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you launch a JMP platofrm, it's helpful to think of the resulting window of consisting of two layers: The 'analysis layer' ('red triangle' options) and the 'report layer' (the hierarchical structure of display boxes that compose the contents of the window). If you right click on the little disclosure triangle of the topmost outline box (in this case, with the title 'Graph Builder'), you should see an 'Edit &amp;gt; Show Tree Structure' option which shows which display boxes are involved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 14:13:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-access-change-box-plot-colors-in-script/m-p/33519#M19902</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2016-12-12T14:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to access/change box plot colors in script</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-access-change-box-plot-colors-in-script/m-p/33532#M19905</link>
      <description>&lt;P&gt;Thanks ian,&lt;/P&gt;&lt;P&gt;I think with your explanation I can find my way in simple graphs.&lt;/P&gt;&lt;P&gt;I went through the documentation and I must say it is a lot of info and not alwats easy to find my way...but I keep practicing.&lt;/P&gt;&lt;P&gt;For example, in the example I attached, suppose I want to change something, let's say the title of the graph and&amp;nbsp;the title of&amp;nbsp;the X and Y axes. I know you will say: change that via the regular way...but suppose I want to access them via the tree structure (look at the picture attached).&lt;/P&gt;&lt;P&gt;I see :&lt;/P&gt;&lt;P&gt;"Change title" under TextEditBox(1)&lt;/P&gt;&lt;P&gt;"Change X title" under TextEditBox(2)&lt;/P&gt;&lt;P&gt;"Value" under TextEditBox(3)&lt;/P&gt;&lt;P&gt;How can I get those strings and modify them via the tree ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 15:24:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-access-change-box-plot-colors-in-script/m-p/33532#M19905</guid>
      <dc:creator>samir</dc:creator>
      <dc:date>2016-12-12T15:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to access/change box plot colors in script</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-access-change-box-plot-colors-in-script/m-p/33534#M19906</link>
      <description>&lt;P&gt;Thanks ian,&lt;/P&gt;&lt;P&gt;I think with your explanation I can find my way in simple graphs.&lt;/P&gt;&lt;P&gt;I went through the documentation and I must say it is a lot of info and not alwats easy to find my way...but I keep practicing.&lt;/P&gt;&lt;P&gt;For example, in the example I attached, suppose I want to change something, let's say the title of the graph and&amp;nbsp;the title of&amp;nbsp;the X and Y axes. I know you will say: change that via the regular way...but suppose I want to access them via the tree structure (look at the picture attached).&lt;/P&gt;&lt;P&gt;I see :&lt;/P&gt;&lt;P&gt;"Change title" under TextEditBox(1)&lt;/P&gt;&lt;P&gt;"Change X title" under TextEditBox(2)&lt;/P&gt;&lt;P&gt;"Value" under TextEditBox(3)&lt;/P&gt;&lt;P&gt;How can I get those strings and modify them via the tree ?&lt;/P&gt;&lt;P&gt;Thanks again !!!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 15:26:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-access-change-box-plot-colors-in-script/m-p/33534#M19906</guid>
      <dc:creator>samir</dc:creator>
      <dc:date>2016-12-12T15:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to access/change box plot colors in script</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-access-change-box-plot-colors-in-script/m-p/33535#M19907</link>
      <description>&lt;P&gt;Thanks ian,&lt;/P&gt;&lt;P&gt;I think with your explanation I can find my way in simple graphs.&lt;/P&gt;&lt;P&gt;I went through the documentation and I must say it is a lot of info and not alwats easy to find my way...but I keep practicing.&lt;/P&gt;&lt;P&gt;For example, in the example I attached, suppose I want to change something, let's say the title of the graph and&amp;nbsp;the title of&amp;nbsp;the X and Y axes. I know you will say: change that via the regular way...but suppose I want to access them via the tree structure (look at the picture attached).&lt;/P&gt;&lt;P&gt;I see :&lt;/P&gt;&lt;P&gt;"Change title" under TextEditBox(1)&lt;/P&gt;&lt;P&gt;"Change X title" under TextEditBox(2)&lt;/P&gt;&lt;P&gt;"Value" under TextEditBox(3)&lt;/P&gt;&lt;P&gt;How can I get those strings and modify them via the tree ?&lt;/P&gt;&lt;P&gt;Thanks again !!!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 15:26:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-access-change-box-plot-colors-in-script/m-p/33535#M19907</guid>
      <dc:creator>samir</dc:creator>
      <dc:date>2016-12-12T15:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to access/change box plot colors in script</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-access-change-box-plot-colors-in-script/m-p/33553#M19914</link>
      <description>&lt;P&gt;Once you have the type of display box you are interested in (for example, a 'text edit box ()'), you can search for that in the scripting index (see Jim's post above). Then you will see what messages are relevant and (usually) an example.&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-center" image-alt="Screen Shot 2016-12-12 at 16.10.38.png" style="width: 998px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/4532i4761FC550D92F0F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2016-12-12 at 16.10.38.png" alt="Screen Shot 2016-12-12 at 16.10.38.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;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 16:14:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-access-change-box-plot-colors-in-script/m-p/33553#M19914</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2016-12-12T16:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to access/change box plot colors in script</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-access-change-box-plot-colors-in-script/m-p/33554#M19915</link>
      <description>&lt;P&gt;The elements are referenced by either their absolute position from the entry into the report structure, or by a relative reference from a fixed, unique point within the report structure.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;["Graph Builder"][TextEditBox(1)]&amp;lt;&amp;lt;set text("new title");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This example points to the Graph Builder outline box and then references the first text edit box under the outline box.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The simplicity of the Graph Builder output only has the one outline box, but in other cases there are multiple outline boxes that a reference to a particular on would take the reference off on a different path.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 16:32:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-access-change-box-plot-colors-in-script/m-p/33554#M19915</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2016-12-12T16:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to access/change box plot colors in script</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-access-change-box-plot-colors-in-script/m-p/33607#M19931</link>
      <description>&lt;P&gt;Thanks a lot guys !&lt;/P&gt;&lt;P&gt;I am now ready for fency things :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 09:40:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-access-change-box-plot-colors-in-script/m-p/33607#M19931</guid>
      <dc:creator>samir</dc:creator>
      <dc:date>2016-12-13T09:40:32Z</dc:date>
    </item>
  </channel>
</rss>

