<?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 Specify colours for a variable in proc g3D surface plots in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Specify-colours-for-a-variable-in-proc-g3D-surface-plots/m-p/298727#M10569</link>
    <description>&lt;P&gt;How can I specify colors for the 3D surface plot based on response values &amp;nbsp;? I want same colour to appear if the values are in the same range, for multiple graphs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my code is :&lt;/P&gt;&lt;P&gt;ods _all_ close;&lt;BR /&gt;ods html file="/home/a.g/created for HTML output/new.htm";&lt;/P&gt;&lt;P&gt;/* Set the DEVICE on the GOPTIONS statement */&lt;BR /&gt;/* to ACTIVEX. */&lt;BR /&gt;goptions reset=all device=activex&lt;BR /&gt;border xpixels=600 ypixels=400&lt;BR /&gt;cback=white;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Data surface_data;&lt;BR /&gt;input longitude latitude yield;&lt;BR /&gt;datalines;&lt;BR /&gt;10 1 5&lt;BR /&gt;10 2 5&lt;BR /&gt;10 3 5&lt;BR /&gt;10 4 5&lt;BR /&gt;10 5 5&lt;BR /&gt;10 6 0&lt;BR /&gt;10 7 0&lt;BR /&gt;10 8 0&lt;BR /&gt;10 9 0&lt;BR /&gt;9 1 5&lt;BR /&gt;9 2 5&lt;BR /&gt;9 3 5&lt;BR /&gt;9 4 5&lt;BR /&gt;9 5 5&lt;BR /&gt;9 6 0&lt;BR /&gt;9 7 0&lt;BR /&gt;9 8 0&lt;BR /&gt;9 9 0&lt;BR /&gt;8 1 5&lt;BR /&gt;8 2 5&lt;BR /&gt;8 3 5&lt;BR /&gt;8 4 5&lt;BR /&gt;8 5 5&lt;BR /&gt;8 6 0&lt;BR /&gt;8 7 0&lt;BR /&gt;8 8 0&lt;BR /&gt;8 9 0&lt;BR /&gt;7 1 5&lt;BR /&gt;7 2 5&lt;BR /&gt;7 3 5&lt;BR /&gt;7 4 5&lt;BR /&gt;7 5 5&lt;BR /&gt;7 6 0&lt;BR /&gt;7 7 0&lt;BR /&gt;7 8 0&lt;BR /&gt;7 9 0&lt;BR /&gt;6 1 5&lt;BR /&gt;6 2 5&lt;BR /&gt;6 3 5&lt;BR /&gt;6 4 5&lt;BR /&gt;6 5 5&lt;BR /&gt;6 6 0&lt;BR /&gt;6 7 0&lt;BR /&gt;6 8 0&lt;BR /&gt;6 9 0&lt;BR /&gt;5 1 10&lt;BR /&gt;5 2 10&lt;BR /&gt;5 3 10&lt;BR /&gt;5 4 10&lt;BR /&gt;5 5 10&lt;BR /&gt;5 6 20&lt;BR /&gt;5 7 20&lt;BR /&gt;5 8 20&lt;BR /&gt;5 9 20&lt;BR /&gt;4 1 10&lt;BR /&gt;4 2 10&lt;BR /&gt;4 3 10&lt;BR /&gt;4 4 10&lt;BR /&gt;4 5 10&lt;BR /&gt;4 6 20&lt;BR /&gt;4 7 20&lt;BR /&gt;4 8 20&lt;BR /&gt;4 9 20&lt;BR /&gt;3 1 10&lt;BR /&gt;3 2 10&lt;BR /&gt;3 3 10&lt;BR /&gt;3 4 10&lt;BR /&gt;3 5 10&lt;BR /&gt;3 6 20&lt;BR /&gt;3 7 20&lt;BR /&gt;3 8 20&lt;BR /&gt;3 9 20&lt;BR /&gt;2 1 10&lt;BR /&gt;2 2 10&lt;BR /&gt;2 3 10&lt;BR /&gt;2 4 10&lt;BR /&gt;2 5 10&lt;BR /&gt;2 6 20&lt;BR /&gt;2 7 20&lt;BR /&gt;2 8 20&lt;BR /&gt;2 9 20&lt;BR /&gt;1 1 10&lt;BR /&gt;1 2 10&lt;BR /&gt;1 3 10&lt;BR /&gt;1 4 10&lt;BR /&gt;1 5 10&lt;BR /&gt;1 6 20&lt;BR /&gt;1 7 20&lt;BR /&gt;1 8 20&lt;BR /&gt;1 9 20&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;title1 "North America Elevation Contour Map";&lt;BR /&gt;title2 "Use 'Right-Mouse -&amp;gt; Graph Toolbar' to enable rotate mode";&lt;/P&gt;&lt;P&gt;goptions colors = ( blueviolet blue aquamarine green yellow orangered red );&lt;/P&gt;&lt;P&gt;proc g3d data=surface_data;&lt;BR /&gt;plot latitude*longitude=yield /&lt;BR /&gt;style=4 contour=1 grid&lt;BR /&gt;des='' name="&amp;amp;name";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;BR /&gt;ODS HTML CLOSE;&lt;BR /&gt;ODS LISTING;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Sep 2016 21:11:30 GMT</pubDate>
    <dc:creator>amrit11</dc:creator>
    <dc:date>2016-09-15T21:11:30Z</dc:date>
    <item>
      <title>Specify colours for a variable in proc g3D surface plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Specify-colours-for-a-variable-in-proc-g3D-surface-plots/m-p/298727#M10569</link>
      <description>&lt;P&gt;How can I specify colors for the 3D surface plot based on response values &amp;nbsp;? I want same colour to appear if the values are in the same range, for multiple graphs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my code is :&lt;/P&gt;&lt;P&gt;ods _all_ close;&lt;BR /&gt;ods html file="/home/a.g/created for HTML output/new.htm";&lt;/P&gt;&lt;P&gt;/* Set the DEVICE on the GOPTIONS statement */&lt;BR /&gt;/* to ACTIVEX. */&lt;BR /&gt;goptions reset=all device=activex&lt;BR /&gt;border xpixels=600 ypixels=400&lt;BR /&gt;cback=white;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Data surface_data;&lt;BR /&gt;input longitude latitude yield;&lt;BR /&gt;datalines;&lt;BR /&gt;10 1 5&lt;BR /&gt;10 2 5&lt;BR /&gt;10 3 5&lt;BR /&gt;10 4 5&lt;BR /&gt;10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 6 20&lt;BR /&gt;3 7 20&lt;BR /&gt;3 8 20&lt;BR /&gt;3 9 20&lt;BR /&gt;2 1 10&lt;BR /&gt;2 2 10&lt;BR /&gt;2 3 10&lt;BR /&gt;2 4 10&lt;BR /&gt;2 5 10&lt;BR /&gt;2 6 20&lt;BR /&gt;2 7 20&lt;BR /&gt;2 8 20&lt;BR /&gt;2 9 20&lt;BR /&gt;1 1 10&lt;BR /&gt;1 2 10&lt;BR /&gt;1 3 10&lt;BR /&gt;1 4 10&lt;BR /&gt;1 5 10&lt;BR /&gt;1 6 20&lt;BR /&gt;1 7 20&lt;BR /&gt;1 8 20&lt;BR /&gt;1 9 20&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;title1 "North America Elevation Contour Map";&lt;BR /&gt;title2 "Use 'Right-Mouse -&amp;gt; Graph Toolbar' to enable rotate mode";&lt;/P&gt;&lt;P&gt;goptions colors = ( blueviolet blue aquamarine green yellow orangered red );&lt;/P&gt;&lt;P&gt;proc g3d data=surface_data;&lt;BR /&gt;plot latitude*longitude=yield /&lt;BR /&gt;style=4 contour=1 grid&lt;BR /&gt;des='' name="&amp;amp;name";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;BR /&gt;ODS HTML CLOSE;&lt;BR /&gt;ODS LISTING;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 21:11:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Specify-colours-for-a-variable-in-proc-g3D-surface-plots/m-p/298727#M10569</guid>
      <dc:creator>amrit11</dc:creator>
      <dc:date>2016-09-15T21:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Specify colours for a variable in proc g3D surface plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Specify-colours-for-a-variable-in-proc-g3D-surface-plots/m-p/309650#M10875</link>
      <description>&lt;P&gt;One way is to adapt the number of colours to the range of your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data SURFACE_DATA;
  set SURFACE_DATA;
  YIELD2=YIELD*2;       
run;

axis order=(0 to 50 by 5);

goptions colors = ( blueviolet blue aquamarine green);
proc g3d data=SURFACE_DATA ;
  plot LATITUDE*LONGITUDE=YIELD / style=4 contour=1 grid zaxis=axis1;
run;

goptions colors = ( blueviolet blue aquamarine green yellow orangered red );
proc g3d data=SURFACE_DATA;
 plot LATITUDE*LONGITUDE=YIELD2 / style=4 contour=1 grid zaxis=axis1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="aaa1.PNG" alt="aaa1.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/5678iF0C1304C8C13A2EF/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 04:13:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Specify-colours-for-a-variable-in-proc-g3D-surface-plots/m-p/309650#M10875</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-11-07T04:13:13Z</dc:date>
    </item>
  </channel>
</rss>

