<?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: SAS Graphs 3D in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graphs-3D/m-p/239726#M8721</link>
    <description>&lt;P&gt;Works fine for me. &amp;nbsp;In Base SAS, run the program, then look at the Results tab, lower left, and there should be G3d: Sphere output. &amp;nbsp;Or do you mean the graph is not showing any points, well thats probably twofold. &amp;nbsp;Firstly you have no z axis data other than one variable, hence it will be flat at 2. &amp;nbsp;secondly you would need to use the proc g3grid first on the data. &amp;nbsp;Try this program. &amp;nbsp;I randomly create z (height) to show an output:&lt;/P&gt;
&lt;PRE&gt;data sphere;
  call streaminit(123);
  do u=0 to 2*constant("pi") by 0.02;
    x=2*cos(u);
    y=2*sin(u);
    z=rand("Uniform");;
    output;
  end;
run;

proc g3grid data=sphere out=sphere2;
   grid y*x=z / spline;
run;

title "Sphere";
proc g3d data=sphere2;
  plot y*x=z;
run;&lt;/PRE&gt;</description>
    <pubDate>Thu, 17 Dec 2015 09:54:36 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2015-12-17T09:54:36Z</dc:date>
    <item>
      <title>SAS Graphs 3D</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graphs-3D/m-p/239709#M8720</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let r=2;&lt;/P&gt;
&lt;P&gt;data sphere;&lt;BR /&gt;do u=0 to 2*constant("pi") by 0.02;&lt;BR /&gt;x=&amp;amp;r*cos(u);&lt;BR /&gt;y=&amp;amp;r*sin(u);&lt;BR /&gt;z=&amp;amp;r;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;title "Sphere";&lt;BR /&gt;proc g3d data=sphere;&lt;BR /&gt; plot y*x=z;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run the above code I am getting plan,unable to see 3D plot. Please help.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 05:26:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Graphs-3D/m-p/239709#M8720</guid>
      <dc:creator>KafeelBasha</dc:creator>
      <dc:date>2015-12-17T05:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Graphs 3D</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Graphs-3D/m-p/239726#M8721</link>
      <description>&lt;P&gt;Works fine for me. &amp;nbsp;In Base SAS, run the program, then look at the Results tab, lower left, and there should be G3d: Sphere output. &amp;nbsp;Or do you mean the graph is not showing any points, well thats probably twofold. &amp;nbsp;Firstly you have no z axis data other than one variable, hence it will be flat at 2. &amp;nbsp;secondly you would need to use the proc g3grid first on the data. &amp;nbsp;Try this program. &amp;nbsp;I randomly create z (height) to show an output:&lt;/P&gt;
&lt;PRE&gt;data sphere;
  call streaminit(123);
  do u=0 to 2*constant("pi") by 0.02;
    x=2*cos(u);
    y=2*sin(u);
    z=rand("Uniform");;
    output;
  end;
run;

proc g3grid data=sphere out=sphere2;
   grid y*x=z / spline;
run;

title "Sphere";
proc g3d data=sphere2;
  plot y*x=z;
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Dec 2015 09:54:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Graphs-3D/m-p/239726#M8721</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-12-17T09:54:36Z</dc:date>
    </item>
  </channel>
</rss>

