<?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 Problem in setting Legend Background Color:SGPLOT in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Problem-in-setting-Legend-Background-Color-SGPLOT/m-p/155481#M5805</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a solution to set Background color YELLOW on SGPLOT:&lt;/P&gt;&lt;P&gt;-I am using SAS 9.2 and creating PNG.&lt;/P&gt;&lt;P&gt;-However,I have tried to solve it via PROC TEMPLATE but it not working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; proc template;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define style styles.default ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parent = styles.Journal;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;style GraphLegendBackground / color=Yellow&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style GraphFonts /&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'GraphDataFont' =("Arial",10pt)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'GraphUnicodeFont' = ("Arial",6.5pt)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'GraphValueFont'=("Arial",7.0pt,bold)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'GraphLabelFont'=("Arial",8.2pt,bold)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'GraphFootnoteFont' = ("Arial",8pt)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'GraphTitleFont' = ("Arial",10pt,bold)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'GraphAnnoFont' = ("Arial",10pt);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-But not changing LEGEND Background Color, all other stuffs are okay from that figures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Nov 2014 04:44:36 GMT</pubDate>
    <dc:creator>Sami</dc:creator>
    <dc:date>2014-11-04T04:44:36Z</dc:date>
    <item>
      <title>Problem in setting Legend Background Color:SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-in-setting-Legend-Background-Color-SGPLOT/m-p/155481#M5805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a solution to set Background color YELLOW on SGPLOT:&lt;/P&gt;&lt;P&gt;-I am using SAS 9.2 and creating PNG.&lt;/P&gt;&lt;P&gt;-However,I have tried to solve it via PROC TEMPLATE but it not working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; proc template;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define style styles.default ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parent = styles.Journal;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;style GraphLegendBackground / color=Yellow&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style GraphFonts /&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'GraphDataFont' =("Arial",10pt)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'GraphUnicodeFont' = ("Arial",6.5pt)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'GraphValueFont'=("Arial",7.0pt,bold)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'GraphLabelFont'=("Arial",8.2pt,bold)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'GraphFootnoteFont' = ("Arial",8pt)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'GraphTitleFont' = ("Arial",10pt,bold)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'GraphAnnoFont' = ("Arial",10pt);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-But not changing LEGEND Background Color, all other stuffs are okay from that figures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 04:44:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-in-setting-Legend-Background-Color-SGPLOT/m-p/155481#M5805</guid>
      <dc:creator>Sami</dc:creator>
      <dc:date>2014-11-04T04:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in setting Legend Background Color:SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-in-setting-Legend-Background-Color-SGPLOT/m-p/155482#M5806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like your creating a circular dependency. Normally, the JOURNAL style inherits from DEFAULT, but here you have overridden DEFAULT and inherited from JOURNAL. Try this instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; proc template;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define style styles.myjournal ;&amp;nbsp; /* different name */&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parent = styles.Journal;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;style GraphLegendBackground / color=Yellow&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style GraphFonts /&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'GraphDataFont' =("Arial",10pt)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'GraphUnicodeFont' = ("Arial",6.5pt)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'GraphValueFont'=("Arial",7.0pt,bold)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'GraphLabelFont'=("Arial",8.2pt,bold)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'GraphFootnoteFont' = ("Arial",8pt)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'GraphTitleFont' = ("Arial",10pt,bold)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'GraphAnnoFont' = ("Arial",10pt);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;ods pdf file="output.pdf" style=myjournal; /* or whatever ODS destination you are using */&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;lt; your program &amp;gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;ods pdf close;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Hope this helps!&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 14:18:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-in-setting-Legend-Background-Color-SGPLOT/m-p/155482#M5806</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2014-11-04T14:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in setting Legend Background Color:SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-in-setting-Legend-Background-Color-SGPLOT/m-p/155483#M5807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It not worked on after using on:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODS LISTING GPATH="XX" style=myjournal;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODS LISTING CLOSE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 15:42:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-in-setting-Legend-Background-Color-SGPLOT/m-p/155483#M5807</guid>
      <dc:creator>Sami</dc:creator>
      <dc:date>2014-11-04T15:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in setting Legend Background Color:SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-in-setting-Legend-Background-Color-SGPLOT/m-p/155484#M5808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is worth pausing to consider if this is a good idea.&amp;nbsp; Color perception is not absolute, but relative to the background.&amp;nbsp; We know that a gray color swatch in black background looks white, and the same gray color in a white background looks black.&amp;nbsp; We intentionally use the same background color as the "Wall" color for the legend, so the colors used in the graph are seen against the same background in the legend.&amp;nbsp; Changing the legend background color to something different from the wall color could have an adverse impact on the perception of the colors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 16:19:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-in-setting-Legend-Background-Color-SGPLOT/m-p/155484#M5808</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2014-11-04T16:19:46Z</dc:date>
    </item>
  </channel>
</rss>

