<?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 Graphbox equivalent to GraphBuilder code in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Graphbox-equivalent-to-GraphBuilder-code/m-p/886107#M104840</link>
    <description>&lt;P&gt;Hi all,&lt;BR /&gt;I am new to JSL. I am creating a contour plot using graph builder as follows:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;out &amp;lt;&amp;lt; Graph Builder(
Show Control Panel( 0 ),
Size( 1301, 847 ),
Set α Level( 0.1 ),
Variables( X( :t ), Y( :f ), Color( :p ) ),
Elements( Contour( X, Y, Legend( 2 ), Number of Levels( 10 ), Smoothness( 0.0115027054779012 ) ) )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What would be the equivalent code if I want to replace Graph Builder with Graph Box and t,f,p are matrices?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jul 2025 22:13:30 GMT</pubDate>
    <dc:creator>MedianHorse837</dc:creator>
    <dc:date>2025-07-09T22:13:30Z</dc:date>
    <item>
      <title>Graphbox equivalent to GraphBuilder code</title>
      <link>https://community.jmp.com/t5/Discussions/Graphbox-equivalent-to-GraphBuilder-code/m-p/886107#M104840</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;I am new to JSL. I am creating a contour plot using graph builder as follows:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;out &amp;lt;&amp;lt; Graph Builder(
Show Control Panel( 0 ),
Size( 1301, 847 ),
Set α Level( 0.1 ),
Variables( X( :t ), Y( :f ), Color( :p ) ),
Elements( Contour( X, Y, Legend( 2 ), Number of Levels( 10 ), Smoothness( 0.0115027054779012 ) ) )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What would be the equivalent code if I want to replace Graph Builder with Graph Box and t,f,p are matrices?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 22:13:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graphbox-equivalent-to-GraphBuilder-code/m-p/886107#M104840</guid>
      <dc:creator>MedianHorse837</dc:creator>
      <dc:date>2025-07-09T22:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Graphbox equivalent to GraphBuilder code</title>
      <link>https://community.jmp.com/t5/Discussions/Graphbox-equivalent-to-GraphBuilder-code/m-p/886159#M104848</link>
      <description>&lt;P&gt;Is there a specific reason for avoiding Graph Builder? You can move the contour from graph builder to graph box for example by copying and pasteing the frame contents&lt;/P&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(
	Size(525, 454),
	Show Control Panel(0),
	Variables(X(:weight), Y(:height)),
	Elements(Contour(X, Y, Legend(10)))
);
Report(gb)[FrameBox(1)] &amp;lt;&amp;lt; Copy Frame Contents;

nw = New Window("",
	gbb = Graph Box(
		X Scale(55, 180),
		Y Scale(45, 75)
	)
);

gbb[FrameBox(1)] &amp;lt;&amp;lt; Paste Frame Contents;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Jul 2025 04:30:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graphbox-equivalent-to-GraphBuilder-code/m-p/886159#M104848</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-07-10T04:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Graphbox equivalent to GraphBuilder code</title>
      <link>https://community.jmp.com/t5/Discussions/Graphbox-equivalent-to-GraphBuilder-code/m-p/886161#M104849</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why do you need to do this in a Graph Box?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically, the approach I would take is to run&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Graph=&amp;gt;Contour&lt;/P&gt;
&lt;P&gt;in an invisible mode, and then Save the Contours&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Save=&amp;gt;Save Contours&lt;/P&gt;
&lt;P&gt;which will save the contours from the graph in an X, Y table, with each curve of the contour plot saved as a separate series of rows.&amp;nbsp; The XY data could then be read into the JSL script and processed as a Polygon in a GraphBox to generate the contour plot.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1752123563227.png" style="width: 459px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/78025i59933A61E878784E/image-dimensions/459x709?v=v2" width="459" height="709" role="button" title="txnelson_0-1752123563227.png" alt="txnelson_0-1752123563227.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Things like finding the min and max XY values to set the scale of the GraphBox() will able be available from the new data table.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2025 04:59:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graphbox-equivalent-to-GraphBuilder-code/m-p/886161#M104849</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-07-10T04:59:36Z</dc:date>
    </item>
  </channel>
</rss>

