<?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 to create XY axis data for a circle and key into data table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-create-XY-axis-data-for-a-circle-and-key-into-data-table/m-p/378555#M62832</link>
    <description>&lt;P&gt;I would like to draw a circle in graph builder.&lt;/P&gt;&lt;P&gt;I know that one way is using "customize" function in graph build, then use code like below to draw a circle&lt;/P&gt;&lt;P&gt;Pen Color( "orange" );&lt;BR /&gt;Pen Size( 2 );&lt;BR /&gt;Circle( {0, 0}, 100 );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I need another way, that is, provide X,Y data in data table, then draw a X-Y map in graph builder&lt;/P&gt;&lt;P&gt;Approximately&amp;nbsp; 50 points data of a circle would be enough for me&amp;nbsp;&lt;/P&gt;&lt;P&gt;So is there any way to quickly generate XY data for a circle?&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:28:58 GMT</pubDate>
    <dc:creator>Hans_Hsu</dc:creator>
    <dc:date>2023-06-10T23:28:58Z</dc:date>
    <item>
      <title>How to create XY axis data for a circle and key into data table</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-XY-axis-data-for-a-circle-and-key-into-data-table/m-p/378555#M62832</link>
      <description>&lt;P&gt;I would like to draw a circle in graph builder.&lt;/P&gt;&lt;P&gt;I know that one way is using "customize" function in graph build, then use code like below to draw a circle&lt;/P&gt;&lt;P&gt;Pen Color( "orange" );&lt;BR /&gt;Pen Size( 2 );&lt;BR /&gt;Circle( {0, 0}, 100 );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I need another way, that is, provide X,Y data in data table, then draw a X-Y map in graph builder&lt;/P&gt;&lt;P&gt;Approximately&amp;nbsp; 50 points data of a circle would be enough for me&amp;nbsp;&lt;/P&gt;&lt;P&gt;So is there any way to quickly generate XY data for a circle?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:28:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-XY-axis-data-for-a-circle-and-key-into-data-table/m-p/378555#M62832</guid>
      <dc:creator>Hans_Hsu</dc:creator>
      <dc:date>2023-06-10T23:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to create XY axis data for a circle and key into data table</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-XY-axis-data-for-a-circle-and-key-into-data-table/m-p/378561#M62833</link>
      <description>&lt;P&gt;Here is one way to generate it&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="circle.PNG" style="width: 894px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/32251iED6A01BBB950F137/image-size/large?v=v2&amp;amp;px=999" role="button" title="circle.PNG" alt="circle.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = New Table( "circle", New Column( "x" ), New Column( "y" ) );

radius = 100;
        
r2 = radius * radius;
For( x = -radius, x &amp;lt;= radius, x++,
	y = floor(Sqrt( r2 - x * x ) + 0.5);
	dt&amp;lt;&amp;lt;add rows( 1 );
	dt:x[N Rows( dt )] = x;
	dt:y[N Rows( dt )] = y;
	dt&amp;lt;&amp;lt;add rows( 1 );
	dt:x[N Rows( dt )] = x;
	dt:y[N Rows( dt )] = -1*y;
);

Graph Builder(
	Size( 506, 501 ),
	Variables( X( :x ), Y( :y ) ),
	Elements( Points( X, Y, Legend( 3 ) ) )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Apr 2021 02:41:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-XY-axis-data-for-a-circle-and-key-into-data-table/m-p/378561#M62833</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-04-21T02:41:29Z</dc:date>
    </item>
  </channel>
</rss>

