<?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: INSET background color or legend w/free text outside graph? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/INSET-background-color-or-legend-w-free-text-outside-graph/m-p/50630#M1715</link>
    <description>You will need to wrap the PROC SGRENDER code with the same ODS statements as your SGPLOT code.  Basically, the SGRENDER binds the data with the GTL template to create the graph. Be sure to replace "yourdataset" with the dataset from the SGPLOT code.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Dan

Message was edited by: DanH@sas</description>
    <pubDate>Tue, 02 Feb 2010 21:43:39 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2010-02-02T21:43:39Z</dc:date>
    <item>
      <title>INSET background color or legend w/free text outside graph?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/INSET-background-color-or-legend-w-free-text-outside-graph/m-p/50625#M1710</link>
      <description>Hello all;&lt;BR /&gt;
Does anyone know how to set the background color for an inset statement, either within the statement or through a template? It does not seem to have that option within the inset statement. Problem I have is the overlay of text disappears.&lt;BR /&gt;
Or...&lt;BR /&gt;
using a legend statement that I can put in free text that can go outside the graph?&lt;BR /&gt;
ie &lt;BR /&gt;
Rn=x&lt;BR /&gt;
Md=y&lt;BR /&gt;
etc etc.&lt;BR /&gt;
&lt;BR /&gt;
Either way works for me.&lt;BR /&gt;
Thank you.&lt;BR /&gt;
&lt;BR /&gt;
Lawrence</description>
      <pubDate>Mon, 01 Feb 2010 22:42:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/INSET-background-color-or-legend-w-free-text-outside-graph/m-p/50625#M1710</guid>
      <dc:creator>_LB</dc:creator>
      <dc:date>2010-02-01T22:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: INSET background color or legend w/free text outside graph?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/INSET-background-color-or-legend-w-free-text-outside-graph/m-p/50626#M1711</link>
      <description>Which proc are you using?&lt;BR /&gt;
&lt;BR /&gt;
I assume something GTL-based?&lt;BR /&gt;
(proc sgplot?  a SAS/STAT proc with "ods graphics on"?)</description>
      <pubDate>Tue, 02 Feb 2010 13:07:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/INSET-background-color-or-legend-w-free-text-outside-graph/m-p/50626#M1711</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2010-02-02T13:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: INSET background color or legend w/free text outside graph?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/INSET-background-color-or-legend-w-free-text-outside-graph/m-p/50627#M1712</link>
      <description>sorry about that-I am using SGPLOT. I managed to use offsetmax to get by, but still looking at other solutions.&lt;BR /&gt;
&lt;BR /&gt;
Thanks. &lt;BR /&gt;
&lt;BR /&gt;
Lawrence</description>
      <pubDate>Tue, 02 Feb 2010 16:42:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/INSET-background-color-or-legend-w-free-text-outside-graph/m-p/50627#M1712</guid>
      <dc:creator>_LB</dc:creator>
      <dc:date>2010-02-02T16:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: INSET background color or legend w/free text outside graph?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/INSET-background-color-or-legend-w-free-text-outside-graph/m-p/50628#M1713</link>
      <description>Unfortunately, there is currently not a way to set the background color for the INSET statement in SGPLOT.  I would recommend calling Technical Support and making a request for this feature.  In the meantime, you can work around this by getting SGPLOT to generate the GTL code and modifying it to set the background color.&lt;BR /&gt;
&lt;BR /&gt;
First, specify TMPLOUT="temp.sas" on the SGPLOT proc statement to generate the GTL in "temp.sas".  In the GTL, you will find a LAYOUT GRIDDED that contains your inset values. On that LAYOUT GRIDDED, specify these two options:&lt;BR /&gt;
&lt;BR /&gt;
opaque=true backgroundcolor=&lt;YOUR color="" of="" choice=""&gt;&lt;BR /&gt;
&lt;BR /&gt;
At the end of the file, add this procedure call and submit the code:&lt;BR /&gt;
&lt;BR /&gt;
proc sgrender data=yourdataset template=sgplot; run;&lt;BR /&gt;
&lt;BR /&gt;
You should see your background color.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Dan&lt;/YOUR&gt;</description>
      <pubDate>Tue, 02 Feb 2010 19:11:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/INSET-background-color-or-legend-w-free-text-outside-graph/m-p/50628#M1713</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2010-02-02T19:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: INSET background color or legend w/free text outside graph?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/INSET-background-color-or-legend-w-free-text-outside-graph/m-p/50629#M1714</link>
      <description>Dan;&lt;BR /&gt;
It sort of worked...It did generate the temp.sas file and I did modify it. And it does make the box white but when I add the&lt;BR /&gt;
&lt;BR /&gt;
proc sgrender data=yourdataset template=sgplot; run; &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
statement it leaves out the the actual data. Plus it renders it as an image not as a RTF file as specified. I can change the GTL if I actually can find the parent style? &lt;BR /&gt;
Or somehow create a new template with the LAYOUT GRIDDED option. I am a newbie at GTL, so it may take some doing.... &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks again.&lt;BR /&gt;
&lt;BR /&gt;
Lawrence</description>
      <pubDate>Tue, 02 Feb 2010 21:39:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/INSET-background-color-or-legend-w-free-text-outside-graph/m-p/50629#M1714</guid>
      <dc:creator>_LB</dc:creator>
      <dc:date>2010-02-02T21:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: INSET background color or legend w/free text outside graph?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/INSET-background-color-or-legend-w-free-text-outside-graph/m-p/50630#M1715</link>
      <description>You will need to wrap the PROC SGRENDER code with the same ODS statements as your SGPLOT code.  Basically, the SGRENDER binds the data with the GTL template to create the graph. Be sure to replace "yourdataset" with the dataset from the SGPLOT code.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Dan

Message was edited by: DanH@sas</description>
      <pubDate>Tue, 02 Feb 2010 21:43:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/INSET-background-color-or-legend-w-free-text-outside-graph/m-p/50630#M1715</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2010-02-02T21:43:39Z</dc:date>
    </item>
  </channel>
</rss>

