<?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: Using the entire region for a drawspace in ODS GTL in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Using-the-entire-region-for-a-drawspace-in-ODS-GTL/m-p/324348#M11349</link>
    <description>&lt;P&gt;drawrectangle x = 0 y = 25 width = 28 height = 23&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sure looks like you want to draw something almost square: width=28 and height=23 means that the x and y dimensions are almost the same=&amp;gt; squarish. The image you show has the "square" actuall just a tad wider than the height. Maybe you mean width=58??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jan 2017 17:29:17 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-01-12T17:29:17Z</dc:date>
    <item>
      <title>Using the entire region for a drawspace in ODS GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Using-the-entire-region-for-a-drawspace-in-ODS-GTL/m-p/324330#M11348</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am tying to get a handle on how to move a rectangle around in an ODS region using GTL. &amp;nbsp;I defined a region 5" wide and 1.75" high and want to draw the rectangle in the middle next to the left side. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code I have so far is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let path=c:\temp\;&lt;BR /&gt;ods pdf file="&amp;amp;path.test.pdf";&lt;BR /&gt;ods layout absolute x=0 y=0 height=8.48in;&lt;BR /&gt;ods region y=1.1in x=.5in width=5in height=1.75in style={background=cyan};&lt;BR /&gt; proc template;&lt;BR /&gt; define statgraph vennleft;&lt;BR /&gt; begingraph / drawspace = layoutpercent ;&lt;BR /&gt; entrytitle '';&lt;BR /&gt; layout region / opaque=false;&lt;BR /&gt; drawrectangle x = 0 y = 25 width = 28 height = 23 / display = (outline) anchor = BottomLeft;&lt;BR /&gt; endlayout;&lt;BR /&gt; endgraph;&lt;BR /&gt; end;&lt;BR /&gt; run;&lt;/P&gt;
&lt;P&gt;proc sgrender data = SasHelp.Cars template = vennleft;&lt;BR /&gt;run; quit;&lt;BR /&gt;ods layout end;&lt;BR /&gt;ods pdf close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I get is a square in the middle third of the rectangle and the drawrectangle output appears in that per the attached image. &amp;nbsp;How do I tell it to use the entire region?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Ben&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13318iD50803D243598901/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;</description>
      <pubDate>Thu, 12 Jan 2017 16:47:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Using-the-entire-region-for-a-drawspace-in-ODS-GTL/m-p/324330#M11348</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2017-01-12T16:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using the entire region for a drawspace in ODS GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Using-the-entire-region-for-a-drawspace-in-ODS-GTL/m-p/324348#M11349</link>
      <description>&lt;P&gt;drawrectangle x = 0 y = 25 width = 28 height = 23&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sure looks like you want to draw something almost square: width=28 and height=23 means that the x and y dimensions are almost the same=&amp;gt; squarish. The image you show has the "square" actuall just a tad wider than the height. Maybe you mean width=58??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 17:29:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Using-the-entire-region-for-a-drawspace-in-ODS-GTL/m-p/324348#M11349</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-01-12T17:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using the entire region for a drawspace in ODS GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Using-the-entire-region-for-a-drawspace-in-ODS-GTL/m-p/324349#M11350</link>
      <description>&lt;P&gt;This was just a test, but changing width to 58 makes the rectangle a bit wider; the x/y origin of it still remains in the center of the layout region. &amp;nbsp;I'd like to figure out how to position it's starting point to the left side of the region shown in cyan.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Ben&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 17:38:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Using-the-entire-region-for-a-drawspace-in-ODS-GTL/m-p/324349#M11350</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2017-01-12T17:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using the entire region for a drawspace in ODS GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Using-the-entire-region-for-a-drawspace-in-ODS-GTL/m-p/324352#M11351</link>
      <description>&lt;P&gt;I believe you are getting what you are coding. &amp;nbsp;ODS LAYOUT and REGION are totally independent of the GTL LAYOUT REGION. &amp;nbsp;Everything the SGRENDER produces goes into the ODS REGION you have defined. &amp;nbsp;GTL only knows of the graph canvas which is the white area in the middle. &amp;nbsp;Everything you specify inside the GTL code can only render inside the graph canvas, which is then placed inside the ODS Region you have defined.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 17:44:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Using-the-entire-region-for-a-drawspace-in-ODS-GTL/m-p/324352#M11351</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-01-12T17:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using the entire region for a drawspace in ODS GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Using-the-entire-region-for-a-drawspace-in-ODS-GTL/m-p/324353#M11352</link>
      <description>&lt;P&gt;Just found out what it was; a previous proc in the job had specified a width and height on an ods graphics statement. &amp;nbsp;Adding:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods graphics on / width=5in height=1.75in;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;did the trick. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Ben&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 17:49:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Using-the-entire-region-for-a-drawspace-in-ODS-GTL/m-p/324353#M11352</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2017-01-12T17:49:48Z</dc:date>
    </item>
  </channel>
</rss>

