<?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: rotating 3d plots in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/rotating-3d-plots/m-p/37157#M1174</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have a SAS/Insight license, you can also use that to create &amp;amp; rotate a 3d chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run dms SAS on Windows.&lt;/P&gt;&lt;P&gt;Run 'insight' from the SAS command line.&lt;/P&gt;&lt;P&gt;Select/Open a data set - I'll use maps.africa for this quick example&lt;/P&gt;&lt;P&gt;Select/drag your mouse across the Density &amp;amp; X &amp;amp; Y variables in the table (just for the sake of an easy example)&lt;/P&gt;&lt;P&gt;Run the "Analyze -&amp;gt; Rotating Plot (Z Y X)" from the pulldown menu at the top edge of the dms sas session.&lt;/P&gt;&lt;P&gt;You now have a 3d scatter plot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the navigation buttons along the left to rotate the plot in 3d.&lt;/P&gt;&lt;P&gt;Move your mouse pointer to a corner of the graphics area, and it will turn to a hand.&lt;/P&gt;&lt;P&gt;Hold the mouse button down while it's a hand, and then you can use the hand to interactively spin the plot.&lt;/P&gt;&lt;P&gt;You can even give the plot a good push/spin, and let go of the mouse button, and the plot will continue to spin - I'm not sure how useful this is, but it's pretty cool to watch! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Aug 2011 15:51:08 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2011-08-25T15:51:08Z</dc:date>
    <item>
      <title>rotating 3d plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/rotating-3d-plots/m-p/37152#M1169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any procedure that can interactivaely rotate 3d plots. right now i am using proc g3d and using the rotate and tilt options but it would be nice to have an interactive graph that i can just rotate with my mouse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;george&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 19:44:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/rotating-3d-plots/m-p/37152#M1169</guid>
      <dc:creator>trekvana</dc:creator>
      <dc:date>2011-07-26T19:44:44Z</dc:date>
    </item>
    <item>
      <title>rotating 3d plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/rotating-3d-plots/m-p/37153#M1170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that the following might provide the info you are looking for:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.robslink.com/SAS/democd8/uscont_info.htm"&gt;http://www.robslink.com/SAS/democd8/uscont_info.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 19:50:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/rotating-3d-plots/m-p/37153#M1170</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-07-26T19:50:52Z</dc:date>
    </item>
    <item>
      <title>rotating 3d plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/rotating-3d-plots/m-p/37154#M1171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey George,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just use GOPTIONS DEVICE=ACTIVEX with your PROC G3D program, and you will get interactive output. You will also need to wrap your program with ODS HTML to generate html&amp;nbsp; output to contain the ACTIVEX control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 20:11:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/rotating-3d-plots/m-p/37154#M1171</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2011-07-26T20:11:30Z</dc:date>
    </item>
    <item>
      <title>rotating 3d plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/rotating-3d-plots/m-p/37155#M1172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 20:48:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/rotating-3d-plots/m-p/37155#M1172</guid>
      <dc:creator>trekvana</dc:creator>
      <dc:date>2011-07-26T20:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: rotating 3d plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/rotating-3d-plots/m-p/37156#M1173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ... you can also try some animation.&amp;nbsp; This plot has been around for a while and&lt;/P&gt;&lt;P&gt;I cut/pasted/modified some SAS code from Richard Devenezia's wonderful web site ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.devenezia.com/downloads/sas/samples/cowboy-hats.sas" style="font-size: 12px; outline-style: none; color: #0e66ba;"&gt;http://www.devenezia.com/downloads/sas/samples/cowboy-hats.sas&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;data hat;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;do x=-5 to 5 by .25;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;do y=-5 to 5 by .25;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; z=sin(sqrt(x*x+y*y));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; output;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;end;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;end;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;%macro plots (n);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;%local i;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;%do i = 1 %to &amp;amp;n;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;%let rotate = %sysevalf(90 * &amp;amp;i/&amp;amp;n);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;%let tilt&amp;nbsp;&amp;nbsp; = %sysevalf(90 * &amp;amp;i/&amp;amp;n);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;%put ITERATION &amp;amp;i;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;%if &amp;amp;i eq 2&amp;nbsp; %then goptions gsfmode=append;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;%if &amp;amp;i eq &amp;amp;n %then goptions gepilog='3B'x;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;title "ROTATE &amp;amp; TILT: &amp;amp;rotate DEGREES" ls=2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;proc g3d data=hat;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;plot y*x=z/ctop=white cbottom=yellow &lt;/STRONG&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;noaxis &lt;/STRONG&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;rotate=&amp;amp;rotate tilt=&amp;amp;tilt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;quit;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;%end;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;title;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;%mend;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;goptions reset=all device=gifanim &lt;/STRONG&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;gsfname=animout &lt;/STRONG&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;xpixels=1024 &lt;/STRONG&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;ypixels=768&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gsfmode=replace &lt;/STRONG&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;gunit=pct &lt;/STRONG&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;ftext='calibri/bo' &lt;/STRONG&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;ctext=yellow &lt;/STRONG&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;cback=grayaa&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; htitle=4 &lt;/STRONG&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;htext=3 &lt;/STRONG&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;border&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iteration=1&amp;nbsp;&amp;nbsp;&amp;nbsp; /* specify one iteration for the animation */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delay=10;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* delay in 0.01 seconds) */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;filename animout "z:\cowboy.gif";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;filename tmp temp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;options nomprint nonotes;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;ods listing file=tmp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;%plots(100);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;ods listing;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'courier new', courier;"&gt;options notes;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 03:59:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/rotating-3d-plots/m-p/37156#M1173</guid>
      <dc:creator>MikeZdeb</dc:creator>
      <dc:date>2011-07-27T03:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: rotating 3d plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/rotating-3d-plots/m-p/37157#M1174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have a SAS/Insight license, you can also use that to create &amp;amp; rotate a 3d chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run dms SAS on Windows.&lt;/P&gt;&lt;P&gt;Run 'insight' from the SAS command line.&lt;/P&gt;&lt;P&gt;Select/Open a data set - I'll use maps.africa for this quick example&lt;/P&gt;&lt;P&gt;Select/drag your mouse across the Density &amp;amp; X &amp;amp; Y variables in the table (just for the sake of an easy example)&lt;/P&gt;&lt;P&gt;Run the "Analyze -&amp;gt; Rotating Plot (Z Y X)" from the pulldown menu at the top edge of the dms sas session.&lt;/P&gt;&lt;P&gt;You now have a 3d scatter plot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the navigation buttons along the left to rotate the plot in 3d.&lt;/P&gt;&lt;P&gt;Move your mouse pointer to a corner of the graphics area, and it will turn to a hand.&lt;/P&gt;&lt;P&gt;Hold the mouse button down while it's a hand, and then you can use the hand to interactively spin the plot.&lt;/P&gt;&lt;P&gt;You can even give the plot a good push/spin, and let go of the mouse button, and the plot will continue to spin - I'm not sure how useful this is, but it's pretty cool to watch! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2011 15:51:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/rotating-3d-plots/m-p/37157#M1174</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2011-08-25T15:51:08Z</dc:date>
    </item>
  </channel>
</rss>

