<?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 How do I change the Graph Frame box Outline color and add a box around legend? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-change-the-Graph-Frame-box-Outline-color-and-add-a-box/m-p/867603#M103040</link>
    <description>&lt;P&gt;Hello!&lt;BR /&gt;I am trying to make the top and right border on the attached graph black and size 2 to make it publication quality. I am able to toggle it on and off using Right click -&amp;gt; Graph -&amp;gt; Border though. I checked the properties as well and I am unable to see a option to change it.&lt;BR /&gt;&lt;BR /&gt;Additionally, I want to put a outline around the Legend frame box if possible?&lt;BR /&gt;Thanks!&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="401_pGaN_Si_dev_cycle1_and_2_ELW_Calculations - Graph Builder.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/74748i5B8D9E00E8DBDE07/image-size/large?v=v2&amp;amp;px=999" role="button" title="401_pGaN_Si_dev_cycle1_and_2_ELW_Calculations - Graph Builder.png" alt="401_pGaN_Si_dev_cycle1_and_2_ELW_Calculations - Graph Builder.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Apr 2025 21:11:25 GMT</pubDate>
    <dc:creator>KarthikSuresh</dc:creator>
    <dc:date>2025-04-10T21:11:25Z</dc:date>
    <item>
      <title>How do I change the Graph Frame box Outline color and add a box around legend?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-change-the-Graph-Frame-box-Outline-color-and-add-a-box/m-p/867603#M103040</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;I am trying to make the top and right border on the attached graph black and size 2 to make it publication quality. I am able to toggle it on and off using Right click -&amp;gt; Graph -&amp;gt; Border though. I checked the properties as well and I am unable to see a option to change it.&lt;BR /&gt;&lt;BR /&gt;Additionally, I want to put a outline around the Legend frame box if possible?&lt;BR /&gt;Thanks!&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="401_pGaN_Si_dev_cycle1_and_2_ELW_Calculations - Graph Builder.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/74748i5B8D9E00E8DBDE07/image-size/large?v=v2&amp;amp;px=999" role="button" title="401_pGaN_Si_dev_cycle1_and_2_ELW_Calculations - Graph Builder.png" alt="401_pGaN_Si_dev_cycle1_and_2_ELW_Calculations - Graph Builder.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 21:11:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-change-the-Graph-Frame-box-Outline-color-and-add-a-box/m-p/867603#M103040</guid>
      <dc:creator>KarthikSuresh</dc:creator>
      <dc:date>2025-04-10T21:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change the Graph Frame box Outline color and add a box around legend?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-change-the-Graph-Frame-box-Outline-color-and-add-a-box/m-p/867929#M103074</link>
      <description>&lt;P&gt;So you have JMP graph in which you have legend set inside the graph like this&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1744450342570.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/74782iAC60415E2A19A9D3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1744450342570.png" alt="jthi_0-1744450342570.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and you wish to add box around the legend? With scripting you can send message &amp;lt;&amp;lt; Border(15) for example to add black borders like this&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1744450517690.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/74783i076F7B02812994EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1744450517690.png" alt="jthi_1-1744450517690.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&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(
	Legend Position("Inside Right"),
	Variables(X(:weight), Y(:height), Color(:sex)),
	Elements(Points(X, Y, Legend(3)), Smoother(X, Y, Legend(5))),
	SendToReport(
		Dispatch({}, "400", ScaleBox,
			{Legend Model(
				5,
				Base(0, 0, 1, Item ID("Smooth", 1)),
				Properties(0, {Line Color(-9939840)}, Item ID("Smooth", 1))
			)}
		),
		Dispatch({}, "400", LegendBox, {Set Title("Legend")})
	)
);

Report(gb)[LegendBox(1)] &amp;lt;&amp;lt; Border(15);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;I assume border follows same "numbering" as Border Box and you can find info from here &lt;A href="https://www.jmp.com/support/help/en/18.2/#page/jmp/construct-display-boxes-for-new-windows.shtml#ww497246" target="_blank" rel="noopener"&gt; Scripting Guide &amp;gt; Display Trees &amp;gt; Construct Custom Windows &amp;gt; Construct Display Boxes for New Windows &amp;gt; Border Box&lt;/A&gt; . I think after you do this once, you can save it as a preset and then use the preset for other graph builders if necessary&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Apr 2025 09:37:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-change-the-Graph-Frame-box-Outline-color-and-add-a-box/m-p/867929#M103074</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-04-12T09:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change the Graph Frame box Outline color and add a box around legend?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-change-the-Graph-Frame-box-Outline-color-and-add-a-box/m-p/868725#M103154</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Jarmo said:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;gt; I assume border follows same "numbering" as Border Box&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest using &amp;lt;&amp;lt;Border(1) rather than &amp;lt;&amp;lt;Border(15).&amp;nbsp; The general Border property works like Padding and Margin, except that currently only 1-pixel borders are currently supported.&amp;nbsp; If that were to change, a setting of 15 might be a bit surprising!&lt;/P&gt;
&lt;P&gt;You can also explicitly use &amp;lt;&amp;lt;Border(Left(1), Top(1), Right(1), Bottom(1)) to make it more clear.&amp;nbsp; When a single value is used, it applies to all sides.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 13:36:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-change-the-Graph-Frame-box-Outline-color-and-add-a-box/m-p/868725#M103154</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2025-04-16T13:36:17Z</dc:date>
    </item>
  </channel>
</rss>

