<?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: Scripting Graphs without Graph builder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Scripting-Graphs-without-Graph-builder/m-p/344572#M59437</link>
    <description>&lt;P&gt;You might consider using graph builder to build your charts and then just copying the content to another box.&amp;nbsp; Here is an example which both uses graph builder and the Graph Box function to construct graphs in a new window without the red triangle.&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" );

//Make graphs using graph builder
gb1 = Graph Builder(
	Size( 534, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :weight ) ),
	Elements( Points( X, Y, Legend( 2 ) ), Smoother( X, Y, Legend( 3 ) ) )
);

//then use the graphs boxes in other windows:
win = New Window( "Plot examples",
	graphbuilder = (gb1 &amp;lt;&amp;lt; XPath("//GraphBuilderBox"))[1],
	graphbox = Graph Box(
		Frame Size( 300, 300 ),
		Marker( Marker State( 3 ), :height &amp;lt;&amp;lt; get values, :weight &amp;lt;&amp;lt; get values );
	)
);

//close graph builder
wait(0);
gb1 &amp;lt;&amp;lt; close window;

//set axis limits for manually created graph:
(graphbox &amp;lt;&amp;lt; XPath("//ScaleBox"))[1] &amp;lt;&amp;lt; {Min(50), Max(70)};
(graphbox &amp;lt;&amp;lt; XPath("//ScaleBox"))[2] &amp;lt;&amp;lt; {Min(40), Max(180)};&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Output:&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-inline" image-alt="ih_0-1609177785673.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29113i6799E331B21B197B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ih_0-1609177785673.png" alt="ih_0-1609177785673.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Dec 2020 17:50:04 GMT</pubDate>
    <dc:creator>ih</dc:creator>
    <dc:date>2020-12-28T17:50:04Z</dc:date>
    <item>
      <title>Scripting Graphs without Graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-Graphs-without-Graph-builder/m-p/344533#M59435</link>
      <description>&lt;P&gt;Good Morning Everyone!&amp;nbsp; I have been trying to create graphs without the help of graph builder since there is the red drop down button that appears in the window.&amp;nbsp; This is something I have been tasked to find and have had a big issue in finding the solution.&amp;nbsp; Basically, I am creating multiple bivariate graphs without the additional graphics such as drop down graphics. Could anyone help in pointing me to an example?&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:09:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-Graphs-without-Graph-builder/m-p/344533#M59435</guid>
      <dc:creator>dhurw</dc:creator>
      <dc:date>2023-06-11T11:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Graphs without Graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-Graphs-without-Graph-builder/m-p/344572#M59437</link>
      <description>&lt;P&gt;You might consider using graph builder to build your charts and then just copying the content to another box.&amp;nbsp; Here is an example which both uses graph builder and the Graph Box function to construct graphs in a new window without the red triangle.&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" );

//Make graphs using graph builder
gb1 = Graph Builder(
	Size( 534, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :weight ) ),
	Elements( Points( X, Y, Legend( 2 ) ), Smoother( X, Y, Legend( 3 ) ) )
);

//then use the graphs boxes in other windows:
win = New Window( "Plot examples",
	graphbuilder = (gb1 &amp;lt;&amp;lt; XPath("//GraphBuilderBox"))[1],
	graphbox = Graph Box(
		Frame Size( 300, 300 ),
		Marker( Marker State( 3 ), :height &amp;lt;&amp;lt; get values, :weight &amp;lt;&amp;lt; get values );
	)
);

//close graph builder
wait(0);
gb1 &amp;lt;&amp;lt; close window;

//set axis limits for manually created graph:
(graphbox &amp;lt;&amp;lt; XPath("//ScaleBox"))[1] &amp;lt;&amp;lt; {Min(50), Max(70)};
(graphbox &amp;lt;&amp;lt; XPath("//ScaleBox"))[2] &amp;lt;&amp;lt; {Min(40), Max(180)};&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Output:&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-inline" image-alt="ih_0-1609177785673.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29113i6799E331B21B197B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ih_0-1609177785673.png" alt="ih_0-1609177785673.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2020 17:50:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-Graphs-without-Graph-builder/m-p/344572#M59437</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2020-12-28T17:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Graphs without Graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-Graphs-without-Graph-builder/m-p/344577#M59439</link>
      <description>&lt;P&gt;Here are a couple of ways you can get what you want.&amp;nbsp; The first one can use any of the JMP platform graphics and just strip off the graphical portion and paste it into a new window.&amp;nbsp; The second example creates a new graph from scratch, using the JSL graphics primatives&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="prim.PNG" style="width: 641px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29115i5253A36FE3275F0D/image-size/large?v=v2&amp;amp;px=999" role="button" title="prim.PNG" alt="prim.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );

// Create a Graph Builder that does not have a red triangle
gb = dt &amp;lt;&amp;lt; Graph Builder(
	invisible,
	Size( 528, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :weight ), Y( :height ) ),
	Elements( Points( X, Y, Legend( 6 ) ) )
);
nw = New Window( "Graphs", &amp;lt;&amp;lt;journal, ob = Outline Box("My Graph") );
ob &amp;lt;&amp;lt; append( Report( gb )[Picture Box( 1 )] );
Report( gb ) &amp;lt;&amp;lt; delete window;

// Create a graph using the JSL graphic primatives
New Window( "Example",
	Graph Box(
		Y Scale( 50, 75 ),
		X Scale( 50, 180 ),
		Marker(
			Marker State( 0 ),
			dt:weight &amp;lt;&amp;lt; get values,
			dt:height &amp;lt;&amp;lt; get values
		);
	)
);

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Dec 2020 18:10:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-Graphs-without-Graph-builder/m-p/344577#M59439</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-12-28T18:10:53Z</dc:date>
    </item>
  </channel>
</rss>

